Changeset 26043

Show
Ignore:
Timestamp:
31.07.2012 14:45:16 (7 years ago)
Author:
ak19
Message:

Belongs with commit 26038 (changes to Action.java): 1. gsf:link type=equivdoc now gets expanded to the same as gsf:equivlinkgs3. Used in the Associated Files Example tutorial. 2. Thanks to Sam, the gsf:link type=web (with icon of type web too) now works as well. This simplifies and streamlines the format statement for the Pointing To Docs On Web tutorial.

Files:
1 modified

Legend:

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

    r26031 r26043  
    8787                  <xsl:apply-templates/> 
    8888                </a> 
     89            </xsl:when> 
     90            <xsl:when test="@type='web'"> 
     91              <xslt:value-of disable-output-escaping="yes" select="metadataList/metadata[contains(@name, 'weblink')]"/> 
     92              <xsl:apply-templates/> 
     93              <xslt:value-of disable-output-escaping="yes" select="metadataList/metadata[contains(@name, '/weblink')]"/> 
     94            </xsl:when> 
     95            <xsl:when test="@type='equivdoc'"> 
     96              <xsl:call-template name="gsf:equivlinkgs3"/> 
    8997            </xsl:when> 
    9098            <xsl:otherwise> <!-- a document link --> 
     
    119127                <img style="border:0px"><xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'bookshelf_image')"/></xsl:attribute></img> 
    120128            </xsl:when> 
     129            <xsl:when test="@type='web'"> 
     130              <xslt:value-of disable-output-escaping="yes" select="metadataList/metadata[contains(@name, 'webicon')]"/>              
     131            </xsl:when> 
    121132            <xsl:when test="not(@type) or @type='document'"> 
    122133                <img style="border:0px"><xslt:attribute name="id">documentBasketBook<xslt:value-of select="/page/pageResponse/collection/@name"/>:<xslt:value-of select="@nodeID"/></xslt:attribute><xslt:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'page_icon_image')"/></xslt:attribute></img>  
     
    133144 
    134145  <!-- Another way (also works with DSpace tutorial): build all the equivalent document links for the current document in one go. No looping necessary: handled in function call. --> 
    135   <xsl:template match="gsf:equivlinkgs3"> 
     146  <xsl:template match="gsf:equivlinkgs3" name="gsf:equivlinkgs3"> 
    136147    <xslt:variable name="docicon" select="metadataList/metadata[contains(@name, 'equivDocIcon')]"/>  
    137148    <xslt:variable name="docStartlink" select="metadataList/metadata[contains(@name, 'all_*,*_equivDocLink')]"/>