- Timestamp:
- 2009-01-06T14:52:16+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/interfaces/gs2/transform/style.xsl
r18314 r18318 14 14 <xsl:template name="globalStyle"> 15 15 <link rel="stylesheet" href="interfaces/gs2/style/classic.css" type="text/css"/> 16 16 <link rel="stylesheet" href="interfaces/gs2/style/classic2.css" type="text/css"/> 17 17 </xsl:template> 18 18 … … 42 42 <xsl:param name="clTop"/> 43 43 <xsl:variable name="this-element" select="/page/pageResponse/collection"/> 44 44 <div id="bannar"> 45 45 <div class="pageinfo"> 46 <xsl:call-template name="top-buttons"> 47 <xsl:with-param name="collName" select="$collName"/> 48 <xsl:with-param name="pageType" select="$pageType"/> 49 </xsl:call-template> 50 <xsl:if test="not(/page/pageRequest/@action='d')"> 51 <xsl:variable name="text"> 46 <xsl:call-template name="top-buttons"> 47 <xsl:with-param name="collName" select="$collName"/> 48 <xsl:with-param name="pageType" select="$pageType"/> 49 </xsl:call-template> 50 <xsl:if test="not(/page/pageRequest/@action='d')"> 51 <xsl:variable name="text"> 52 <xsl:choose> 53 <xsl:when test="$pageType='browse'"> 54 <xsl:value-of select="/page/pageResponse/collection/serviceList/service[@name='ClassifierBrowse']/classifierList/classifier[@name=$clTop]/displayItem[@name='name']"/> 55 </xsl:when> 56 <xsl:otherwise> 57 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, concat($pageType, '_t'))"/> 58 </xsl:otherwise> 59 </xsl:choose> 60 </xsl:variable> 61 <xsl:if test="$text != '__t_'"> 62 <p class="bannertitle"><xsl:value-of select="$text"/></p> 63 </xsl:if> 64 </xsl:if> 65 </div> 66 67 <div class="collectimage"> 68 <a href="{$library_name}?a=p&sa=about&c={$collName}"> 52 69 <xsl:choose> 53 <xsl:when test="$pageType='browse'"> 54 <xsl:value-of select="/page/pageResponse/collection/serviceList/service[@name='ClassifierBrowse']/classifierList/classifier[@name=$clTop]/displayItem[@name='name']"/> 70 <xsl:when test="$this-element/displayItem[@name='icon']"> 71 <img border="0"> 72 <xsl:attribute name="src"> 73 <xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItem[@name='icon']"/> 74 </xsl:attribute> 75 <xsl:attribute name="alt"> 76 <xsl:value-of select="$this-element/displayItem[@name='name']"/> 77 </xsl:attribute> 78 <xsl:attribute name="title"> 79 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'aboutpage')"/> 80 </xsl:attribute> 81 </img> 55 82 </xsl:when> 56 83 <xsl:otherwise> 57 < xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, concat($pageType, '_t'))"/>84 <b><xsl:value-of select="$this-element/displayItem[@name='name']"/></b> 58 85 </xsl:otherwise> 59 86 </xsl:choose> 60 </xsl:variable> 61 <xsl:if test="$text != '__t_'"> 62 <p class="bannertitle"><xsl:value-of select="$text"/></p> 63 </xsl:if> 64 </xsl:if> 65 </div> 66 67 <div class="collectimage"> 68 <a href="{$library_name}?a=p&sa=about&c={$collName}"> 69 <xsl:choose> 70 <xsl:when test="$this-element/displayItem[@name='icon']"> 71 <img border="0"> 72 <xsl:attribute name="src"> 73 <xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItem[@name='icon']"/> 74 </xsl:attribute> 75 <xsl:attribute name="alt"> 76 <xsl:value-of select="$this-element/displayItem[@name='name']"/> 77 </xsl:attribute> 78 <xsl:attribute name="title"> 79 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'aboutpage')"/> 80 </xsl:attribute> 81 </img> 82 </xsl:when> 83 <xsl:otherwise> 84 <b><xsl:value-of select="$this-element/displayItem[@name='name']"/></b> 85 </xsl:otherwise> 86 </xsl:choose> 87 </a> 88 </div> 87 </a> 89 88 </div> 89 </div> 90 90 <div class="bannerextra"></div> 91 91 </xsl:template> … … 95 95 <xsl:param name="pageType"/> 96 96 <p class="bannerlinks"> 97 98 99 100 <!--<xsl:choose>101 102 103 97 <a class="navlink" 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> 98 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/> 99 </a> 100 <!--<xsl:choose> 101 <xsl:when test="$pageType='help'"> 102 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/> 103 </xsl:when> 104 104 <xsl:otherwise> 105 105 <a class="navlink" 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> 106 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/>107 108 106 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/> 107 </a> 108 </xsl:otherwise> 109 109 </xsl:choose> --> 110 111 112 113 114 115 116 117 118 119 110 <xsl:choose> 111 <xsl:when test="$pageType='pref'"> 112 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/> 113 </xsl:when> 114 <xsl:otherwise> 115 <a class="navlink" 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> 116 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/> 117 </a> 118 </xsl:otherwise> 119 </xsl:choose> 120 120 </p> 121 121 </xsl:template> … … 133 133 134 134 <div class="navbar"> 135 136 137 <xsl:when test="not($dir='rtl')">138 <xsl:if test="$this-element/serviceList/service[@type='query']">139 <xsl:call-template name="navbar-search"><xsl:with-param name="collName" select="$collName"/></xsl:call-template>140 </xsl:if>141 </xsl:when>142 <xsl:otherwise>143 <xsl:if test="$this-element/serviceList/service[@name='PhindApplet']">144 <xsl:call-template name="navbar-phind"><xsl:with-param name="collName" select="$collName"/></xsl:call-template>145 </xsl:if>146 </xsl:otherwise>135 <p class="navbar"> 136 <xsl:choose> 137 <xsl:when test="not($dir='rtl')"> 138 <xsl:if test="$this-element/serviceList/service[@type='query']"> 139 <xsl:call-template name="navbar-search"><xsl:with-param name="collName" select="$collName"/></xsl:call-template> 140 </xsl:if> 141 </xsl:when> 142 <xsl:otherwise> 143 <xsl:if test="$this-element/serviceList/service[@name='PhindApplet']"> 144 <xsl:call-template name="navbar-phind"><xsl:with-param name="collName" select="$collName"/></xsl:call-template> 145 </xsl:if> 146 </xsl:otherwise> 147 147 </xsl:choose> 148 148 … … 154 154 </xsl:apply-templates> 155 155 </xsl:for-each> 156 156 157 157 <xsl:choose> 158 <xsl:when test="$dir='rtl'">159 <xsl:if test="$this-element/serviceList/service[@type='query']">160 <xsl:call-template name="navbar-search"><xsl:with-param name="collName" select="$collName"/></xsl:call-template>161 </xsl:if>162 </xsl:when>163 <xsl:otherwise>164 <xsl:if test="$this-element/serviceList/service[@name='PhindApplet']">165 <xsl:call-template name="navbar-phind"><xsl:with-param name="collName" select="$collName"/></xsl:call-template>166 </xsl:if>167 </xsl:otherwise>158 <xsl:when test="$dir='rtl'"> 159 <xsl:if test="$this-element/serviceList/service[@type='query']"> 160 <xsl:call-template name="navbar-search"><xsl:with-param name="collName" select="$collName"/></xsl:call-template> 161 </xsl:if> 162 </xsl:when> 163 <xsl:otherwise> 164 <xsl:if test="$this-element/serviceList/service[@name='PhindApplet']"> 165 <xsl:call-template name="navbar-phind"><xsl:with-param name="collName" select="$collName"/></xsl:call-template> 166 </xsl:if> 167 </xsl:otherwise> 168 168 </xsl:choose> 169 170 169 </p> 170 </div> 171 171 </xsl:template> 172 172 … … 175 175 <xsl:choose> 176 176 <xsl:when test="/page/pageRequest/@action='q'"> 177 177 <span class="narspace">search</span> 178 178 </xsl:when> 179 179 <xsl:otherwise> … … 195 195 <xsl:choose> 196 196 <xsl:when test="/page/pageRequest/paramList/param[@name='s']/@value='PhindApplet'"> 197 198 </xsl:when> 199 <xsl:otherwise> 200 197 <span class="narspace">phrases</span> 198 </xsl:when> 199 <xsl:otherwise> 200 <a class="navlink" 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>phrases</a> 201 201 </xsl:otherwise> 202 202 </xsl:choose> … … 208 208 <xsl:choose> 209 209 <xsl:when test="/page/pageRequest/@action='b' and $clTop=@name"> 210 210 <span class="narspace"><xsl:value-of select="displayItem[@name='name']"/></span> 211 211 </xsl:when> 212 212 <xsl:otherwise> … … 218 218 <xsl:template name="dividerBar"> 219 219 <xsl:param name='text'/> 220 220 <xsl:choose> 221 221 <xsl:when test="$text"> 222 223 </xsl:when> 224 <xsl:otherwise> 225 222 <div class="divbar"><p class="navbar"><xsl:value-of select="$text"/></p></div> 223 </xsl:when> 224 <xsl:otherwise> 225 <div class="divbar"><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text></div> 226 226 </xsl:otherwise> 227 227 </xsl:choose> … … 229 229 230 230 <xsl:template name="nzdlPageBanner"> 231 232 231 <div><img src="interfaces/nzdl/images/nzdl2gr.gif" width="457" height="181" ><xsl:attribute name="alt"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'nzdl')"/></xsl:attribute></img></div> 232 <!-- end of page banner --> 233 233 </xsl:template> 234 234 … … 343 343 alt='{$alt}' title='{$title}'/> 344 344 </xsl:template> 345 345 346 346 <xsl:template name="icondoc"> 347 347 <xsl:param name="alt">Word</xsl:param>
Note:
See TracChangeset
for help on using the changeset viewer.