cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting MS office metadata

amoriset
Champ in-the-making
Champ in-the-making
Hello,

I've created new metadata in word and I want to extract them to Alfresco.

I've created a xml extractor but it doesn't work. This is my code :

<?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.OpenDocument"
          class="org.alfresco.repo.content.metadata.OpenDocumentMetadataExtracter"
          parent="baseMetadataExtracter" >
        <property name="inheritDefaultMapping">
            <value>true</value>
        </property>
        <property name="mappingProperties">
            <props>
                <prop key="namespace.prefix.p">http://www.mygroup.fr/alfresco/model/document/1.0</prop>
                <prop key="test">p:test</prop>
            </props>
        </property>
    </bean>


</beans>

thanks  Smiley Happy
Aude
1 REPLY 1

mrogers
Star Contributor
Star Contributor
What do you mean by "it doesn't work"?   

There are a few things that immediatly spring to mind.

a) There is already an extractor for the office mime types built in.
b) Does your office document have a property called "test"
c) What mime types does your extractor work on?

What you probably should be doing is configuring the existing extractor rather than adding your own.