Changeset 26317

Show
Ignore:
Timestamp:
16.10.2012 14:57:02 (7 years ago)
Author:
kjdon
Message:

more modes to get niupepa collection working

Files:
1 modified

Legend:

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

    r26250 r26317  
    99    <xsl:param name="interface_name"/> 
    1010    <xsl:param name="library_name"/> 
    11    
     11  
    1212    <xsl:output method="xml"/> 
    1313    <xsl:namespace-alias stylesheet-prefix="xslt" result-prefix="xsl"/> 
     
    6767 
    6868    <xsl:template match="gsf:link"> 
     69    <xslt:variable name="collName" select="/page/pageResponse/collection/@name"/> 
    6970        <xsl:choose> 
    7071            <xsl:when test="@type='classifier'"> 
     
    9394              <xslt:value-of disable-output-escaping="yes" select="metadataList/metadata[contains(@name, '/weblink')]"/> 
    9495            </xsl:when> 
     96      <xsl:when test="@type='page'"> 
     97                <a> 
     98                    <xslt:attribute name='href'> 
     99                        <xslt:value-of select='$library_name'/> 
     100                        <xsl:text>/collection/</xsl:text> 
     101                        <xslt:value-of select='/page/pageResponse/collection/@name'/>/page/<xsl:value-of select="@page"/></xslt:attribute> 
     102      <xsl:choose> 
     103      <xsl:when test="@title"><xsl:attribute name="title"><xsl:value-of select="@title"/></xsl:attribute></xsl:when> 
     104        <xsl:when test="@titlekey"><xslt:attribute name="title"><xslt:value-of disable-output-escaping="yes" select="util:getCollectionText($collName, $site_name, /page/@lang, '{@titlekey}')"/></xslt:attribute></xsl:when></xsl:choose> 
     105                    <xsl:apply-templates/> 
     106                </a>     
     107      </xsl:when> 
    95108            <xsl:when test="@type='equivdoc'"> 
    96109              <xsl:call-template name="gsf:equivlinkgs3"/> 
     
    240253    <!-- With gsf:collectionText, a user can request a string from the collection's dictionary in the current lang --> 
    241254    <xsl:template match="gsf:collectionText" name="gsf:collectionText"> 
    242     <!--<xslt:variable name="collName" select="/page/pageResponse/collection/@name"/>--> 
    243       <xslt:value-of disable-output-escaping="yes" select="util:getCollectionText($collName, $site_name, /page/@lang, '{@name}')"/> 
     255    <xslt:variable name="collName" select="/page/pageResponse/collection/@name"/> 
     256      <xslt:value-of disable-output-escaping="yes" select="util:getCollectionText($collName, $site_name, /page/@lang, '{@name}', '{@args}')"/> 
    244257    </xsl:template> 
    245258