Changeset 24198

Show
Ignore:
Timestamp:
23.06.2011 18:07:47 (9 years ago)
Author:
ak19
Message:

First fix to DSpace tutorial's display: the primary document icon (for a list of equivalent docs) now links to the source document.

Location:
main/trunk/greenstone3
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/Action.java

    r24087 r24198  
    114114                Element elem = (Element)link_nodes.item(i); 
    115115                String type = elem.getAttribute("type"); 
    116             if (type.equals("source")) { 
     116            if (type.equals("source") || type.equals("sourcelinkfile")) { 
    117117            meta_names.add("assocfilepath"); 
    118118            } 
  • main/trunk/greenstone3/web/interfaces/default/transform/config_format.xsl

    r24087 r24198  
    4141       disable-output-escaping="yes" select="metadataList/metadata[@name='assocfilepath']" />/<xslt:value-of  
    4242       disable-output-escaping="yes" select="metadataList/metadata[@name='Source']" /></xslt:attribute> 
     43      <xsl:apply-templates/> 
     44    </a> 
     45      </xsl:when> 
     46    <xsl:when test="@type='sourcelinkfile'"> 
     47    <a><xslt:attribute name='href'><xslt:value-of  
     48       disable-output-escaping="yes" select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']" />/index/assoc/<xslt:value-of  
     49       disable-output-escaping="yes" select="metadataList/metadata[@name='assocfilepath']" />/<xslt:value-of  
     50       disable-output-escaping="yes" select="metadataList/metadata[@name='srclinkFile']" /></xslt:attribute> 
    4351      <xsl:apply-templates/> 
    4452    </a>