Ignore:
Timestamp:
2011-03-25T11:12:23+13:00 (13 years ago)
Author:
sjm84
Message:

Lots of upgrades to the oran skin, getting it ready to be the default skin for Greenstone3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/pages/document.xsl

    r22785 r23813  
    1919
    2020    <!-- set page breadcrumbs -->
    21     <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/></xsl:template>
     21    <xsl:template name="breadcrumbs">
     22        <gslib:siteLink/><gslib:rightArrow/>
     23        <gslib:collectionNameLinked/><gslib:rightArrow/>
     24        <a>
     25            <xsl:attribute name="href">
     26                <xsl:value-of select="$library_name"/>?a=d&amp;c=<xsl:value-of select="$collName"/>&amp;d=<xsl:value-of select="/page/pageResponse/document/documentNode[1]/@nodeID"/>&amp;dt=<xsl:value-of select="/page/pageResponse/document/documentNode/@docType"/>&amp;p.a=b&amp;p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>
     27            </xsl:attribute>
     28            <xsl:variable name="documentTitleVar">
     29                <gslib:documentTitle/>
     30            </xsl:variable>
     31            Document
     32        </a>
     33    </xsl:template>
    2234
    2335    <!-- the page content -->
     
    4557
    4658        <!-- display the document -->
    47                 <xsl:choose>
    48 
     59        <xsl:choose>
    4960            <xsl:when test="@external != ''">
    5061                <xsl:call-template name="externalPage">
     
    132143
    133144    </xsl:template>
    134   <xsl:template name="externalPage">
    135     <xsl:param name="external"/>
    136     <xsl:variable name="go_forward_link"><a><xsl:attribute name="href"><xsl:value-of select="$external"/></xsl:attribute><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.go_forward')"/></a></xsl:variable>
    137     <h2><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.title')"/></h2>
    138     <p><xsl:value-of select="util:getInterfaceTextWithDOM($interface_name, /page/@lang, 'external.text', $go_forward_link)" disable-output-escaping="yes"/>
    139     </p>
    140   </xsl:template>
    141 
     145   
     146    <xsl:template name="externalPage">
     147        <xsl:param name="external"/>
     148        <xsl:variable name="go_forward_link">
     149            <a>
     150                <xsl:attribute name="href">
     151                    <xsl:value-of select="$external"/>
     152                </xsl:attribute>
     153                <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.go_forward')"/>
     154            </a>
     155        </xsl:variable>
     156        <h2><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.title')"/></h2>
     157        <p><xsl:value-of select="util:getInterfaceTextWithDOM($interface_name, /page/@lang, 'external.text', $go_forward_link)" disable-output-escaping="yes"/></p>
     158    </xsl:template>
    142159
    143160    <xsl:template match="/page"><xsl:apply-templates select="/page/pageResponse/document"/></xsl:template> <!-- this to be deleted eventually -->
Note: See TracChangeset for help on using the changeset viewer.