Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsl:for-each select="foxml:datastream[@ID='RELS-EXT']/foxml:datastreamVersion[last()]/foxml:xmlContent//rdf:Description/*">
- <field>
- <xsl:attribute name="name">
- <xsl:value-of select="concat('rels.', substring-after(name(),':'))"/>
- </xsl:attribute>
- <xsl:choose>
- <xsl:when test="@rdf:resource">
- <!-- Deal with URIs/resources -->
- <xsl:value-of select="substring-after(@rdf:resource, 'info:fedora/')"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- otherwise, assume it's a literal -->
- <xsl:value-of select="text()"/>
- </xsl:otherwise>
- </xsl:choose>
- </field>
- </xsl:for-each>
- <copyField source="rels.isMemberOf" dest="collection"/>
- <field name="rels.isMemberOf" type="text" indexed="true" stored="false" multiValued="true"/>
- <copyField source="rels.isMemberOfCollection" dest="collection"/>
- <field name="rels.isMemberOfCollection" type="text" indexed="true" stored="false"
- multiValued="true"/>
- <field name="collection" type="string" maxChars="300" indexed="true" stored="true"
- multiValued="true"/>
Add Comment
Please, Sign In to add comment