<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic v2.1 extractor problem on Office document custom property in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/v2-1-extractor-problem-on-office-document-custom-property/m-p/252637#M205767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to get the extractor to scrape a custom property called 'customerid' from a MS Word file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't get my custom extractor to work, any help would be appreciated. Here are the steps i have taken:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. created custom aspect in 'customModel.xml file&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;!– Custom Model –&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;!– Note: This model is pre-configured to load at startup of the Repository.&amp;nbsp; So, all custom –&amp;gt;&lt;BR /&gt;&amp;lt;!–&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; types and aspects added here will automatically be registered –&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;model name="custom:customModel" xmlns="&lt;A href="http://www.alfresco.org/model/dictionary/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/dictionary/1.0&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!– Optional meta-data about the model –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;description&amp;gt;Custom Model&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;author&amp;gt;&amp;lt;/author&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;imports&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– Import Alfresco Dictionary Definitions –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;import uri="&lt;A href="http://www.alfresco.org/model/dictionary/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/dictionary/1.0&lt;/A&gt;" prefix="d"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– Import Alfresco Content Domain Model Definitions –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;import uri="&lt;A href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;" prefix="cm"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/imports&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!– Introduction of new namespaces defined by this model –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;namespaces&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;namespace uri="custom.model" prefix="custom"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/namespaces&amp;gt;&lt;BR /&gt;&amp;lt;aspects&amp;gt;&lt;BR /&gt;&amp;lt;!– Definition of new Content Aspect: Customer Details –&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;aspect name="custom:CustomerDetails"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Customer Details&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;properties&amp;gt;&lt;BR /&gt; &amp;lt;property name="custom:CustomerName"&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Customer Name&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;protected&amp;gt;false&amp;lt;/protected&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;multiple&amp;gt;false&amp;lt;/multiple&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/properties&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/aspect&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/aspects&amp;gt;&lt;BR /&gt;&amp;lt;/model&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;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STRONG&gt;2. added new aspect to 'web-client-config-custom.xml'&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;!– Lists the custom aspect in business rules Action wizard –&amp;gt;&lt;BR /&gt;&amp;lt;config evaluator="string-compare" condition="Action Wizards"&amp;gt;&lt;BR /&gt;&amp;lt;aspects&amp;gt;&lt;BR /&gt;&amp;lt;aspect name="custom:CustomerDetails"/&amp;gt;&lt;BR /&gt;&amp;lt;/aspects&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;BR /&gt;&amp;lt;!– Displays the properties in view details page –&amp;gt;&lt;BR /&gt;&amp;lt;config evaluator="aspect-name" condition="custom:CustomerDetails"&amp;gt;&lt;BR /&gt;&amp;lt;property-sheet&amp;gt;&lt;BR /&gt;&amp;lt;separator name="sepCust1" display-label="Customer Details" component-generator="HeaderSeparatorGenerator" /&amp;gt;&lt;BR /&gt;&amp;lt;show-property name="custom:CustomerName"/&amp;gt;&lt;BR /&gt;&amp;lt;/property-sheet&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;BR /&gt;&amp;lt;/alfresco-config&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;STRONG&gt;3. added property to 'custom-metadata-extrators-context.xml'&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' '&lt;A href="http://www.springframework.org/dtd/spring-beans.dtd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/dtd/spring-beans.dtd&lt;/A&gt;'&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;!–&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This sample show how to modify the mappings properties of the new V2.1 Metadata Extractors.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In this example, in addition to the default mappings, the field 'user1' is mapped to&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'cm:description'.&amp;nbsp; The available source properties is described on the Javadocs of the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extracter class.&lt;BR /&gt;–&amp;gt;&lt;BR /&gt;&amp;lt;beans&amp;gt;&lt;BR /&gt;&amp;lt;bean id="extracter.Office" class="org.alfresco.repo.content.metadata.OfficeMetadataExtracter" parent="baseMetadataExtracter" &amp;gt;&lt;BR /&gt;&amp;lt;property name="inheritDefaultMapping"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="mappingProperties"&amp;gt;&lt;BR /&gt;&amp;lt;bean class="org.springframework.beans.factory.config.PropertiesFactoryBean"&amp;gt;&lt;BR /&gt;&amp;lt;property name="location"&amp;gt;&lt;BR /&gt;&amp;lt;value&amp;gt;classpath:alfresco/extension/custom-office-document-extractor-mappings.properties&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;custom-office-document-extractor-mappings.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;namespace.prefix.custom=custom.model&lt;BR /&gt;customerid=custom:CustomerName&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added two content rules to the space: 1. add the custom aspect to all items and 2. extract common metadata field to all items&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The aspect is added to the new content item but the new custom property is always blank.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jul 2011 10:59:10 GMT</pubDate>
    <dc:creator>col_edinburgh</dc:creator>
    <dc:date>2011-07-04T10:59:10Z</dc:date>
    <item>
      <title>v2.1 extractor problem on Office document custom property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/v2-1-extractor-problem-on-office-document-custom-property/m-p/252637#M205767</link>
      <description>I am trying to get the extractor to scrape a custom property called 'customerid' from a MS Word file.I can't get my custom extractor to work, any help would be appreciated. Here are the steps i have taken:1. created custom aspect in 'customModel.xml file&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;amp;l</description>
      <pubDate>Mon, 04 Jul 2011 10:59:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/v2-1-extractor-problem-on-office-document-custom-property/m-p/252637#M205767</guid>
      <dc:creator>col_edinburgh</dc:creator>
      <dc:date>2011-07-04T10:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: v2.1 extractor problem on Office document custom property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/v2-1-extractor-problem-on-office-document-custom-property/m-p/252638#M205768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok, after some trial and error i can confirm the extractor works with the words 'summary' properties but not with the 'custom' ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e this works&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;namespace.prefix.custom=custom.model&lt;BR /&gt;Keywords=custom:CustomerName&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of using keywords i want to use a custom property I created on word 'customerid' but the extractor doesn't recognise this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to extract custom properties?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 16:55:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/v2-1-extractor-problem-on-office-document-custom-property/m-p/252638#M205768</guid>
      <dc:creator>col_edinburgh</dc:creator>
      <dc:date>2011-07-04T16:55:47Z</dc:date>
    </item>
  </channel>
</rss>

