03-09-2010 01:12 PM
<bean id="extracter.OfficeDocument"
class="org.alfresco.repo.content.metadata.OfficeMetadataExtracter"
parent="baseMetadataExtracter">
<property name="inheritDefaultMapping">
<value>true</value>
</property>
<property name="mappingProperties">
<props>
<prop key="namespace.prefix.mymodel">http://www.mymodelsoln.com/model/content/1.0</prop>
<prop key="namespace.prefix.cm">http://www.alfresco.org/model/content/1.0</prop>
<prop key="docid">mymodel:docid</prop>
<prop key="comments">mymodel:comments</prop>
<prop key="category">mymodel:category</prop>
<prop key="subcategory">mymodel:subcategory</prop>
<prop key="policyno">mymodel:policyno</prop>
<prop key="claimno">mymodel:claimno</prop>
<prop key="agentno">mymodel:agentno</prop>
<prop key="providerno">mymodel:providerno</prop>
<prop key="contractno">mymodel:contractno</prop>
<prop key="govtid">mymodel:govtid</prop>
<prop key="effectivedate">mymodel:effectivedate</prop>
<prop key="product">mymodel:product</prop>
<prop key="region">mymodel:region</prop>
<prop key="keywords">mymodel:keywords</prop>
</props>
</property>
</bean>
<bean id="extracter.PDFBox"
class="org.alfresco.repo.content.metadata.PdfBoxMetadataExtracter"
parent="baseMetadataExtracter">
<property name="inheritDefaultMapping">
<value>true</value>
</property>
<property name="mappingProperties">
<props>
<prop key="namespace.prefix.mymodel">http://www.mymodelsoln.com/model/content/1.0</prop>
<prop key="namespace.prefix.cm">http://www.alfresco.org/model/content/1.0</prop>
<prop key="docid">mymodel:docid</prop>
<prop key="comments">mymodel:comments</prop>
<prop key="category">mymodel:category</prop>
<prop key="subcategory">mymodel:subcategory</prop>
<prop key="policyno">mymodel:policyno</prop>
<prop key="claimno">mymodel:claimno</prop>
<prop key="agentno">mymodel:agentno</prop>
<prop key="providerno">mymodel:providerno</prop>
<prop key="contractno">mymodel:contractno</prop>
<prop key="govtid">mymodel:govtid</prop>
<prop key="effectivedate">mymodel:effectivedate</prop>
<prop key="product">mymodel:product</prop>
<prop key="region">mymodel:region</prop>
<prop key="keywords">mymodel:keywords</prop>
</props>
</property>
</bean>
03-24-2010 11:05 AM
// Extract remaining custom properties
for (String customProp : super.getMapping().keySet())
{
if (rawProperties.keySet().contains(customProp))
{
// Ignore it
continue;
}
String customValue = docInfo.getCustomMetadataValue(customProp);
putRawValue(customProp, customValue, rawProperties);
}
after the catch code. I am putting this into the extractor and testing it now. Implement your own class to get the change now.03-24-2010 02:43 PM
03-25-2010 06:49 AM
07-13-2010 06:50 AM
…
<prop key="prop1">cm:description</prop>
…
but when i add a new PDF file nothing appears. I'm using Alfresco Community 3.2-r2, got some news with Alfresco Community 3.3?07-15-2010 06:03 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.