Changeset 8534 for trunk/gsdl3/web
- Timestamp:
- 2004-11-12T16:09:52+13:00 (19 years ago)
- Location:
- trunk/gsdl3/web/interfaces/nzdl/transform
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/nzdl/transform/applet.xsl
r5411 r8534 11 11 <xsl:output method="html"/> 12 12 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"/> 19 15 </xsl:template> 16 17 <!-- page specific style goes here --> 18 <xsl:template name="pageStyle"/> 20 19 21 20 <xsl:template match="pageResponse"> -
trunk/gsdl3/web/interfaces/nzdl/transform/gsdl.xsl
r6685 r8534 14 14 <xsl:output method="html"/> 15 15 16 <xsl:template name="pageHead"> 17 <head> 18 <title><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'nzdl')"/></title> 19 </head> 20 <xsl:call-template name="headScript"/> 16 <xsl:template name="pageTitle"> 17 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'nzdl')"/> 21 18 </xsl:template> 19 20 <!-- page specific style goes here --> 21 <xsl:template name="pageStyle"/> 22 22 23 23 <xsl:template match="pageResponse"> -
trunk/gsdl3/web/interfaces/nzdl/transform/home.xsl
r6683 r8534 13 13 <xsl:output method="html"/> 14 14 15 <xsl:template name="pageHead"> 16 <head> 17 <title> 18 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'nzdl')"/> 19 </title> 20 <xsl:call-template name="headScript"/> 21 </head> 22 </xsl:template> 15 <xsl:template name="pageTitle"> 16 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'nzdl')"/> 17 </xsl:template> 18 19 <!-- page specific style goes here --> 20 <xsl:template name="pageStyle"/> 23 21 24 22 <xsl:template match="pageResponse"> -
trunk/gsdl3/web/interfaces/nzdl/transform/pref.xsl
r6686 r8534 13 13 <xsl:output method="html"/> 14 14 15 <xsl:template name="pageHead"> 16 <head> 17 <title><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref')"/></title> 18 </head> 19 <xsl:call-template name="headScript"/> 20 </xsl:template> 15 <xsl:template name="pageTitle"> 16 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref')"/> </xsl:template> 17 18 <!-- page specific style goes here --> 19 <xsl:template name="pageStyle"/> 21 20 22 21 <xsl:template match="pageResponse"> -
trunk/gsdl3/web/interfaces/nzdl/transform/style.xsl
r6688 r8534 11 11 <xsl:param name="library_name"/> 12 12 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>17 18 13 <!-- the main page layout template is here --> 19 14 <xsl:template match="page"> 20 15 <html> 21 16 <xsl:call-template name="pageHead"/> 22 <body xsl:use-attribute-sets="body-style">17 <body> 23 18 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 24 19 <td valign="top" width="65"> … … 40 35 </xsl:template> 41 36 42 <!-- any global java script should go in here --> 43 <xsl:template name="headScript"> 44 </xsl:template> 45 46 <!-- the old javascript for rollover images --> 47 <!-- 48 <xsl:template name="headScript"> 49 <script> 50 <xsl:text disable-output-escaping="yes"> 51 <! 52 var loaded = new Array(); 53 function gbutton (image, onimage) { 54 if (image && image.src && (image.out == null || typeof(image.out) == typeof(void(0)))) { 55 s = image.src; 56 image.out = new Image(); 57 image.out.src = s; 58 image.over = new Image(); 59 image.over.src = onimage; 60 loaded[image.name] = image; 61 } 62 } 63 64 function roll (imagename, over) { 65 if (document.images) { 66 if (over) i = "over"; 67 else i = "out"; 68 image = loaded[imagename]; 69 if (image) image.src = eval("image."+i+".src"); 70 } 71 } 72 //> 73 </xsl:text> 74 75 </script> 76 </xsl:template> 77 --> 78 37 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 38 <xsl:template name="pageHead"> 39 <head> 40 <title> 41 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 42 </title> 43 <xsl:call-template name="globalStyle"/> 44 <xsl:call-template name="pageStyle"/> 45 </head> 46 </xsl:template> 47 48 <!-- any global style stuff should go in here --> 49 <xsl:template name="globalStyle"> 50 <link rel="stylesheet" href="interfaces/default/style/core.css" type="text/css"/> 51 </xsl:template> 52 53 <xsl:template name="greenstonePageBanner"> 54 <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> 55 <xsl:call-template name="dividerBar"/> 56 </xsl:template> 57 79 58 <xsl:template name="genericPageBanner"> 80 59 <xsl:param name='text'/> … … 85 64 <td align="right"> 86 65 <table> 87 <tr><td xsl:use-attribute-sets="td-brownbutton">88 <a style="text-decoration:none" href="{$library_name}?a=p&sa=home">89 < b><font color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/></font></b>66 <tr><td class="gsbutton"> 67 <a class="gsbutton" href="{$library_name}?a=p&sa=home"> 68 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/> 90 69 </a> 91 70 </td></tr></table> … … 129 108 <table cellspacing='4'> 130 109 <tr> 131 <td xsl:use-attribute-sets="td-brownbutton">132 <a style="text-decoration:none" href="{$library_name}?a=p&sa=home">133 < b><small><font color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/></font></small></b>110 <td class="gsbutton"> 111 <a class="gsbutton" href="{$library_name}?a=p&sa=home"> 112 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/> 134 113 </a> 135 114 </td> 136 115 <!-- <xsl:choose> 137 116 <xsl:when test="$pageType='help'"> 138 <td xsl:use-attribute-sets="td-brownbutton-off">139 < b><small><font color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></font></small></b>117 <td class="gsbuttonoff"> 118 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/> 140 119 </td> 141 120 </xsl:when> 142 121 <xsl:otherwise> 143 <td xsl:use-attribute-sets="td-brownbutton">144 <a style="text-decoration:none" href="{$library_name}?a=p&sa=help&c={$collName}">145 < b><small><font color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></font></small></b>122 <td class="gsbutton"> 123 <a class="gsbutton" href="{$library_name}?a=p&sa=help&c={$collName}"> 124 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/> 146 125 </a> 147 126 </td> … … 150 129 <xsl:choose> 151 130 <xsl:when test="$pageType='pref'"> 152 <td xsl:use-attribute-sets="td-brownbutton-off">153 < b><small><font color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></font></small></b>131 <td class="gsbuttonoff"> 132 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/> 154 133 </td> 155 134 </xsl:when> 156 135 <xsl:otherwise> 157 <td xsl:use-attribute-sets="td-brownbutton">158 <a title="xxpref" style="text-decoration:none" href="{$library_name}?a=p&sa=pref&c={$collName}">159 < b><small><font color='{$colour-button-text}'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></font></small></b>136 <td class="gsbutton"> 137 <a class="gsbutton" title="xxpref" href="{$library_name}?a=p&sa=pref&c={$collName}"> 138 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/> 160 139 </a> 161 140 </td> … … 194 173 <tr> 195 174 <xsl:if test="$this-element/serviceList/service[@type='query']"> 196 <td xsl:use-attribute-sets="td-navbar">197 175 <xsl:call-template name="navbar-search"><xsl:with-param name="collName" select="$collName"/></xsl:call-template> 198 </td>199 176 </xsl:if> 200 177 201 178 <xsl:for-each select="$classifiers/classifier"> 202 <td xsl:use-attribute-sets="td-navbar"> 203 <xsl:apply-templates select="." mode="navbar"> 204 <xsl:with-param name="collName" select="$collName"/> 205 <xsl:with-param name="clTop" select="$clTop"/> 206 </xsl:apply-templates> 207 </td> 179 <xsl:apply-templates select="." mode="navbar"> 180 <xsl:with-param name="collName" select="$collName"/> 181 <xsl:with-param name="clTop" select="$clTop"/> 182 </xsl:apply-templates> 208 183 </xsl:for-each> 209 184 210 185 <xsl:if test="$this-element/serviceList/service[@name='PhindApplet']"> 211 <td xsl:use-attribute-sets="td-navbar"> 212 <xsl:call-template name="navbar-phind"><xsl:with-param name="collName" select="$collName"/></xsl:call-template> 213 </td> 186 <xsl:call-template name="navbar-phind"><xsl:with-param name="collName" select="$collName"/></xsl:call-template> 214 187 </xsl:if> 215 188 </tr> … … 220 193 <xsl:param name="collName"/> 221 194 <xsl:choose> 222 <xsl:when test="/page/pageRequest/@action='q'"><b><nobr><font size='+1' color='{$colour-navbar-selected-text}'>search</font></nobr></b></xsl:when> 195 <xsl:when test="/page/pageRequest/@action='q'"> 196 <td class="navbaroff"><nobr>search</nobr></td> 197 </xsl:when> 223 198 <xsl:otherwise> 224 199 <xsl:variable name="service"> … … 231 206 </xsl:variable> 232 207 233 < a style="text-decoration:none" href="{$library_name}?a=q&rt=d&s={$service}&c={$collName}"><xsl:attribute name='title'><xsl:value-of select="/page/pageResponse/collection/service[@name=$service]/displayItem[@name='description']"/></xsl:attribute><b><nobr><font size='+1' color='{$colour-navbar-link-text}'>search</font></nobr></b></a>208 <td class="navbar"><a class="navbar" href="{$library_name}?a=q&rt=d&s={$service}&c={$collName}"><xsl:attribute name='title'><xsl:value-of select="/page/pageResponse/collection/service[@name=$service]/displayItem[@name='description']"/></xsl:attribute><nobr>search</nobr></a></td> 234 209 </xsl:otherwise> 235 210 </xsl:choose> … … 239 214 <xsl:param name="collName"/> 240 215 <xsl:choose> 241 <xsl:when test="/page/pageRequest/paramList/param[@name='s']/@value='PhindApplet'"><b><nobr><font size='+1' color='{$colour-navbar-selected-text}'>phrases</font></nobr></b></xsl:when> 216 <xsl:when test="/page/pageRequest/paramList/param[@name='s']/@value='PhindApplet'"> 217 <td class="navbaroff"><nobr>phrases</nobr></td> 218 </xsl:when> 242 219 <xsl:otherwise> 243 < a style="text-decoration:none" href="{$library_name}?a=a&rt=d&s=PhindApplet&c={$collName}"><xsl:if test="/page/pageResponse/collection/service[@name='PhindApplet']/displayItem[@name='description']"><xsl:attribute name='title'><xsl:value-of select="/page/pageResponse/collection/service[@name='PhindApplet']/displayItem[@name='description']"/></xsl:attribute></xsl:if><b><nobr><font size='+1' color='{$colour-navbar-link-text}'>phrases</font></nobr></b></a>220 <td class="navbar"><a class="navbar" href="{$library_name}?a=a&rt=d&s=PhindApplet&c={$collName}"><xsl:if test="/page/pageResponse/collection/service[@name='PhindApplet']/displayItem[@name='description']"><xsl:attribute name='title'><xsl:value-of select="/page/pageResponse/collection/service[@name='PhindApplet']/displayItem[@name='description']"/></xsl:attribute></xsl:if><nobr>phrases</nobr></a></td> 244 221 </xsl:otherwise> 245 222 </xsl:choose> … … 251 228 <xsl:choose> 252 229 <xsl:when test="/page/pageRequest/@action='b' and $clTop=@name"> 253 <b><nobr><font size='+1' color='{$colour-navbar-selected-text}'><xsl:value-of select="displayItem[@name='name']"/></font></nobr></b></xsl:when> 230 <td class="navbaroff"><nobr><xsl:value-of select="displayItem[@name='name']"/></nobr></td> 231 </xsl:when> 254 232 <xsl:otherwise> 255 < a style="text-decoration:none" href="{$library_name}?a=b&rt=r&s=ClassifierBrowse&c={$collName}&cl={@name}"><xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute><b><nobr><font size='+1' color='{$colour-navbar-link-text}'><xsl:value-of select="displayItem[@name='name']"/></font></nobr></b></a>233 <td class="navbar"><a class="navbar" href="{$library_name}?a=b&rt=r&s=ClassifierBrowse&c={$collName}&cl={@name}"><xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute><nobr><xsl:value-of select="displayItem[@name='name']"/></nobr></a></td> 256 234 </xsl:otherwise> 257 235 </xsl:choose> … … 264 242 </xsl:template> 265 243 266 <xsl:attribute-set name="body-style">267 <xsl:attribute name="bgcolor">#ffffff</xsl:attribute>268 <xsl:attribute name="text">#000000</xsl:attribute>269 <xsl:attribute name="link">#006666</xsl:attribute>270 <xsl:attribute name="alink">#cc9900</xsl:attribute>271 <xsl:attribute name="vlink">#666633</xsl:attribute>272 <xsl:attribute name="background">interfaces/default/images/chalk.gif</xsl:attribute>273 </xsl:attribute-set>274 275 <xsl:attribute-set name="td-brownbutton">276 <xsl:attribute name='background'>interfaces/default/images/brownbutton.gif</xsl:attribute>277 <xsl:attribute name='height'>20</xsl:attribute>278 <xsl:attribute name='align'>center</xsl:attribute>279 <xsl:attribute name='valign'>bottom</xsl:attribute>280 </xsl:attribute-set>281 282 <xsl:attribute-set name="td-brownbutton-off">283 <xsl:attribute name='background'>interfaces/default/images/greenbar.gif</xsl:attribute>284 <xsl:attribute name='height'>20</xsl:attribute>285 <xsl:attribute name='align'>center</xsl:attribute>286 <xsl:attribute name='valign'>bottom</xsl:attribute>287 </xsl:attribute-set>288 289 <xsl:attribute-set name="td-navbar">290 <xsl:attribute name='background'>interfaces/default/images/greenbar.gif</xsl:attribute>291 <xsl:attribute name='height'>20</xsl:attribute>292 <xsl:attribute name='align'>center</xsl:attribute>293 </xsl:attribute-set>294 295 244 <xsl:template name="nzdlPageBanner"> 296 245 <center>
Note:
See TracChangeset
for help on using the changeset viewer.