Ignore:
Timestamp:
2017-09-07T10:08:34+12:00 (7 years ago)
Author:
kjdon
Message:

added the ability to change the file to be used in a source link through the source_meta attribute to gsf:link

File:
1 edited

Legend:

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

    r31656 r31942  
    202202                      </xsl:attribute>   
    203203                    </xsl:if>
    204 
     204                     
    205205                    <xslt:attribute name='href'>
    206206                        <xslt:value-of select='$library_name'/>
     
    248248                    </xslt:choose>                     
    249249                </xslt:variable>
     250                <xsl:variable name="image_meta">
     251                  <xsl:choose>
     252                    <xsl:when test="@source_meta"><xsl:value-of select="@source_meta"/>
     253                    </xsl:when>
     254                    <xsl:otherwise>srclinkFile</xsl:otherwise>
     255                  </xsl:choose>
     256                </xsl:variable>
    250257                <a>
    251258                    <xsl:if test="@target">
     
    258265                   disable-output-escaping="yes" select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']" />/index/assoc/<xslt:value-of
    259266                   disable-output-escaping="yes" select="$thisAssocfilepath" />/<xslt:value-of
    260                    disable-output-escaping="yes" select="(.//metadataList)[last()]/metadata[@name='srclinkFile']" />
     267                   disable-output-escaping="yes" select="(.//metadataList)[last()]/metadata[@name='{$image_meta}']" />
    261268                    </xslt:attribute>
    262269                    <xsl:copy-of select="$opt-title"/>
Note: See TracChangeset for help on using the changeset viewer.