Changeset 28733

Show
Ignore:
Timestamp:
03.12.2013 11:14:13 (6 years ago)
Author:
davidb
Message:

Added in 'collection' object/predicate to help pick a specific collection out of the triple store

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/etc/gsdom2rdf.xsl

    • Property svn:mime-type changed from application/xml to text/plain
    r28582 r28733  
    4444:<xsl:value-of select="$docoid"/> 
    4545 
     46    dc:Relation.isPartOf &lt;@libraryurl@/collection/@collect@&gt; ; 
     47 
    4648    <xsl:for-each select="Metadata"> 
    4749 
     
    7072      </xsl:if> 
    7173 
     74      <xsl:if test="starts-with($metaname,'nz.')"> 
     75    <xsl:variable name="metanameSuffix"><xsl:value-of select="substring($metaname,4)"/></xsl:variable> 
     76    gsembedded:<xsl:value-of select="$metanameSuffix"/><xsl:text> </xsl:text>&quot;<xsl:value-of select="$metaval"/>&quot;<xsl:text> ;</xsl:text> 
     77      </xsl:if> 
     78 
     79      <xsl:if test="starts-with($metaname,'hathi.')"> 
     80    <xsl:variable name="metanameSuffix"><xsl:value-of select="substring($metaname,4)"/></xsl:variable> 
     81    gsembedded:<xsl:value-of select="$metanameSuffix"/><xsl:text> </xsl:text>&quot;<xsl:value-of select="$metaval"/>&quot;<xsl:text> ;</xsl:text> 
     82      </xsl:if> 
     83 
    7284      <xsl:if test="not(contains($metaname,'.'))"> 
    7385    gsextracted:<xsl:value-of select="$metaname"/><xsl:text> </xsl:text>&quot;<xsl:value-of select="$metaval"/>&quot;<xsl:text> ;</xsl:text>