Changeset 26227

Show
Ignore:
Timestamp:
20.09.2012 13:55:41 (7 years ago)
Author:
kjdon
Message:

added a couple of options to gsf:link type='document': OID attribute gives an alternative docOID to link to, while OIDmetadata gives a metadata that holds an OID to link to

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl

    r26176 r26227  
    106106                        <xslt:value-of select='/page/pageResponse/collection/@name'/> 
    107107                        <xsl:text>/document/</xsl:text> 
    108                         <xslt:value-of select='@nodeID'/> 
     108        <xsl:choose><xsl:when test="@OID"><xsl:value-of select="@OID"/></xsl:when><xsl:when test="@OIDmetadata"><xsl:variable name="OIDmeta" select="@OIDmetadata"/><xslt:value-of select="(.//metadataList)[last()]/metadata[@name='{$OIDmeta}']"/></xsl:when><xsl:otherwise> 
     109                        <xslt:value-of select='@nodeID'/></xsl:otherwise></xsl:choose> 
    109110                        <xslt:choose> 
    110111                            <xslt:when test="$bookswitch = 'on' or $bookswitch = 'flashxml'">