mirror of
				https://github.com/Alfresco/alfresco-community-repo.git
				synced 2025-10-29 15:21:53 +00:00 
			
		
		
		
	git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@34749 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version='1.0' encoding='UTF-8'?>
 | |
| <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
 | |
| 
 | |
| <!--
 | |
|        This sample show how to modify the mappings properties of the new V2.1 Metadata Extractors.
 | |
|        In this example, in addition to the default mappings, the field 'user1' is mapped to
 | |
|        'cm:description'.  The available source properties is described on the Javadocs of the
 | |
|        extracter class.
 | |
| -->
 | |
| <beans>
 | |
| 
 | |
|     <!-- This adds in the extra mapping for the Open Document extractor -->
 | |
|     <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.cm">http://www.alfresco.org/model/content/1.0</prop>
 | |
|                 <prop key="user1">cm:description</prop>
 | |
|             </props>
 | |
|         </property>
 | |
|     </bean>
 | |
| 
 | |
|     <!-- While this one adds it for the Tika Auto-Detect extractor -->
 | |
|    <bean id="extracter.TikaAuto" class="org.alfresco.repo.content.metadata.TikaAutoMetadataExtracter" parent="baseMetadataExtracter">
 | |
|         <constructor-arg><ref bean="tikaConfig"/></constructor-arg>
 | |
|         <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>
 | |
|             </props>
 | |
|         </property>
 | |
|     </bean>
 | |
| </beans>
 |