- Timestamp:
- 2009-01-06T14:52:16+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/interfaces/gs2/transform/document.xsl
r18315 r18318 13 13 <xsl:output method="html"/> 14 14 15 16 17 15 <!-- the main page layout template is here --> 18 16 <!-- override the one in style so we can display the doc over the whole page and get rid of the green bar down the side --> 19 17 <xsl:template match="page" priority='2'> 20 18 <html> 21 <head>22 23 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->24 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>25 26 27 28 </head>19 <head> 20 <title> 21 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 22 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 23 </title> 24 <xsl:call-template name="globalStyle"/> 25 <xsl:call-template name="pageStyle"/> 26 </head> 29 27 <body> 30 28 <xsl:attribute name="dir"><xsl:call-template name="direction"/></xsl:attribute> 31 29 <div id="page"> 32 33 30 <xsl:apply-templates select="pageResponse"/> 31 <xsl:call-template name="greenstoneFooter"/> 34 32 </div> 35 33 </body> 36 34 </html> 37 35 </xsl:template> … … 64 62 </xsl:call-template> 65 63 <div class="document"> 66 <!-- display the document --> 67 <xsl:apply-templates select="document"> 68 <xsl:with-param name="collName" select="$collName"/> 69 </xsl:apply-templates> 70 </div> 71 </xsl:template> 64 <!-- display the document --> 65 <xsl:apply-templates select="document"> 66 <xsl:with-param name="collName" select="$collName"/> 67 </xsl:apply-templates> 68 </div> 69 </xsl:template> 70 71 <xsl:template match="document"> 72 <xsl:param name="collName"/> 73 74 <xsl:variable name="external"><xsl:value-of select="/page/pageResponse/document/@external"/></xsl:variable> 75 <xsl:choose><xsl:when test="$external != ''"> 76 <xsl:call-template name="externalPage"> 77 <xsl:with-param name="external" select="$external"/> 78 </xsl:call-template> 79 </xsl:when> 80 <xsl:otherwise> 72 81 73 <xsl:template match="document">74 <xsl:param name="collName"/>75 76 <xsl:variable name="external"><xsl:value-of select="/page/pageResponse/document/@external"/></xsl:variable>77 <xsl:choose><xsl:when test="$external != ''">78 <xsl:call-template name="externalPage">79 <xsl:with-param name="external" select="$external"/>80 </xsl:call-template>81 </xsl:when>82 <xsl:otherwise>83 84 82 <xsl:call-template name="documentHeading"> 85 86 87 88 89 90 91 92 93 94 95 96 97 83 <xsl:with-param name="collName" select="$collName"/> 84 </xsl:call-template> 85 86 <xsl:call-template name="documentArrows"> 87 <xsl:with-param name="collName" select="$collName"/> 88 </xsl:call-template> 89 <xsl:call-template name="documentContent"> 90 <xsl:with-param name="collName" select="$collName"/> 91 </xsl:call-template> 92 <xsl:call-template name="documentArrows"> 93 <xsl:with-param name="collName" select="$collName"/> 94 </xsl:call-template> 95 <br/> 98 96 </xsl:otherwise></xsl:choose> 99 97 </xsl:template> … … 107 105 108 106 <div class="documentarrows"> 109 <xsl:if test="not(string($ed)='1')">110 111 112 113 114 115 116 117 118 119 120 </xsl:if>107 <xsl:if test="not(string($ed)='1')"> 108 <xsl:call-template name="documentArrow"> 109 <xsl:with-param name="collName" select="$collName"/> 110 <xsl:with-param name="direction" select="$firstDir"/> 111 <xsl:with-param name="pageDir" select="$dir"/> 112 </xsl:call-template> 113 <xsl:call-template name="documentArrow"> 114 <xsl:with-param name="collName" select="$collName"/> 115 <xsl:with-param name="direction" select="$secondDir"/> 116 <xsl:with-param name="pageDir" select="$dir"/> 117 </xsl:call-template> 118 </xsl:if> 121 119 </div> 122 120 </xsl:template> … … 126 124 <xsl:param name="direction"/> 127 125 <xsl:param name="pageDir"/> 128 126 129 127 <xsl:variable name="disp"> 130 131 132 133 134 128 <xsl:choose> 129 <xsl:when test="$direction ='back' and nodeStructureInfo/info[@name='siblingPosition']/@value = -1">n</xsl:when> 130 <xsl:when test="$direction ='forward' and nodeStructureInfo/info[@name='siblingPosition']/@value = nodeStructureInfo/info[@name='numSiblings']/@value">n</xsl:when> 131 <xsl:otherwise>y</xsl:otherwise> 132 </xsl:choose> 135 133 </xsl:variable> 136 134 137 135 <xsl:variable name="request-params" select="/page/pageRequest/paramList"/> 138 136 <xsl:if test='$request-params/param[@name="dt"]/@value != "simple" and $disp = "y"'> 139 <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&c=<xsl:value-of select="$collName"/>&d=<xsl:value-of select="@selectedNode"/><xsl:choose><xsl:when test="$direction='back'">.pp</xsl:when><xsl:otherwise>.np</xsl:otherwise></xsl:choose>&sib=1&p.s=<xsl:value-of select='$request-params/param[@name="p.s"]/@value'/>&p.sa=<xsl:value-of select='$request-params/param[@name="p.sa"]/@value'/>&p.a=<xsl:value-of select='$request-params/param[@name="p.a"]/@value'/></xsl:attribute><xsl:choose>140 137 <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&c=<xsl:value-of select="$collName"/>&d=<xsl:value-of select="@selectedNode"/><xsl:choose><xsl:when test="$direction='back'">.pp</xsl:when><xsl:otherwise>.np</xsl:otherwise></xsl:choose>&sib=1&p.s=<xsl:value-of select='$request-params/param[@name="p.s"]/@value'/>&p.sa=<xsl:value-of select='$request-params/param[@name="p.sa"]/@value'/>&p.a=<xsl:value-of select='$request-params/param[@name="p.a"]/@value'/></xsl:attribute><xsl:choose> 138 <xsl:when test="$direction='back'"><img class="lessarrow{$pageDir}" src="interfaces/default/images/less.gif" /></xsl:when><xsl:otherwise><img class="morearrow{$pageDir}" src="interfaces/default/images/more.gif" /></xsl:otherwise></xsl:choose></a> 141 139 </xsl:if> 142 140 </xsl:template> 143 141 144 142 145 143 <xsl:template name="documentHeading"> … … 152 150 <xsl:variable name="p.c"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='p.c']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.c']/@value"/></xsl:when><xsl:otherwise><xsl:value-of select="$collName"/></xsl:otherwise></xsl:choose></xsl:variable> 153 151 <div id="documentheading"> 154 155 156 157 </div>158 159 <div id="docheadwrapper">160 <div id="documentinfo">152 <a href="{$library_name}?a={$p.a}&sa={$p.sa}&s={$p.s}&c={$p.c}&rt=rd"><xsl:call-template name="openbookimg"><xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'close_book')"/></xsl:with-param> 153 </xsl:call-template></a> 154 <xsl:choose><xsl:when test="@docType='simple'"><xsl:value-of select="metadataList/metadata[@name='Title']" disable-output-escaping="yes"/></xsl:when><xsl:otherwise><xsl:value-of select="documentNode/metadataList/metadata[@name='Title']" disable-output-escaping="yes"/></xsl:otherwise></xsl:choose> 155 </div> 156 157 <div id="docheadwrapper"> 158 <div id="documentinfo"> 161 159 <xsl:if test="string($doCoverImage) != 'false' and (@docType='paged' or @docType='hierarchy')"> 162 160 <div id="headingimage"> 163 161 <xsl:call-template name="coverImage"/> 164 162 </div> 165 163 </xsl:if> 166 164 167 165 <ul id="docbuttons" > 168 169 <xsl:with-param name="collName" select="$collName"/>170 171 172 </div>173 166 <xsl:call-template name="documentButtons"> 167 <xsl:with-param name="collName" select="$collName"/> 168 </xsl:call-template> 169 </ul> 170 </div> 171 174 172 <!--<div><xsl:call-template name="enrichServices"> 173 <xsl:with-param name="collName" select="$collName"/> 174 </xsl:call-template></div>--> 175 176 <xsl:if test="string($doTOC) != 'false'"> 177 <div id="toc"> 178 <xsl:call-template name="TOC"> 175 179 <xsl:with-param name="collName" select="$collName"/> 176 </xsl:call-template></div>--> 177 178 <xsl:if test="string($doTOC) != 'false'"> 179 <div id="toc"> 180 <xsl:call-template name="TOC"> 181 <xsl:with-param name="collName" select="$collName"/> 182 </xsl:call-template> 183 </div> 184 </xsl:if> 180 </xsl:call-template> 181 </div> 182 </xsl:if> 185 183 </div> 186 184 </xsl:template> 187 185 188 186 <xsl:template name="coverImage"> … … 202 200 <xsl:variable name="p.a" select="/page/pageRequest/paramList/param[@name='p.a']/@value"/> 203 201 <xsl:variable name="p.c"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='p.c']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.c']/@value"/></xsl:when><xsl:otherwise><xsl:value-of select="$collName"/></xsl:otherwise></xsl:choose></xsl:variable> 204 205 <!-- expand document --> 206 <!-- this doesn't work with MG so comment it out for now --> 207 <!--<xsl:if test="@docType = 'hierarchy' or @docType = 'paged'">--> 208 <!-- shouldn't appear for paged document --> 209 <xsl:if test="@docType = 'hierarchy'"> 202 203 <!-- expand document --> 204 <xsl:if test="@docType = 'hierarchy'"> 210 205 <div class="button"> 211 206 <span class="button"> 212 207 <xsl:choose><xsl:when test="string($ed)='1'"> 213 208 <a href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&ed=0&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_tip')"/></xsl:attribute> 214 209 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_doc_b')"/> 215 210 </a> 216 211 </xsl:when> 217 212 <xsl:otherwise> 218 219 213 <a href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&ed=1&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_tip')"/></xsl:attribute> 214 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.expand_doc_b')"/> 220 215 </a> 221 216 </xsl:otherwise> 222 217 </xsl:choose> 223 224 225 226 227 228 218 </span> 219 </div> 220 </xsl:if> 221 222 <!-- expand contents --> 223 <xsl:if test="@docType = 'hierarchy' and string(/page/pageResponse/format/gsf:option[@name='documentTOC']/@value) != 'false'"> 229 224 <div class="button"> 230 225 <span class="button"> 231 226 <xsl:choose><xsl:when test="string($ec)='1'"> 232 227 <a href="{$library_name}?a=d&d={$docID}&c={$collName}&sib={$sib}&ec=0&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_tip')"/></xsl:attribute> 233 228 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.contract_contents_b')"/> 234 229 </a> 235 230 </xsl:when> … … 240 235 </xsl:otherwise> 241 236 </xsl:choose> 242 </span> 243 </div> 244 </xsl:if> 245 <!-- detach page --> 246 <xsl:variable name="paramList" select="/page/pageRequest/paramList"/> 247 <div class="button"> 248 <span class="button"> 249 <a 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> 250 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_b')"/> 251 </a> 252 </span> 237 </span> 253 238 </div> 254 </xsl:template> 239 </xsl:if> 240 <!-- detach page --> 241 <xsl:variable name="paramList" select="/page/pageRequest/paramList"/> 242 <div class="button"> 243 <span class="button"> 244 <a 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> 245 <xsl:value-of disable-output-escaping='yes' select="util:getInterfaceText($interface_name, /page/@lang, 'doc.detach_page_b')"/> 246 </a> 247 </span> 248 </div> 249 </xsl:template> 255 250 256 251 <xsl:template name="TOC"> … … 269 264 </xsl:choose> 270 265 </xsl:template> 271 266 272 267 <xsl:template name="hierarchicalContents"> 273 268 <xsl:param name="collName"/> … … 284 279 285 280 <xsl:if test="documentNode[@nodeID]"> 286 281 <ul id="tocnodes"> 287 282 <li> 288 289 290 291 283 <xsl:choose><xsl:when test="string($oc)='0'"> 284 <a href="{$library_name}?a=d&c={$collName}&d={$d}&sib={$sib}&oc=1&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><xsl:call-template name="closedfolderimg"><xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.open_toc')"/></xsl:with-param></xsl:call-template></a> 285 </xsl:when> 286 <xsl:otherwise><a href="{$library_name}?a=d&c={$collName}&d={$d}&sib={$sib}&oc=0&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><xsl:call-template name="openfolderimg"><xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.close_toc')"/></xsl:with-param></xsl:call-template></a></xsl:otherwise></xsl:choose> 292 287 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.table_of_contents')"/> 293 <xsl:if test="string($oc)!='0'">294 <ul class="tocnode">295 296 288 <xsl:if test="string($oc)!='0'"> 289 <ul class="tocnode"> 290 <xsl:for-each select="documentNode/documentNode[@nodeID]"> 291 <xsl:apply-templates select='.'> 297 292 <xsl:with-param name="collName" select="$collName"/><xsl:with-param name="ec" select="$ec"/> 298 293 … … 304 299 305 300 </xsl:apply-templates> 306 307 301 </xsl:for-each> 302 </ul> 308 303 </xsl:if> 309 304 </li> 310 305 </ul> 311 306 </xsl:if> … … 323 318 <xsl:param name="p.c"/> 324 319 <!-- Display the appropriate image, depending on the node type --> 325 326 <li> 327 <!-- 328 <a><xsl:attribute name="href"><xsl:value-of select='$library_name'/>?a=d&c=<xsl:value-of select='$collName'/>&d=<xsl:value-of select='@nodeID'/><xsl:if test="documentNode">.pr</xsl:if><xsl:if test="@nodeType='leaf'">&sib=1</xsl:if><xsl:if test="string($ec) = '1'">&ec=1</xsl:if></xsl:attribute> 329 --> 320 321 <li> 322 <!-- 323 <a><xsl:attribute name="href"><xsl:value-of select='$library_name'/>?a=d&c=<xsl:value-of select='$collName'/>&d=<xsl:value-of select='@nodeID'/><xsl:if test="documentNode">.pr</xsl:if><xsl:if test="@nodeType='leaf'">&sib=1</xsl:if><xsl:if test="string($ec) = '1'">&ec=1</xsl:if></xsl:attribute> 324 --> 325 326 <a><xsl:attribute name="href"><xsl:value-of select='$library_name'/>?a=d&c=<xsl:value-of select='$collName'/>&d=<xsl:value-of select='@nodeID'/><xsl:if test="documentNode">.pr</xsl:if>&sib=1<xsl:if test="string($ec) = '1'">&ec=1</xsl:if>&p.a=<xsl:value-of select="$p.a"/>&p.sa=<xsl:value-of select="$p.sa"/>&p.s=<xsl:value-of select="$p.s"/>&p.c=<xsl:value-of select="$p.c"/></xsl:attribute> 330 327 331 <a><xsl:attribute name="href"><xsl:value-of select='$library_name'/>?a=d&c=<xsl:value-of select='$collName'/>&d=<xsl:value-of select='@nodeID'/><xsl:if test="documentNode">.pr</xsl:if>&sib=1<xsl:if test="string($ec) = '1'">&ec=1</xsl:if>&p.a=<xsl:value-of select="$p.a"/>&p.sa=<xsl:value-of select="$p.sa"/>&p.s=<xsl:value-of select="$p.s"/>&p.c=<xsl:value-of select="$p.c"/></xsl:attribute> 332 333 <xsl:apply-templates select="." mode="displayNodeIcon"/> 334 </a> 328 <xsl:apply-templates select="." mode="displayNodeIcon"/> 329 </a> 335 330 336 331 <!-- Display associated title, bolded if the node has content --> 337 338 339 340 341 342 343 344 345 346 <!-- Apply recursively to the children of this node -->347 <xsl:if test="documentNode[@nodeID]">348 349 350 351 352 353 354 355 356 357 332 <xsl:choose> 333 <xsl:when test="nodeContent"> 334 <span class="bold"><xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/></span> 335 </xsl:when> 336 <xsl:otherwise> 337 <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/> 338 </xsl:otherwise> 339 </xsl:choose> 340 341 <!-- Apply recursively to the children of this node --> 342 <xsl:if test="documentNode[@nodeID]"> 343 344 <ul class="tocnode"> <xsl:apply-templates select="documentNode[@nodeID]"> 345 <xsl:with-param name="collName" select="$collName"/> 346 <xsl:with-param name="ec" select="$ec"/> 347 348 <!-- added parameters --> 349 <xsl:with-param name="p.a" select="$p.a"/><xsl:with-param name="p.s" select="$p.s"/><xsl:with-param name="p.sa" select="$p.sa"/><xsl:with-param name="p.c" select="$p.c"/> 350 <!--<xsl:with-param name="depth" select="$depth + 1"/>--> 351 </xsl:apply-templates> 352 </ul> 358 353 </xsl:if> 359 354 </li> … … 380 375 </xsl:if> 381 376 <xsl:apply-templates select="nodeContent"/> 382 377 </xsl:if> 383 378 384 379 </xsl:template> … … 422 417 <xsl:variable name="serviceargs"> 423 418 <xsl:for-each select="param">&s1.<xsl:value-of select="@name"/>=<xsl:value-of select="@value"/></xsl:for-each> 424 </xsl:variable>419 </xsl:variable> 425 420 <a href="{$library_name}?{$actionargs}&c={$collName}{$serviceargs}"><xsl:value-of disable-output-escaping="yes" select="."/></a> 426 421 </xsl:template> … … 439 434 <!-- parameters for the bookicon to work properly --> 440 435 <xsl:variable name="p.s" select="/page/pageRequest/paramList/param[@name='p.s']/@value"/> 441 442 443 436 <xsl:variable name="p.sa" select="/page/pageRequest/paramList/param[@name='p.sa']/@value"/> 437 <xsl:variable name="p.a" select="/page/pageRequest/paramList/param[@name='p.a']/@value"/> 438 <xsl:variable name="p.c"><xsl:choose><xsl:when test="/page/pageRequest/paramList/param[@name='p.c']"><xsl:value-of select="/page/pageRequest/paramList/param[@name='p.c']/@value"/></xsl:when><xsl:otherwise><xsl:value-of select="$collName"/></xsl:otherwise></xsl:choose></xsl:variable> 444 439 445 440 <xsl:choose> 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 441 <xsl:when test="$pos=-1"><!-- a doc --> 442 <tr valign="top"> 443 <td align="left"> 444 </td> 445 <td align="center"><center> 446 <b><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.pages', $children)"/></b> 447 </center></td> 448 <td align="right"> 449 <a href="{$library_name}?a=d&c={$collName}&d={@selectedNode}.fc&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a> 450 </td> 451 </tr> 452 </xsl:when> 453 454 <xsl:otherwise> <!-- an internal node --> 455 <tr valign="top"> 456 <td align="left"> 457 <xsl:if test=" not ( $pos = 1 )"> 458 <a href="{$library_name}?a=d&c={$collName}&d={@selectedNode}.ps&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><img src="interfaces/default/images/less.gif" border="0" align="absbottom" /></a> 459 </xsl:if> 460 </td> 461 <td align="center"><center> 462 <b><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.pageof', concat($pos, ';', $length))"/></b> 463 </center></td> 464 <td align="right"> 465 <xsl:if test=" not($pos = $length)"> 466 <a href="{$library_name}?a=d&c={$collName}&d={@selectedNode}.ns&p.s={$p.s}&p.sa={$p.sa}&p.a={$p.a}&p.c={$p.c}"><img src="interfaces/default/images/more.gif" border="0" align="absbottom" /></a> 467 </xsl:if> 468 </td> 469 </tr> 470 </xsl:otherwise> 471 </xsl:choose> 472 <tr valign="middle"> 473 <td align='center' valign='top' colspan='3'> 474 <form name="GotoForm" method="get" action="{$library_name}"> 475 <input type='hidden' name='a' value='d'/> 476 <input type='hidden' name='c' value='{$collName}'/> 477 <!--<input type='hidden' name='d' value='{@selectedNode}'/>--> 478 <input type='hidden' name='d'> 479 <xsl:attribute name='value'> 480 <xsl:if test="contains(@selectedNode, '.')"><xsl:value-of select="@selectedNode"/></xsl:if> 481 <xsl:if test="not(contains(@selectedNode, '.'))"><xsl:value-of select="@selectedNode"/>.0</xsl:if> 482 </xsl:attribute> 483 </input> 484 485 <input type='hidden' name='p.s' value='{$p.s}'/> 486 <input type='hidden' name='p.sa' value='{$p.sa}'/> 487 <input type='hidden' name='p.a' value='{$p.a}'/> 488 <input type='hidden' name='p.c' value='{$p.c}'/> 489 490 <input type="text" name="gp" size="3" maxlength="4"/> 491 <input type="submit"><xsl:attribute name='value'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.gotopage')"/></xsl:attribute></input> 492 </form> 493 </td> 494 </tr> 495 </xsl:template> 501 496 502 497 <xsl:template name="enrichServices"> … … 535 530 536 531 <xsl:template name="externalPage"> 537 538 532 <xsl:param name="external"/> 533 <xsl:variable name="go_forward_link"><a><xsl:attribute name="href"><xsl:value-of select="$external"/></xsl:attribute><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.go_forward')"/></a></xsl:variable> 539 534 <h2><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'external.title')"/></h2> 540 535 <p><xsl:value-of select="util:getInterfaceTextWithDOM($interface_name, /page/@lang, 'external.text', $go_forward_link)" disable-output-escaping="yes"/>
Note:
See TracChangeset
for help on using the changeset viewer.