cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with metadata extractors

nacho_manzano
Champ in-the-making
Champ in-the-making
Hi,

I have the a problem with the following code in Alfresco 2.1.2.
(custom-metadata-extrators-context.xml file)

If I use a text property it works fine, but if I use a date property it
doesn´t work. This code worked well in Alfresco 2.1.1 but it doesn´t work in
Alfresco 2.1.2.   Does anybody know why?

<beans>
   <bean id="extracter.PdfDocument" 
class="org.alfresco.repo.content.metadata.PdfBoxMetadataExtracter" 
parent="baseMetadataExtracter" >
        <property name="inheritDefaultMapping">
            <value>true</value>
        </property>
        <property name="mappingProperties">
            <props>
                <prop 
key="namespace.prefix.evoltia">evoltia:modelevoltia</prop>
                <prop key="created">evoltia:testDate</prop>
            </props>
        </property>
    </bean>
</beans>




Thanks in advance.
1 REPLY 1

pmonks
Star Contributor
Star Contributor
2.1.2 added the ability to configure different formats for dates that are metadata extracted (see http://wiki.alfresco.com/wiki/Metadata_Extraction#Date_Conversions_.28V2.1.2E.29 for details).  My guess is that your dates don't match the default date format any longer, but that with a little bit of configuration you should be able to get it working again.

Cheers,
Peter