04-22-2010 10:20 AM
<TEI.2 id="_jamesi_t1428_7_1_d6_trans" n="jamesi_trans">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Procedure: preamble</title>
</titleStmt>
<editionStmt>
<edition n="session">jamesi_t1428_7_1_d2_trans</edition>
</editionStmt>
<publicationStmt>
<date>14280712</date>
</publicationStmt>
</fileDesc>
</teiHeader>
<text>…</text>
</TEI.2>
<model name="rps:rpsModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
…
<namespaces>
<namespace uri="rps.ns" prefix="rps"/>
</namespaces>
<types>
<type name="rps:document">
<title>RPS document</title>
<parent>cm:content</parent>
<mandatory-aspects>
<aspect>cm:generalclassifiable</aspect>
</mandatory-aspects>
</type>
</types>
<aspects>
<aspect name="rps:metadata">
<title>RPS Metadata</title>
<properties>
<property name="rps:id">
<type>d:text</type>
</property>
<property name="rps:reign">
<type>d:text</type>
</property>
<property name="rps:session">
<type>d:text</type>
</property>
<property name="rps:date">
<type>d:int</type>
</property>
</properties>
</aspect>
</aspects>
</model>
<alfresco-config>
<config evaluator="aspect-name" condition="rps:metadata">
<property-sheet>
<show-property name="rps:id" display-label-id="rpsID"/>
<show-property name="rps:reign" display-label-id="rpsReign"/>
<show-property name="rps:session" display-label-id="rpsSession"/>
<show-property name="rps:date" display-label-id="rpsDate"/>
</property-sheet>
</config>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="rps:document"/>
</content-types>
</config>
<config evaluator="string-compare" condition="Action Wizards">
<aspects>
<aspect name="rps:metadata"/>
</aspects>
<specialise-types>
<type name="rps:document"/>
</specialise-types>
</config>
</alfresco-config>
<entry key="/TEI.2">
<ref bean="extracter.TEIMetadataExtracter" />
</entry>
<bean id="extracter.TEIMetadataExtracter" class="org.alfresco.repo.content.metadata.xml.XPathMetadataExtracter" parent="baseMetadataExtracter" init-method="init" >
<property name="mappingProperties">
<bean class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
<props>
<prop key="namespace.prefix.rps">rps.ns</prop>
<prop key="rpsID">rps:id</prop>
<prop key="rpsReign">rps:reign</prop>
<prop key="rpsSession">rps:session</prop>
<prop key="rpsDate">rps:date</prop>
</props>
</property>
</bean>
</property>
<property name="xpathMappingProperties">
<bean class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
<props>
<!– should there be some namespace prop here? –>
<prop key="rpsID">/TEI.2/@id</prop>
<prop key="rpsReign">/TEI.2/teiHeader/fileDesc/titleStmt/title/text()</prop>
<prop key="rpsSession">/TEI.2/teiHeader/fileDesc/editionStmt/edition[@n='session']/text()</prop>
<prop key="rpsDate">/TEI.2/teiHeader/fileDesc/publicationStmt/date/text()</prop>
</props>
</property>
</bean>
</property>
</bean>
04-22-2010 01:39 PM
04-23-2010 05:50 AM
10:15:06,981 DEBUG [metadata.xml.XPathMetadataExtracter] Added mapping from rpsDate to /TEI.2/teiHeader/fileDesc/publicationStmt/date/text()
10:15:06,982 DEBUG [metadata.xml.XPathMetadataExtracter] Added mapping from rpsSession to /TEI.2/teiHeader/fileDesc/editionStmt/edition[@n='session']/text()
10:15:06,982 DEBUG [metadata.xml.XPathMetadataExtracter] Added mapping from rpsReign to /TEI.2/teiHeader/fileDesc/titleStmt/title/text()
10:15:06,983 DEBUG [metadata.xml.XPathMetadataExtracter] Added mapping from rpsID to /TEI.2/@id
10:15:06,992 DEBUG [metadata.xml.XPathMetadataExtracter] Added mapping from version to /model/version/text()
10:15:06,992 DEBUG [metadata.xml.XPathMetadataExtracter] Added mapping from author to /model/author/text()
10:15:06,993 DEBUG [metadata.xml.XPathMetadataExtracter] Added mapping from description to /model/description/text()
10:15:06,993 DEBUG [metadata.xml.XPathMetadataExtracter] Added mapping from title to /model/@name
10:15:06,999 WARN [springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'overwritePolicy' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter.setOverwritePolicy(java.lang.String)]: [public void org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter.setOverwritePolicy(org.alfresco.repo.content.metadata.MetadataExtracter$OverwritePolicy)]
04-23-2010 07:25 AM
05-12-2010 05:02 AM
05-12-2010 06:26 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.