Changeset 26227 for main/trunk


Ignore:
Timestamp:
2012-09-20T13:55:41+12:00 (12 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

File:
1 edited

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'">
Note: See TracChangeset for help on using the changeset viewer.