cancel
Showing results for 
Search instead for 
Did you mean: 

MS Office Meta Data Extractor

thestorm
Champ in-the-making
Champ in-the-making
Hey guys,

made a Meta Data Extractor but its not working … maybe someone sees my mistake, would apreciate that.

custom aspect:


    <aspects>
      <!– Enterprise-wide generic document aspect –>
      <aspect name="sa:doc">
         <title>Saicon Document</title>
         <properties>
            <property name="sa:DLSTitle">               
               <type>d:text</type>
            </property>
         </properties>
      </aspect>
    </aspects>


saicon-extractor-context.xml

<?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.Office" class="org.alfresco.repo.content.metadata.OfficeMetadataExtracter" parent="baseMetadataExtracter" >
   <property name="inheritDefaultMapping">
      <value>true</value>
   </property>
   <property name="mappingProperties">
      <bean class="org.springframework.beans.factory.config.PropertiesFactoryBean">
         <property name="location">
            <value>classpath:alfresco/extension/saicon-extractor-mappings.properties</value>
         </property>
      </bean>
   </property>
</bean>
</beans>

saicon-extractor-mappings.properties

namespace.prefix.sa=saicon.model
DLSTitle=sa:DLSTitle

web-client-config-custom.xml


   <config evaluator="string-compare" condition="Action Wizards">
      <aspects>
         <type name="sa:doc" />
      </aspects>
   </config>
   <config evaluator="aspect-name" condition="sa:doc">
      <property-sheet>             
         <show-property name="sa:DLSTitle" />
      </property-sheet>
   </config>


I use a rule to add aspect (1) and then extract metadata

aspect is added and I can see the property in my web client on the document details but the property value is empty.

no idea what I missed out … (used .doc and .docx) value is set in the document for sure!
1 REPLY 1

thestorm
Champ in-the-making
Champ in-the-making
sorry for pushing this, but thats a basic function of Alfresco, is no one using that one????