Ignore:
Timestamp:
2003-06-18T12:08:01+12:00 (21 years ago)
Author:
kjdon
Message:

made a lot of changes, cant remember tham all. config stuff is now global params, translate stuff is now done on the fly using java and XSLTUtil, redoing the document display stuff so that it switches automatically between toc, page nav, and just displaying the text

File:
1 edited

Legend:

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

    r4253 r4712  
    1111    stylesheet-prefix="xslt" result-prefix="xsl"/>
    1212
    13 
    1413  <xsl:template match="format">
    1514    <format hello="yes">
     
    2322      <xsl:attribute name="priority">2</xsl:attribute>
    2423      <xsl:if test=".//gsf:link/@type">
    25     <xslt:param name="serviceName">service-name</xslt:param>
     24    <xslt:param name="serviceName"/>
    2625      </xsl:if>
    2726      <xsl:if test=".//gsf:link">
    28     <xslt:param name="collName">coll-name</xslt:param>
    29     <xslt:variable name='library' select='ancestor::page/pageExtra/config/library_name'/>
     27    <xslt:param name="collName"/>
    3028      </xsl:if>
    3129      <xsl:apply-templates/>
     
    3634    <xsl:choose>
    3735      <xsl:when test="@type='classifier'">
    38     <a><xslt:attribute name='href'><xslt:value-of select='$library'/>?a=b&amp;rt=r&amp;s=<xslt:value-of select='$serviceName'/>&amp;c=<xslt:value-of select='$collName'/>&amp;cl=<xslt:value-of select='@nodeID'/><xslt:if test="classifierNode|documentNode">.pr</xslt:if><xslt:if test="parent::node()[@orientation='horizontal']">&amp;sib=1</xslt:if></xslt:attribute>
     36    <a><xslt:attribute name='href'><xslt:value-of select='$library_name'/>?a=b&amp;rt=r&amp;s=<xslt:value-of select='$serviceName'/>&amp;c=<xslt:value-of select='$collName'/>&amp;cl=<xslt:value-of select='@nodeID'/><xslt:if test="classifierNode|documentNode">.pr</xslt:if><xslt:if test="parent::node()[@orientation='horizontal']">&amp;sib=1</xslt:if></xslt:attribute>
    3937      <xsl:apply-templates/>
    4038    </a>
    4139      </xsl:when>
    4240      <xsl:otherwise> <!-- a document link -->
    43     <a><xsl:attribute name="href">{$library}?a=d&amp;c={$collName}&amp;d={@nodeID}</xsl:attribute>
    44       <xsl:apply-templates/>
    45     </a>
     41    <xsl:choose>
     42      <xsl:when test="/format/@type = 'search'">
     43        <a><xsl:attribute name="href">{$library_name}?a=d&amp;c={$collName}&amp;d={@nodeID}&amp;dt={@documentType}</xsl:attribute><xsl:apply-templates/></a>
     44      </xsl:when>
     45      <xsl:otherwise>
     46        <a><xsl:attribute name="href">{$library_name}?a=d&amp;c={$collName}&amp;d={@nodeID}</xsl:attribute><xsl:apply-templates/></a>
     47      </xsl:otherwise>
     48    </xsl:choose>
    4649      </xsl:otherwise>
    4750    </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.