Changeset 8526 for trunk/gsdl3/web/interfaces
- Timestamp:
- 2004-11-12T14:04:08+13:00 (19 years ago)
- Location:
- trunk/gsdl3/web/interfaces/default/transform
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/web/interfaces/default/transform/about.xsl
r7473 r8526 12 12 <xsl:output method="html"/> 13 13 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']"/> 20 16 </xsl:template> 17 18 <!-- page specific style goes here --> 19 <xsl:template name="pageStyle"/> 21 20 22 21 <xsl:template match="pageResponse"> … … 63 62 </xsl:choose></xsl:variable> 64 63 <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}&rt=d&s={@name}&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}&rt=d&s={@name}&c={$collName}"><xsl:value-of select="displayItem[@name='name']"/></a></td><td><xsl:value-of select="displayItem[@name='description']"/></td></tr> 66 65 </xsl:if> 67 66 </xsl:for-each> … … 71 70 </xsl:template> 72 71 73 74 72 </xsl:stylesheet> 75 73 -
trunk/gsdl3/web/interfaces/default/transform/applet.xsl
r5123 r8526 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/default/transform/classifier.xsl
r5131 r8526 12 12 <xsl:output method="html"/> 13 13 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')"/> 18 16 </xsl:template> 17 18 <!-- page specific style goes here --> 19 <xsl:template name="pageStyle"/> 20 19 21 20 22 <xsl:template match="pageResponse"> -
trunk/gsdl3/web/interfaces/default/transform/document.xsl
r8508 r8526 12 12 <xsl:output method="html"/> 13 13 14 <xsl:template name="page Head">14 <xsl:template name="pageTitle"> 15 15 <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> 20 17 </xsl:template> 21 18 22 19 <!-- this is hard coded for GATE, should somehow do it dynamically--> 23 <xsl:template name=" css-style">20 <xsl:template name="pageStyle"> 24 21 <style type="text/css"> 25 22 <xsl:text disable-output-escaping="yes"> … … 115 112 116 113 <xsl:if test="@docType = 'hierarchy' or @docType = 'paged'"> 117 <tr><td xsl:use-attribute-sets="td-brownbutton">114 <tr><td class="brownbutton"> 118 115 <xsl:choose><xsl:when test="string($ed)='1'"> 119 <a style="text-decoration:none" href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&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&d={$docID}&c={$collName}&sib={$sib}&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> 121 118 </a> 122 119 </xsl:when> 123 120 <xsl:otherwise> 124 <a style="text-decoration:none" href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&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&d={$docID}&c={$collName}&sib={$sib}&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> 126 123 </a> 127 124 </xsl:otherwise> … … 132 129 <!-- expand contents --> 133 130 <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"> 135 132 <xsl:choose><xsl:when test="string($ec)='1'"> 136 <a style="text-decoration:none" href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&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&d={$docID}&c={$collName}&sib={$sib}&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> 138 135 </a> 139 136 </xsl:when> 140 137 <xsl:otherwise> 141 <a style="text-decoration:none" href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&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&d={$docID}&c={$collName}&sib={$sib}&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> 143 140 </a> 144 141 </xsl:otherwise> … … 148 145 <!-- detach page --> 149 146 <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&d=<xsl:value-of select="$docID"/>&c=<xsl:value-of select="$collName"/>&sib=<xsl:value-of select="$sib"/>&dt=<xsl:value-of select="$paramList/param[@name='dt']/@value"/>&ec=<xsl:value-of select="$paramList/param[@name='ec']/@value"/>&et=<xsl:value-of select="$paramList/param[@name='et']/@value"/>&p.a=<xsl:value-of select="$paramList/param[@name='p.a']/@value"/>&p.s=<xsl:value-of select="$paramList/param[@name='p.s']/@value"/>&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&d=<xsl:value-of select="$docID"/>&c=<xsl:value-of select="$collName"/>&sib=<xsl:value-of select="$sib"/>&dt=<xsl:value-of select="$paramList/param[@name='dt']/@value"/>&ec=<xsl:value-of select="$paramList/param[@name='ec']/@value"/>&et=<xsl:value-of select="$paramList/param[@name='et']/@value"/>&p.a=<xsl:value-of select="$paramList/param[@name='p.a']/@value"/>&p.s=<xsl:value-of select="$paramList/param[@name='p.s']/@value"/>&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> 153 150 </a></td></tr> 154 151 </table> … … 264 261 </xsl:choose> 265 262 </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> 266 276 </xsl:template> 267 277 -
trunk/gsdl3/web/interfaces/default/transform/help.xsl
r5129 r8526 12 12 <xsl:output method="html"/> 13 13 14 <xsl:template name="pageHead"> 15 <head> 16 <title> 14 <xsl:template name="pageTitle"> 17 15 <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>20 16 </xsl:template> 17 18 <!-- page specific style goes here --> 19 <xsl:template name="pageStyle"/> 20 21 21 22 22 <xsl:template match="pageResponse"> -
trunk/gsdl3/web/interfaces/default/transform/home.xsl
r6456 r8526 12 12 <xsl:output method="html"/> 13 13 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')"/> 20 16 </xsl:template> 21 17 18 <!-- page specific style goes here --> 19 <xsl:template name="pageStyle"/> 20 22 21 <xsl:template match="pageResponse"> 23 22 <xsl:call-template name="greenstonePageBanner"/> -
trunk/gsdl3/web/interfaces/default/transform/pref.xsl
r5162 r8526 12 12 <xsl:output method="html"/> 13 13 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')"/> 20 16 </xsl:template> 17 18 <!-- page specific style goes here --> 19 <xsl:template name="pageStyle"/> 20 21 21 22 22 <xsl:template match="pageResponse"> -
trunk/gsdl3/web/interfaces/default/transform/process.xsl
r5381 r8526 12 12 <xsl:output method="html"/> 13 13 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']"/> 19 16 </xsl:template> 17 18 <!-- page specific style goes here --> 19 <xsl:template name="pageStyle"/> 20 20 21 21 22 <xsl:template match="pageResponse"> -
trunk/gsdl3/web/interfaces/default/transform/query.xsl
r6241 r8526 14 14 <xsl:output method="html"/> 15 15 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')"/> 22 18 </xsl:template> 19 20 <!-- page specific style goes here --> 21 <xsl:template name="pageStyle"/> 22 23 23 24 24 <xsl:template match="pageResponse"> -
trunk/gsdl3/web/interfaces/default/transform/style.xsl
r7473 r8526 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> 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 17 36 18 37 <!-- the main page layout template is here --> … … 20 39 <html> 21 40 <xsl:call-template name="pageHead"/> 22 <body xsl:use-attribute-sets="body-style">41 <body> 23 42 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 24 43 <td valign="top" width="65"><!-- a space for our side bar--> … … 38 57 </xsl:template> 39 58 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 67 71 <xsl:template name="greenstonePageBanner"> 68 72 <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> … … 108 112 <table cellspacing='4'> 109 113 <tr> 110 <td xsl:use-attribute-sets="td-brownbutton">111 <a style="text-decoration:none" href="{$library_name}?a=p&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&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')"/> 113 117 </a> 114 118 </td> 115 119 <xsl:choose> 116 120 <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')"/> 119 123 </td> 120 124 </xsl:when> 121 125 <xsl:otherwise> 122 <td xsl:use-attribute-sets="td-brownbutton">123 <a style="text-decoration:none" href="{$library_name}?a=p&sa=help&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&sa=help&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')"/> 125 129 </a> 126 130 </td> … … 129 133 <xsl:choose> 130 134 <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')"/> 133 137 </td> 134 138 </xsl:when> 135 139 <xsl:otherwise> 136 <td xsl:use-attribute-sets="td-brownbutton">137 <a style="text-decoration:none" href="{$library_name}?a=p&sa=pref&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&sa=pref&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')"/> 139 143 </a> 140 144 </td> … … 149 153 </xsl:template> 150 154 155 151 156 <xsl:template name="navigationBar"> 152 157 <xsl:param name="collName"/> 153 158 <xsl:variable name="this-element" select="/page/pageResponse/collection|/page/pageResponse/serviceCluster"/> 154 159 <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}&rt=d&s={@name}&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}&rt=d&s={@name}&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> 178 184 </xsl:when> 179 185 <xsl:otherwise> 180 <table border='0' cellspacing='0' width='100%'><tr><td xsl:use-attribute-sets="td-navbar"> </td></tr></table>186 <table border='0' cellspacing='0' width='100%'><tr><td class="navbar"> </td></tr></table> 181 187 </xsl:otherwise> 182 188 </xsl:choose> -
trunk/gsdl3/web/interfaces/default/transform/system.xsl
r4712 r8526 7 7 <xsl:include href="style.xsl"/> 8 8 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')"/> 14 11 </xsl:template> 12 13 <!-- page specific style goes here --> 14 <xsl:template name="pageStyle"/> 15 15 16 16 <xsl:template match="pageResponse">
Note:
See TracChangeset
for help on using the changeset viewer.