Ignore:
Timestamp:
2003-08-07T17:05:40+12:00 (21 years ago)
Author:
kjdon
Message:

now have navigation bar, some style templates have been renamed, hopefully I haven't stuffed anything up, will check at some stage

File:
1 edited

Legend:

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

    r4975 r5119  
    3434  <xsl:template match="pageResponse">
    3535    <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
    36     <center>
    37       <xsl:call-template name="collectionPageBanner">
     36    <!--<center>-->
     37      <xsl:call-template name="standardPageBanner">
    3838    <xsl:with-param name="collName" select="$collName"/>
    3939      </xsl:call-template>
    40      
     40    <xsl:call-template name="standardNavBar">
     41      <xsl:with-param name="collName" select="$collName"/>
     42    </xsl:call-template>     
     43<!--      <xsl:call-template name="dividerBar"/>-->
    4144      <!-- display the document -->
    4245      <xsl:apply-templates select="document">
    4346    <xsl:with-param name="collName" select="$collName"/>
    4447      </xsl:apply-templates>
    45     </center>
     48   <!-- </center>-->
    4649   
    47     <xsl:call-template name="greenBar"/>
     50    <xsl:call-template name="dividerBar"/>
    4851  </xsl:template>
    4952   
     
    6265  <xsl:template name="documentHeading">
    6366    <xsl:param name="collName"/>
    64     <table width="537" cellpadding="0" cellspacing="0">
     67    <table width="100%" cellpadding="0" cellspacing="0">
    6568      <tr>
    6669    <td valign="top" align="left" width="200">
     
    162165  <xsl:template match="nodeContent">
    163166    <p/>
    164     <table width="537" cellpadding="0" cellspacing="0">
     167    <table width="100%" cellpadding="0" cellspacing="0">
    165168      <tr>
    166169    <td align="left">
     
    174177      </tr>
    175178    </table>
     179  </xsl:template>
     180 
     181  <!-- match any link nodes -->
     182 
     183  <xsl:template match="link">
     184    <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
     185    <xsl:variable name="actionargs">
     186      <xsl:choose>
     187    <xsl:when test="@type='document'">a=d</xsl:when>
     188    <xsl:when test="@type='query'">a=q&amp;s=<xsl:value-of select="@service"/>&amp;rt=r</xsl:when>
     189    <xsl:otherwise>
     190      p
     191    </xsl:otherwise>
     192      </xsl:choose>
     193    </xsl:variable>
     194    <xsl:variable name="serviceargs">
     195      <xsl:for-each select="param">&amp;s1.<xsl:value-of select="@name"/>=<xsl:value-of select="@value"/></xsl:for-each>
     196  </xsl:variable>
     197    <a href="{$library_name}?{$actionargs}&amp;c={$collName}{$serviceargs}"><xsl:value-of disable-output-escaping="yes" select="."/></a>
    176198  </xsl:template>
    177199
Note: See TracChangeset for help on using the changeset viewer.