- Timestamp:
- 2011-05-17T12:19:08+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/oran/transform/util.xsl
r23989 r24018 9 9 <xsl:value-of select="/page/pageResponse/metadataList/metadata[@name='siteName']"/> 10 10 </xsl:template> 11 11 12 <xsl:template name="siteLink"> 12 13 <a href="./{$library_name}"> … … 15 16 </a> 16 17 </xsl:template> 18 17 19 <xsl:variable name="a"> 18 20 <xsl:value-of select="/page/pageRequest/paramList/param[@name='a']/@value"/> 19 21 </xsl:variable> 22 20 23 <xsl:variable name="collections" select="/page/pageResponse/collectionList/collection"/> 24 21 25 <xsl:variable name="berrybasketswitch"> 22 26 <xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/> 23 27 </xsl:variable> 28 24 29 <xsl:variable name="berryBasketOn" select="/page/pageRequest/paramList/param[@name='berrybasket' and @value='on']"/> 30 25 31 <!-- template to get the name of the current collection --> 26 32 <xsl:template name="collectionName"> … … 32 38 </xsl:choose> 33 39 </xsl:template> 40 34 41 <xsl:template name="collectionNameShort"> 35 42 <xsl:value-of select="/page/pageResponse/collection/@name"/> … … 43 50 </xsl:if> 44 51 </xsl:template> 52 45 53 <!-- text to get the name of the current service ("Browse","Search" etc) --> 46 54 <xsl:template name="serviceName"> 47 55 <xsl:value-of select="/page/pageResponse/service/displayItem[@name='name']"/> 48 56 </xsl:template> 57 49 58 <xsl:template name="textDirectionAttribute"> 50 59 <xsl:attribute name="dir"> … … 55 64 </xsl:attribute> 56 65 </xsl:template> 66 57 67 <xsl:template name="actionClass"> 58 68 <xsl:attribute name="class"><xsl:value-of select="/page/pageRequest/@action"/>Action <xsl:if test="/page/pageRequest/@subaction"><xsl:value-of select="/page/pageRequest/@subaction"/>Subaction</xsl:if></xsl:attribute> … … 83 93 </xsl:choose> 84 94 </xsl:template> 95 85 96 <xsl:template match="error"> 86 97 Error: <xsl:value-of select="."/> … … 125 136 </xsl:if> 126 137 </xsl:template> 138 127 139 <xsl:template name="noTextBar"> 128 140 <xsl:text disable-output-escaping="yes">&nbsp;</xsl:text> 129 141 </xsl:template> 142 130 143 <xsl:template name="poweredByGS3TextBar"> 131 144 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gs3power')"/> 132 145 </xsl:template> 146 133 147 <xsl:template name="rightArrow"> 134 148 <xsl:text disable-output-escaping="yes"> &raquo; </xsl:text> 135 149 </xsl:template> 150 136 151 <!-- site home ....................................................................... --> 137 152 <xsl:template name="siteHomePageTitle"> … … 140 155 <xsl:text> </xsl:text> 141 156 </xsl:template> 157 142 158 <xsl:template name="selectACollectionTextBar"> 143 159 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.select_a_collection')"/> 144 160 </xsl:template> 161 145 162 <xsl:template name="crossCollectionQuickSearchForm"> 146 163 <xsl:apply-templates select="serviceList/service[@name='TextQuery']"/> 147 164 </xsl:template> 165 148 166 <xsl:template match="service[@name='TextQuery']"> 149 167 <form name="QuickSearch" method="get" action="{$library_name}"> … … 160 178 </form> 161 179 </xsl:template> 180 162 181 <xsl:template name="collectionLinkWithImage"> 163 182 <xsl:choose> … … 185 204 </xsl:choose> 186 205 </xsl:template> 206 187 207 <xsl:template name="serviceClusterList"> 188 208 <xsl:apply-templates select="serviceClusterList"/> 189 209 </xsl:template> 210 190 211 <xsl:template match="serviceClusterList"> 191 212 <xsl:for-each select="serviceCluster"> … … 196 217 </xsl:for-each> 197 218 </xsl:template> 219 198 220 <xsl:template name="serviceLink"> 199 221 <div class="paramLabel"> … … 207 229 <br class="clear"/> 208 230 </xsl:template> 231 209 232 <xsl:template name="authenticationLink"> 210 233 <xsl:for-each select="serviceList/service[@type='authen']"> … … 217 240 </xsl:for-each> 218 241 </xsl:template> 242 219 243 <xsl:template name="libraryInterfaceLink"> 220 244 <li> … … 224 248 </li> 225 249 </xsl:template> 250 226 251 <xsl:template name="greenstoneLogoAlternateText"> 227 252 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/> 228 253 </xsl:template> 254 229 255 <!-- about page - collection home ....................................................................... --> 230 256 <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/> … … 233 259 <xsl:variable name="this-element" select="/page/pageResponse/collection|/page/pageResponse/serviceCluster"/> 234 260 <xsl:variable name="this-service" select="/page/pageResponse/service/@name"/> 261 235 262 <xsl:template name="aboutCollectionPageTitle"> 236 263 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> … … 238 265 <xsl:text> </xsl:text> 239 266 </xsl:template> 267 240 268 <xsl:template name="collectionHomeLinkWithLogoIfAvailable"> 241 269 <a href="{$library_name}?a=p&sa=about&c={$collName}"> … … 258 286 </a> 259 287 </xsl:template> 288 260 289 <xsl:template name="homeButtonTop"> 261 290 <a href="{$library_name}?a=p&sa=home"> … … 266 295 </a> 267 296 </xsl:template> 297 268 298 <xsl:template name="helpButtonTop"> 269 299 <xsl:choose> … … 287 317 </xsl:choose> 288 318 </xsl:template> 319 289 320 <xsl:template name="preferencesButtonTop"> 290 321 <xsl:choose> … … 308 339 </xsl:choose> 309 340 </xsl:template> 341 310 342 <xsl:template name="servicesNavigationBar"> 311 343 <xsl:for-each select="$this-element/serviceList/service"> … … 343 375 </xsl:for-each> 344 376 </xsl:template> 377 345 378 <xsl:template name="collectionDescriptionTextAndServicesLinks"> 346 379 <xsl:apply-templates select="pageResponse/collection|serviceCluster"/> … … 352 385 </xsl:apply-templates> 353 386 </xsl:template> 387 354 388 <xsl:template match="serviceList"> 355 389 <xsl:param name="collName"/> … … 397 431 </xsl:if> 398 432 </xsl:template> 433 399 434 <!-- classifier page ............................................................................ --> 400 435 <xsl:template name="collapsedNavigationTab"> … … 416 451 </li> 417 452 </xsl:template> 453 418 454 <xsl:template name="navigationTab"> 419 455 <xsl:variable name="isCurrent" select="@name=/page/pageResponse/service/@name"/> … … 451 487 </xsl:if> 452 488 </xsl:template> 489 453 490 <xsl:template name="classifierLink"> 454 491 <xsl:if test="@name=/page/pageResponse/classifier/@name"> … … 459 496 </a> 460 497 </xsl:template> 498 461 499 <!-- query page ............................................................................ --> 462 500 <xsl:template name="indexName"> … … 471 509 </xsl:choose> 472 510 </xsl:template> 511 473 512 <!-- 474 513 BERRY BASKET TEMPLATES … … 498 537 </xsl:if> 499 538 </xsl:template> 539 500 540 <!-- include the required javascript and css for berry baskets --> 501 541 <xsl:template name="berryBasketHeadTags"> 502 <script type="text/javascript" src="interfaces/{$interface_name}/js/YAHOO.js"><xsl:text> </xsl:text></script> 503 <script type="text/javascript" src="interfaces/{$interface_name}/js/event.js"><xsl:text> </xsl:text></script> 504 <script type="text/javascript" src="interfaces/{$interface_name}/js/connection.js"><xsl:text> </xsl:text></script> 505 <script type="text/javascript" src="interfaces/{$interface_name}/js/dom.js"><xsl:text> </xsl:text></script> 506 <script type="text/javascript" src="interfaces/{$interface_name}/js/dragdrop.js"><xsl:text> </xsl:text></script> 507 <script type="text/javascript" src="interfaces/{$interface_name}/js/ygDDPlayer.js"><xsl:text> </xsl:text></script> 508 <script type="text/javascript" src="interfaces/{$interface_name}/js/ygDDOnTop.js"><xsl:text> </xsl:text></script> 509 <script type="text/javascript" src="interfaces/{$interface_name}/js/berrybasket.js"><xsl:text> </xsl:text></script> 542 <script type="text/javascript" src="interfaces/{$interface_name}/js/yui/yahoo-min.js"><xsl:text> </xsl:text></script> 543 <script type="text/javascript" src="interfaces/{$interface_name}/js/yui/event-min.js"><xsl:text> </xsl:text></script> 544 <script type="text/javascript" src="interfaces/{$interface_name}/js/yui/connection-min.js"><xsl:text> </xsl:text></script> 545 <script type="text/javascript" src="interfaces/{$interface_name}/js/yui/dom-min.js"><xsl:text> </xsl:text></script> 546 <script type="text/javascript" src="interfaces/{$interface_name}/js/yui/dragdrop-min.js"><xsl:text> </xsl:text></script> 547 <script type="text/javascript" src="interfaces/{$interface_name}/js/yui/cookie-min.js"><xsl:text> </xsl:text></script> 548 <script type="text/javascript" src="interfaces/{$interface_name}/js/berrybasket/ygDDPlayer.js"><xsl:text> </xsl:text></script> 549 <script type="text/javascript" src="interfaces/{$interface_name}/js/berrybasket/ygDDOnTop.js"><xsl:text> </xsl:text></script> 550 <script type="text/javascript" src="interfaces/{$interface_name}/js/berrybasket/berrybasket.js"><xsl:text> </xsl:text></script> 510 551 <link rel="stylesheet" href="interfaces/{$interface_name}/style/berry.css" type="text/css"/> 511 552 </xsl:template> 553 512 554 <!-- 513 555 create a little berry which can be drag&dropped onto the berry basket … … 521 563 </xsl:if> 522 564 </xsl:template> 565 523 566 <!-- 524 567 create little berrys which can be drag&dropped onto the berry basket … … 543 586 </xsl:if> 544 587 </xsl:template> 588 545 589 <!-- document page --> 546 590 <xsl:template name="documentTitle"> … … 552 596 </img> 553 597 </xsl:template> 598 554 599 <xsl:template name="previousNextButtons"> 555 600 <!-- prev --> … … 564 609 </a> 565 610 </xsl:template> 611 566 612 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.