Ignore:
Timestamp:
2011-05-25T20:10:55+12:00 (13 years ago)
Author:
ak19
Message:

Dr Bainbridge fixed Papitha's problem with GS3 not embedding thumbnails of image collections in links that take one to the source document. Katherine explained that we will need to modify the config_format.xsl in interfaces to have process a gsf:link for type=source. Dr Bainbridge found that we needed to make use of the httpPath variable to help us construct the URL path for the link and that we additionally needed to request the assocfilepath metadata in order to get all the meta needed to complete the URL, so now the GS3 java code requests assocfilemeta as well.

File:
1 edited

Legend:

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

    r23972 r24087  
    3636    </a>
    3737      </xsl:when>
     38      <xsl:when test="@type='source'">
     39    <a><xslt:attribute name='href'><xslt:value-of
     40       disable-output-escaping="yes" select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']" />/index/assoc/<xslt:value-of
     41       disable-output-escaping="yes" select="metadataList/metadata[@name='assocfilepath']" />/<xslt:value-of
     42       disable-output-escaping="yes" select="metadataList/metadata[@name='Source']" /></xslt:attribute>
     43      <xsl:apply-templates/>
     44    </a>
     45      </xsl:when>
     46     
    3847      <xsl:otherwise> <!-- a document link -->
    3948    <xslt:variable name="bookswitch"><xslt:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/></xslt:variable>
Note: See TracChangeset for help on using the changeset viewer.