<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– While this one adds it for the Tika Auto-Detect extractor –>
<bean id="extracter.TikaAuto" class="org.alfresco.repo.content.metadata.TikaAutoMetadataExtracter" parent="baseMetadataExtracter">
<property name="inheritDefaultMapping">
<value>true</value>
</property>
<property name="mappingProperties">
<props>
<!–
<prop key="namespace.prefix.cm">http://www.alfresco.org/model/content/1.0</prop>
<prop key="user1">cm:description</prop>
–>
<prop key="namespace.prefix.cm">http://www.alfresco.org/model/content/1.0</prop>
<prop key="namespace.prefix.dm">http://www.alfresco.org/model/dictionary/1.0</prop>
<prop key="nncontrat">cm:description</prop>
</props>
<!–<value>classpath:alfresco/extension/custom-metadata-extractor-mapping.properties</value> –>
</property>
</bean>
</beans>
et ici mon custom-metadata-extractors-mappings.properties:
namespace.prefix.cm=http://www.alfresco.org/model/content/1.0
namespace.prefix.dm=http://www.alfresco.org/model/dictionary/1.0
nncontrat=dm:nncontrat
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!–
<bean id="extracter.TikaAuto" class="org.alfresco.repo.content.metadata.TikaAutoMetadataExtracter" parent="baseMetadataExtracter">
–>
<bean id="extracter.PDFbox" class="org.alfresco.repo.content.metadata.PdfBoxMetadataExtracter" parent="baseMetadataExtracter">
<property name="inheritDefaultMapping">
<value>true</value>
</property>
<property name="mappingProperties">
<props>
<prop key="namespace.prefix.dm">http://www.alfresco.org/model/demomodel/1.0</prop>
<prop key="contrat">dm:contrat</prop>
<prop key="clef">dm:clefcontrat</prop>
<prop key="dcheck">dm:ndcheck</prop>
<prop key="agence">dm:agence</prop>
<prop key="estdr">dm:nestdateret</prop>
<prop key="Ncond">dm:nnomcond</prop>
<prop key="compt">dm:compte</prop>
<prop key="immat">dm:immat</prop>
<prop key="nbillet">dm:nbilletr</prop>
<prop key="typres">dm:ntypres</prop>
<prop key="libagc">dm:nlibagc</prop>
<prop key="nreser">dm:nnres</prop>
<prop key="changeo">dm:nchover</prop>
</props>
</property>
</bean>
</beans>
en cas de prb , penser à utiliser : log4j.logger.org.alfresco.repo.content.metadata=debugdans
<ALF-DIR>/tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.