Changeset 8526


Ignore:
Timestamp:
2004-11-12T14:04:08+13:00 (19 years ago)
Author:
kjdon
Message:

tidied up the style stuff - now uses css. pageHead is now defined by style, with pageTitle and pageStyle in each page. got rid of the attribute sets and colors in style - uses css instead.

Location:
trunk/gsdl3/web/interfaces/default/transform
Files:
11 edited

Legend:

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

    r7473 r8526  
    1212  <xsl:output method="html"/> 
    1313
    14   <xsl:template name="pageHead">
    15     <head>
    16       <title>
    17     <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/><xsl:text> </xsl:text>
    18       </title>
    19     </head>
     14  <xsl:template name="pageTitle">
     15    <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/>
    2016  </xsl:template>
     17
     18  <!-- page specific style goes here -->
     19  <xsl:template name="pageStyle"/>
    2120
    2221  <xsl:template match="pageResponse">
     
    6362        </xsl:choose></xsl:variable>
    6463      <xsl:if test="$action !='DO_NOT_DISPLAY'">
    65         <tr><td xsl:use-attribute-sets="td-brownbutton"><a style="text-decoration:none" href="{$library_name}?a={$action}&amp;rt=d&amp;s={@name}&amp;c={$collName}"><b><font color='{$colour-button-text}'><xsl:value-of select="displayItem[@name='name']"/></font></b></a></td><td><xsl:value-of select="displayItem[@name='description']"/></td></tr>
     64        <tr><td class="brownbutton"><a class="brownbutton" href="{$library_name}?a={$action}&amp;rt=d&amp;s={@name}&amp;c={$collName}"><xsl:value-of select="displayItem[@name='name']"/></a></td><td><xsl:value-of select="displayItem[@name='description']"/></td></tr>
    6665      </xsl:if>
    6766    </xsl:for-each>
     
    7170  </xsl:template>
    7271
    73 
    7472</xsl:stylesheet> 
    7573
  • trunk/gsdl3/web/interfaces/default/transform/applet.xsl

    r5123 r8526  
    1111  <xsl:output method="html"/> 
    1212
    13   <xsl:template name="pageHead">
    14     <head>
    15       <title>
    16     <xsl:value-of select="pageResponse/service/applet"/>
    17       </title>
    18     </head>
     13  <xsl:template name="pageTitle">
     14    <xsl:value-of select="pageResponse/service/applet"/>
    1915  </xsl:template>
     16
     17  <!-- page specific style goes here -->
     18  <xsl:template name="pageStyle"/>
    2019
    2120  <xsl:template match="pageResponse">
  • trunk/gsdl3/web/interfaces/default/transform/classifier.xsl

    r5131 r8526  
    1212  <xsl:output method="html"/> 
    1313
    14   <xsl:template name="pageHead">
    15     <head>
    16       <title><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></title>
    17     </head>
     14  <xsl:template name="pageTitle">
     15    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
    1816  </xsl:template>
     17
     18  <!-- page specific style goes here -->
     19  <xsl:template name="pageStyle"/>
     20
    1921
    2022  <xsl:template match="pageResponse">
  • trunk/gsdl3/web/interfaces/default/transform/document.xsl

    r8508 r8526  
    1212  <xsl:output method="html"/>
    1313 
    14   <xsl:template name="pageHead">
     14  <xsl:template name="pageTitle">
    1515    <xsl:variable name="docID" select="/page/pageResponse/document/@selectedNode"/>
    16     <head>
    17       <title><xsl:for-each select='/page/pageResponse/document/descendant::documentNode[@nodeID=$docID]/ancestor-or-self::documentNode'><xsl:if test='position()!=1'>::</xsl:if><xsl:value-of select="metadataList/metadata[@name='Title']"/></xsl:for-each><xsl:text> </xsl:text></title>
    18       <xsl:call-template name="css-style"/>
    19     </head>
     16    <xsl:for-each select='/page/pageResponse/document/descendant::documentNode[@nodeID=$docID]/ancestor-or-self::documentNode'><xsl:if test='position()!=1'>::</xsl:if><xsl:value-of select="metadataList/metadata[@name='Title']"/></xsl:for-each>
    2017  </xsl:template>
    2118
    2219  <!-- this is hard coded for GATE, should somehow do it dynamically-->
    23   <xsl:template name="css-style">
     20  <xsl:template name="pageStyle">
    2421    <style type="text/css">
    2522      <xsl:text disable-output-escaping="yes">
     
    115112     
    116113      <xsl:if test="@docType = 'hierarchy' or @docType = 'paged'">
    117       <tr><td xsl:use-attribute-sets="td-brownbutton">
     114      <tr><td class="brownbutton">
    118115      <xsl:choose><xsl:when test="string($ed)='1'">
    119           <a style="text-decoration:none" href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ed=0"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_tip')"/></xsl:attribute>
    120         <b><font size='-2' color='{$colour-button-text}'><xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_b')"/></font></b>
     116          <a class="brownbutton" href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ed=0"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_tip')"/></xsl:attribute>
     117          <font size='-2'><xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_b')"/></font>
    121118          </a>
    122119        </xsl:when>
    123120        <xsl:otherwise>
    124       <a style="text-decoration:none" href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ed=1"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_tip')"/></xsl:attribute>
    125         <b><font size='-2' color='{$colour-button-text}'><xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_b')"/></font></b>
     121      <a class="brownbutton" href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ed=1"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_tip')"/></xsl:attribute>
     122        <font size='-2'><xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_b')"/></font>
    126123      </a>
    127124        </xsl:otherwise>
     
    132129      <!-- expand contents -->
    133130      <xsl:if test="@docType = 'hierarchy' and string(/page/pageResponse/format/gsf:option[@name='documentTOC']/@value) != 'false'">
    134       <tr><td xsl:use-attribute-sets="td-brownbutton">
     131      <tr><td class="brownbutton">
    135132      <xsl:choose><xsl:when test="string($ec)='1'">
    136           <a style="text-decoration:none" href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ec=0"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_tip')"/></xsl:attribute>
    137         <b><font size='-2' color='{$colour-button-text}'><xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_b')"/></font></b>
     133          <a class="brownbutton" href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ec=0"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_tip')"/></xsl:attribute>
     134          <font size='-2'><xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_b')"/></font>
    138135          </a>
    139136        </xsl:when>
    140137        <xsl:otherwise>
    141           <a style="text-decoration:none" href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ec=1"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_contents_tip')"/></xsl:attribute>
    142         <b><font size='-2' color='{$colour-button-text}'><xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_contents_b')"/></font></b>
     138          <a class="brownbutton" href="{$library_name}?a=d&amp;d={$docID}&amp;c={$collName}&amp;sib={$sib}&amp;ec=1"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_contents_tip')"/></xsl:attribute>
     139        <font size='-2'><xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_contents_b')"/></font>
    143140          </a>
    144141        </xsl:otherwise>
     
    148145      <!-- detach page -->
    149146      <xsl:variable name="paramList" select="/page/pageRequest/paramList"/>
    150       <tr><td xsl:use-attribute-sets="td-brownbutton">
    151       <a style="text-decoration:none" target="_blank"><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;d=<xsl:value-of select="$docID"/>&amp;c=<xsl:value-of select="$collName"/>&amp;sib=<xsl:value-of select="$sib"/>&amp;dt=<xsl:value-of select="$paramList/param[@name='dt']/@value"/>&amp;ec=<xsl:value-of select="$paramList/param[@name='ec']/@value"/>&amp;et=<xsl:value-of select="$paramList/param[@name='et']/@value"/>&amp;p.a=<xsl:value-of select="$paramList/param[@name='p.a']/@value"/>&amp;p.s=<xsl:value-of select="$paramList/param[@name='p.s']/@value"/>&amp;p.sa=<xsl:value-of select="$paramList/param[@name='p.sa']/@value"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_tip')"/></xsl:attribute>
    152         <b><font size='-2' color='{$colour-button-text}'><xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_b')"/></font></b>
     147      <tr><td class="brownbutton">
     148      <a class="brownbutton" target="_blank"><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;d=<xsl:value-of select="$docID"/>&amp;c=<xsl:value-of select="$collName"/>&amp;sib=<xsl:value-of select="$sib"/>&amp;dt=<xsl:value-of select="$paramList/param[@name='dt']/@value"/>&amp;ec=<xsl:value-of select="$paramList/param[@name='ec']/@value"/>&amp;et=<xsl:value-of select="$paramList/param[@name='et']/@value"/>&amp;p.a=<xsl:value-of select="$paramList/param[@name='p.a']/@value"/>&amp;p.s=<xsl:value-of select="$paramList/param[@name='p.s']/@value"/>&amp;p.sa=<xsl:value-of select="$paramList/param[@name='p.sa']/@value"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_tip')"/></xsl:attribute>
     149        <font size='-2'><xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_b')"/></font>
    153150      </a></td></tr>
    154151    </table>
     
    264261      </xsl:choose>
    265262    </xsl:for-each>
     263  </xsl:template>
     264 
     265  <!-- match any file nodes -->
     266  <xsl:template match="file">
     267    <xsl:variable name="httpPath" select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>
     268    <xsl:choose>
     269      <xsl:when test="util:isImage(@mimeType)">
     270    <img src="{$httpPath}/{@href}"/>
     271      </xsl:when>
     272      <xsl:otherwise>
     273    <a href="{$httpPath}/{@href}"><xsl:value-of select="@href"/></a>
     274      </xsl:otherwise>
     275    </xsl:choose>
    266276  </xsl:template>
    267277 
  • trunk/gsdl3/web/interfaces/default/transform/help.xsl

    r5129 r8526  
    1212  <xsl:output method="html"/> 
    1313 
    14   <xsl:template name="pageHead">
    15     <head>
    16       <title>
     14  <xsl:template name="pageTitle">
    1715    <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/>: <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_t')"/>
    18       </title>
    19     </head>
    2016  </xsl:template>
     17
     18  <!-- page specific style goes here -->
     19  <xsl:template name="pageStyle"/>
     20
    2121
    2222  <xsl:template match="pageResponse">
  • trunk/gsdl3/web/interfaces/default/transform/home.xsl

    r6456 r8526  
    1212  <xsl:output method="html"/> 
    1313
    14   <xsl:template name="pageHead">
    15     <head>
    16       <title>
    17     <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
    18       </title>
    19     </head>
     14  <xsl:template name="pageTitle">
     15    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
    2016  </xsl:template>
    21  
     17
     18  <!-- page specific style goes here -->
     19  <xsl:template name="pageStyle"/>
     20
    2221  <xsl:template match="pageResponse">
    2322    <xsl:call-template name="greenstonePageBanner"/>
  • trunk/gsdl3/web/interfaces/default/transform/pref.xsl

    r5162 r8526  
    1212  <xsl:output method="html"/> 
    1313 
    14   <xsl:template name="pageHead">
    15     <head>
    16       <title>
    17     <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/>: <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_t')"/>
    18       </title>
    19     </head>
     14  <xsl:template name="pageTitle">
     15    <xsl:value-of select="/page/pageResponse/*/displayItem[@name='name']"/>: <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_t')"/>
    2016  </xsl:template>
     17
     18  <!-- page specific style goes here -->
     19  <xsl:template name="pageStyle"/>
     20
    2121
    2222  <xsl:template match="pageResponse">
  • trunk/gsdl3/web/interfaces/default/transform/process.xsl

    r5381 r8526  
    1212  <xsl:output method="html"/> 
    1313
    14   <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
    15   <xsl:template name="pageHead">
    16     <head>
    17       <title><xsl:value-of select="/page/pageResponse/serviceCluster/metadataList/metadata[@name='Title']"/><xsl:text> </xsl:text></title>
    18     </head>
     14  <xsl:template name="pageTitle">
     15    <xsl:value-of select="/page/pageResponse/serviceCluster/metadataList/metadata[@name='Title']"/>
    1916  </xsl:template>
     17
     18  <!-- page specific style goes here -->
     19  <xsl:template name="pageStyle"/>
     20
    2021
    2122  <xsl:template match="pageResponse">
  • trunk/gsdl3/web/interfaces/default/transform/query.xsl

    r6241 r8526  
    1414  <xsl:output method="html"/>
    1515
    16   <xsl:template name="pageHead">
    17     <head>
    18       <title>
    19     <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
    20       </title>
    21     </head>
     16  <xsl:template name="pageTitle">
     17    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
    2218  </xsl:template>
     19
     20  <!-- page specific style goes here -->
     21  <xsl:template name="pageStyle"/>
     22
    2323
    2424  <xsl:template match="pageResponse">
  • trunk/gsdl3/web/interfaces/default/transform/style.xsl

    r7473 r8526  
    1111  <xsl:param name="library_name"/>
    1212
    13   <!-- some global variables -->
    14   <xsl:variable name="colour-button-text">#345437</xsl:variable>
    15   <xsl:variable name="colour-navbar-link-text">#345437</xsl:variable>
    16   <xsl:variable name="colour-navbar-selected-text">#c6aa69</xsl:variable>
     13  <!-- global style info goes here  -->
     14  <xsl:template name="globalStyle">
     15    <style type="text/css">
     16      <xsl:text disable-output-escaping="yes">
     17    a.brownbutton {text-decoration:none; color:#345437;
     18                    font-weight: bold; vertical-align: middle;  }
     19    a:visited.brownbutton { color:#345437; }
     20    a:hover.brownbutton {color: red;  }
     21    td.brownbutton { background-image: url(interfaces/default/images/brownbutton.gif); height: 20; text-align: center; vertical-align: middle; }
     22    td.brownbuttonoff { background-image: url(interfaces/default/images/greenbar.gif); height: 20; text-align: center; color:#345437;
     23                    font-weight: bold;}
     24    td.navbar { background-image: url(interfaces/default/images/greenbar.gif); height: 20; text-align: center;  font-weight:bold; color:#345437;}
     25    a.navbar, a:visited.navbar { text-decoration: none; font-size: larger; color:#345437;}
     26    a:hover.navbar  {color:red;}
     27    td.navbaroff {background-image: url(interfaces/default/images/greenbar.gif); height: 20; text-align: center;  font-weight:bold; color: #c6aa69; font-size: larger;}
     28    body {background-color: #ffffff; background-image: url(interfaces/default/images/chalk.gif); color:#000066  }
     29    a {color: #006666; }
     30    a:visited {color: #666633}
     31    a:hover {color: #cc9900}
     32      </xsl:text>
     33    </style>
     34  </xsl:template>
     35
    1736
    1837  <!-- the main page layout template is here -->
     
    2039    <html>
    2140      <xsl:call-template name="pageHead"/>
    22       <body xsl:use-attribute-sets="body-style">
     41      <body>
    2342    <table border="0" cellspacing="0" cellpadding="0" width="100%">
    2443      <td valign="top" width="65"><!-- a space for our side bar-->
     
    3857  </xsl:template>
    3958
    40   <xsl:attribute-set name="body-style">
    41     <xsl:attribute name="bgcolor">#ffffff</xsl:attribute>
    42     <xsl:attribute name="text">#000000</xsl:attribute>
    43     <xsl:attribute name="link">#006666</xsl:attribute>
    44     <xsl:attribute name="alink">#cc9900</xsl:attribute>
    45     <xsl:attribute name="vlink">#666633</xsl:attribute>
    46     <xsl:attribute name="background">interfaces/default/images/chalk.gif</xsl:attribute>
    47   </xsl:attribute-set>
    48    
    49   <xsl:attribute-set name="td-brownbutton">
    50     <xsl:attribute name='background'>interfaces/default/images/brownbutton.gif</xsl:attribute>
    51     <xsl:attribute name='height'>20</xsl:attribute>
    52     <xsl:attribute name='align'>center</xsl:attribute>
    53   </xsl:attribute-set>
    54  
    55   <xsl:attribute-set name="td-brownbutton-off">
    56     <xsl:attribute name='background'>interfaces/default/images/greenbar.gif</xsl:attribute>
    57     <xsl:attribute name='height'>20</xsl:attribute>
    58     <xsl:attribute name='align'>center</xsl:attribute>
    59   </xsl:attribute-set>
    60  
    61   <xsl:attribute-set name="td-navbar">
    62     <xsl:attribute name='background'>interfaces/default/images/greenbar.gif</xsl:attribute>
    63     <xsl:attribute name='height'>20</xsl:attribute>
    64     <xsl:attribute name='align'>center</xsl:attribute>
    65   </xsl:attribute-set>
    66  
     59  <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
     60  <xsl:template name="pageHead">
     61    <head>
     62      <title>
     63    <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>
     64      </title>
     65      <xsl:call-template name="globalStyle"/>
     66      <xsl:call-template name="pageStyle"/>
     67    </head>
     68  </xsl:template>
     69
     70
    6771  <xsl:template name="greenstonePageBanner">
    6872    <center><img src="interfaces/default/images/gsdlhead.gif"><xsl:attribute name="alt"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></xsl:attribute></img></center>
     
    108112      <table cellspacing='4'>
    109113        <tr>
    110           <td xsl:use-attribute-sets="td-brownbutton">
    111         <a style="text-decoration:none" href="{$library_name}?a=p&amp;sa=home"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_tip')"/></xsl:attribute>
    112           <b><font size='-1' color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/></font></b>
     114          <td class="brownbutton">
     115        <a class="brownbutton" href="{$library_name}?a=p&amp;sa=home"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_tip')"/></xsl:attribute>
     116          <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/>
    113117        </a>
    114118          </td>
    115119          <xsl:choose>
    116120        <xsl:when test="$pageType='help'">
    117           <td xsl:use-attribute-sets="td-brownbutton-off">
    118             <b><font size='-1' color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></font></b>
     121          <td class="brownbuttonoff">
     122            <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/>
    119123          </td>
    120124        </xsl:when>
    121125        <xsl:otherwise>
    122           <td xsl:use-attribute-sets="td-brownbutton">
    123             <a style="text-decoration:none" href="{$library_name}?a=p&amp;sa=help&amp;c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
    124               <b><font size='-1' color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></font></b>
     126          <td class="brownbutton">
     127            <a class="brownbutton" href="{$library_name}?a=p&amp;sa=help&amp;c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
     128              <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/>
    125129            </a>
    126130          </td>
     
    129133          <xsl:choose>
    130134        <xsl:when test="$pageType='pref'">
    131           <td xsl:use-attribute-sets="td-brownbutton-off">
    132             <b><font size='-1' color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></font></b>
     135          <td class="brownbuttonoff">
     136            <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/>
    133137          </td>
    134138        </xsl:when>
    135139        <xsl:otherwise>
    136           <td xsl:use-attribute-sets="td-brownbutton">
    137             <a style="text-decoration:none" href="{$library_name}?a=p&amp;sa=pref&amp;c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute>
    138               <b><font size='-1' color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></font></b>
     140          <td class="brownbutton">
     141            <a class="brownbutton" href="{$library_name}?a=p&amp;sa=pref&amp;c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute>
     142              <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/>
    139143            </a>
    140144          </td>
     
    149153  </xsl:template>
    150154
     155
    151156  <xsl:template name="navigationBar">
    152157    <xsl:param name="collName"/>
    153158    <xsl:variable name="this-element" select="/page/pageResponse/collection|/page/pageResponse/serviceCluster"/>
    154159    <xsl:variable name="this-service" select="/page/pageResponse/service/@name"/>
    155     <xsl:choose><xsl:when test="$this-element/serviceList/service">
    156     <table border='0' cellspacing='0' width='100%'>
    157       <tr>
    158     <xsl:for-each select="$this-element/serviceList/service">
    159       <xsl:variable name="action"><xsl:choose>
    160           <xsl:when test="@name=$this-service">CURRENT</xsl:when>
    161           <xsl:when test="@type='query'">q</xsl:when>
    162           <xsl:when test="@type='browse'">b</xsl:when>
    163           <xsl:when test="@type='process'">pr</xsl:when>
    164           <xsl:when test="@type='applet'">a</xsl:when>
    165           <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
    166         </xsl:choose></xsl:variable>
    167       <xsl:choose>
    168         <xsl:when test="$action='CURRENT'">
    169           <td  xsl:use-attribute-sets="td-navbar"><b><nobr><font size='+1' color='{$colour-navbar-selected-text}'><xsl:value-of select="displayItem[@name='name']"/></font></nobr></b></td>
    170         </xsl:when>
    171         <xsl:when test="$action !='DO_NOT_DISPLAY'">
    172           <td  xsl:use-attribute-sets="td-navbar"><a style="text-decoration:none" href="{$library_name}?a={$action}&amp;rt=d&amp;s={@name}&amp;c={$collName}"><xsl:if test="displayItem[@name='description']"><xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute></xsl:if><b><nobr><font size='+1' color='{$colour-navbar-link-text}'><xsl:value-of select="displayItem[@name='name']"/></font></nobr></b></a></td>
    173         </xsl:when>
    174       </xsl:choose>
    175     </xsl:for-each>
    176       </tr>
    177     </table>
     160    <xsl:choose>
     161      <xsl:when test="$this-element/serviceList/service">
     162    <table border='0' cellspacing='0' width='100%'>
     163      <tr>
     164        <xsl:for-each select="$this-element/serviceList/service">
     165          <xsl:variable name="action"><xsl:choose>
     166          <xsl:when test="@name=$this-service">CURRENT</xsl:when>
     167          <xsl:when test="@type='query'">q</xsl:when>
     168          <xsl:when test="@type='browse'">b</xsl:when>
     169          <xsl:when test="@type='process'">pr</xsl:when>
     170          <xsl:when test="@type='applet'">a</xsl:when>
     171          <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
     172        </xsl:choose></xsl:variable>
     173          <xsl:choose>
     174        <xsl:when test="$action='CURRENT'">
     175          <td class="navbaroff"><nobr><xsl:value-of select="displayItem[@name='name']"/></nobr></td>
     176        </xsl:when>
     177        <xsl:when test="$action !='DO_NOT_DISPLAY'">
     178          <td class="navbar"><a class="navbar" href="{$library_name}?a={$action}&amp;rt=d&amp;s={@name}&amp;c={$collName}"><xsl:if test="displayItem[@name='description']"><xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute></xsl:if><nobr><xsl:value-of select="displayItem[@name='name']"/></nobr></a></td>
     179        </xsl:when>
     180          </xsl:choose>
     181        </xsl:for-each>
     182      </tr>
     183    </table>
    178184      </xsl:when>
    179185      <xsl:otherwise>
    180     <table border='0' cellspacing='0' width='100%'><tr><td xsl:use-attribute-sets="td-navbar">&#160;</td></tr></table>
     186    <table border='0' cellspacing='0' width='100%'><tr><td class="navbar">&#160;</td></tr></table>
    181187      </xsl:otherwise>
    182188    </xsl:choose>
  • trunk/gsdl3/web/interfaces/default/transform/system.xsl

    r4712 r8526  
    77  <xsl:include href="style.xsl"/>
    88 
    9     <xsl:template name="pageHead">
    10     <head>
    11       <title>
    12     <xsl:value-of select="java:org.greenstone.gsdl3.util.XSLTUtil.getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></title>
    13     </head>
     9    <xsl:template name="pageTitle">
     10    <xsl:value-of select="java:org.greenstone.gsdl3.util.XSLTUtil.getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
    1411  </xsl:template>
     12
     13  <!-- page specific style goes here -->
     14  <xsl:template name="pageStyle"/>
    1515
    1616  <xsl:template match="pageResponse">
Note: See TracChangeset for help on using the changeset viewer.