source: main/trunk/model-interfaces-dev/wmtb/transform/layouts/main.xsl@ 36045

Last change on this file since 36045 was 36045, checked in by cstephen, 2 years ago

Add experiemental space filler when TOC isn't displayed

File size: 24.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:java="http://xml.apache.org/xslt/java"
5 xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
6 xmlns:gslib="http://www.greenstone.org/skinning"
7 xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
8 xmlns:lxslt="http://xml.apache.org/xslt"
9 xmlns:result="http://www.example.com/results"
10 xmlns:exsl="http://exslt.org/common"
11
12 extension-element-prefixes="java util result exsl"
13 exclude-result-prefixes="util java util">
14
15 <xsl:import href="./toc.xsl" />
16 <!--
17 <xsl:import href="footer.xsl"/>
18 -->
19
20<!-- The main layout is defined here -->
21<!-- Every page in our library uses this template -->
22<xsl:template name="mainTemplate">
23 <html>
24 <head>
25 <!-- ***** in header.xsl ***** -->
26 <xsl:call-template name="create-html-header"/>
27 <xsl:call-template name="basketHeadTags"/>
28 </head>
29 <body id="top" class="banner-overlay-on">
30 <div id="spacer-for-nav">&#160;</div>
31 <div class="wrapper">
32 <div class="shifted-frame">
33
34 <!-- Whakatohea.co.nz's navbar - no longer in use now that the dl site is
35 embedded in iframe on whakatohea.co.nz site which provides the navbar -->
36 <!--<xsl:call-template name="whakatohea-navbar"/>-->
37
38 <div class="site-canvas">
39
40 <div class="wrapper-old">
41 <div id="header-old">
42
43 <div class="banner-wrap">
44 <div class="wsite-elements wsite-not-footer wsite-header-elements">
45 <div class="wsite-section-wrap">
46 <!--<div class="wsite-section wsite-header-section wsite-section-bg-image" style="height: auto;background-image: url(&quot;interfaces/{$interface_name}/images/digital-library.jpg&quot;) ;background-repeat: no-repeat ;background-position: 50.00% 21.94% ;background-size: 100% ;background-color: transparent ;background-size: cover;" >-->
47 <div style="background-image: url(&quot;interfaces/{$interface_name}/images/digital-library.jpg&quot;);" >
48 <xsl:choose>
49 <xsl:when test="/page/pageResponse/collection or /page/pageResponse/pathList/group">
50 <xsl:attribute name="class">wsite-section wsite-header-section wsite-section-bg-image crop-bg</xsl:attribute>
51 </xsl:when>
52 <xsl:otherwise>
53 <xsl:attribute name="class">wsite-section wsite-header-section wsite-section-bg-image full-bg</xsl:attribute>
54 </xsl:otherwise>
55 </xsl:choose>
56
57 <div class="wsite-section-content">
58
59 <div class="container">
60 <div class="banner">
61 <div class="wsite-section-elements">
62 <h2 class="wsite-content-title" style="text-align:center;"><font size="6"><a href="{$library_name}"><xsl:call-template name="siteName"/></a></font></h2>
63
64 <!-- Why does this feel like it's still inside the banner-wrap? -->
65 <xsl:choose>
66 <xsl:when test="page/pageResponse/collection">
67 <div id="coll-name-link">
68 <p>&#160;
69 <a href="{$library_name}/collection/{$collNameChecked}/page/about">
70 <xsl:value-of select="page/pageResponse/collection/displayItemList/displayItem[@name='name']"/>
71 </a>
72 </p>
73 <br class="clear"/>
74 </div>
75 </xsl:when>
76
77 <xsl:when test="/page/pageRequest/paramList/param[@name='group']/@value">
78 <div id="coll-name-link">
79 <p>
80 <xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/>
81 </p>
82 <br class="clear"/>
83 </div>
84 </xsl:when>
85 </xsl:choose>
86 </div>
87 </div>
88 </div>
89
90 </div>
91 <!--<div class=""></div>-->
92 </div>
93 </div>
94
95 </div>
96
97
98 <div class="container wrapper-old col2" id="browse-search-bars">
99 <div id="topbar">
100 <xsl:choose>
101 <xsl:when test="page/pageRequest/@subaction='home'">
102 <div id="cross-coll-div">
103 <xsl:call-template name="crossCollSearch"/>
104 </div>
105 </xsl:when>
106 <xsl:when test="page/pageRequest/paramList/param/@name='c' and /page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
107 <xsl:call-template name="quick-search-area"/>
108 </xsl:when>
109 <xsl:otherwise/>
110 </xsl:choose>
111 <!--**********************************************************************-->
112 </div>
113 </div>
114
115
116 </div><!-- end banner-wrap -->
117 </div>
118 </div>
119
120 <!--<xsl:call-template name="login-prefs-help-links"/>-->
121 <!--<hr class="spacer" />-->
122 <div class="outer">
123 <xsl:if test="page/pageResponse/collection">
124 <xsl:attribute name="class">outer collectionDisplay</xsl:attribute>
125 <xsl:call-template name="sideNavBar"/>
126 </xsl:if>
127
128 <div id="gs_content" class="container">
129 <xsl:apply-templates select="/page"/>
130 </div>
131
132 <xsl:choose>
133 <xsl:when test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='sideBar']) or /page/pageResponse/format[@type='display']/gsf:option[@name='sideBar']/@value='true'">
134 <xsl:variable name="documentCount" select="count(/page/pageResponse/document)" />
135 <xsl:value-of select="$documentCount" />
136
137 <xsl:choose>
138 <xsl:when test="$documentCount > 0">
139 <!-- We need this for-each statement to select the right node -->
140 <xsl:for-each select="/page/pageResponse/document">
141 <xsl:call-template name="rightSidebarTOCAlt"/>
142 </xsl:for-each>
143 </xsl:when>
144
145 <!-- No sidebars were created, add spacer -->
146 <xsl:otherwise>
147 <xsl:call-template name="no-collapse-div" />
148 </xsl:otherwise>
149 </xsl:choose>
150 </xsl:when>
151
152 <!-- The sidbar is disabled, add spacer -->
153 <xsl:otherwise>
154 <xsl:call-template name="no-collapse-div" />
155 </xsl:otherwise>
156 </xsl:choose>
157
158 <!-- <br class="clear" /> -->
159
160 </div><!-- end class main-wrap-->
161
162 <xsl:call-template name="wmtb-footer"/>
163
164 </div> <!-- end site-canvas -->
165 </div> <!-- end shifted-frame -->
166 </div> <!-- end wrapper-->
167 </body>
168 </html>
169</xsl:template>
170
171<xsl:template name="no-collapse-div">
172 <div>
173 <xsl:text> </xsl:text>
174 </div>
175</xsl:template>
176
177<xsl:template name="sideNavBar">
178 <div class="side-navbar">
179 <!--
180 Using select statement to count only non-empty elements, is harder than testing
181 for non-empty elements. Solution of using normalize-space() is from
182 https://stackoverflow.com/questions/31602369/xsl-return-only-the-first-non-empty-element
183 -->
184 <xsl:variable name="classifierCount" select="count(/page/pageResponse/collection/serviceList/service[@name='ClassifierBrowse']/classifierList/classifier/displayItem[@name = 'name'][normalize-space()])"/>
185
186 <!-- TODO: Hardcoded strings! -->
187
188 <a href="{$library_name}">Our Six Pou</a>
189
190 <a href="{$library_name}/collection/{$collNameChecked}/page/about">
191 <xsl:if test="page/pageRequest/@subaction='about'">
192 <xsl:attribute name="class">active</xsl:attribute>
193 </xsl:if>
194
195 About Collection
196 </a>
197
198 <hr class="side-navbar-separator" />
199
200 <xsl:if test="$classifierCount > 0">
201 <span>Browse by:</span>
202 <ul>
203 <xsl:call-template name="listBrowsingClassifiers"/>
204 </ul>
205 </xsl:if>
206
207 <!--Login link is disabled, as it was determined to be confusing with Whakatohea's existing login elements -->
208 <!-- <hr class="side-navbar-separator" />
209 <xsl:call-template name="loginLinks"/> -->
210 </div>
211</xsl:template>
212
213<!--
214 This was in the old navbar. Might come in useful?
215
216 <xsl:variable name="currentPage" select="page/pageRequest/@fullURL"/>
217 <xsl:if test="/page/pageResponse/collection/serviceList/service/@type='query'">
218 <li>
219 <a href="{$currentPage}">Search</a>
220 <ul>
221 <xsl:for-each select="/page/pageResponse/collection/serviceList/service[@type='query']">
222 <xsl:variable name="search" select="@name"/>
223 <xsl:variable name="search_name" select="displayItem[@name='name']"/>
224
225 <li>
226 <a href="{$library_name}/collection/{$collNameChecked}/search/{$search}">
227 <xsl:value-of select="$search_name"/>
228 </a>
229 </li>
230 </xsl:for-each>
231 </ul>
232 </li>
233 </xsl:if>
234-->
235
236<!-- Builds a list of the named browsing classifiers that are defined in the response. -->
237<xsl:template name="listBrowsingClassifiers">
238 <xsl:for-each select="/page/pageResponse/collection/serviceList/service[@name='ClassifierBrowse']/classifierList/classifier">
239 <xsl:choose>
240 <!--
241 Only display browsing classifiers that have a name.
242 Those that don't have a name are empty classifiers
243 denoted by no value/empty value for displayItem name=name elements.
244 Testing for non empty elements is easy: not() test.
245 -->
246 <xsl:when test="not(displayItem[@name='name'] ='')">
247 <li>
248 <a>
249 <!-- Indicates that this classifier's content is being displayed -->
250 <xsl:if test="util:contains(/page/pageRequest/paramList/param[@name = 'cl' and /page/pageRequest/@action = 'b']/@value, @name)">
251 <xsl:attribute name="class">active</xsl:attribute>
252 </xsl:if>
253
254 <!-- Add a title element to the <a> tag if a description exists for this classifier -->
255 <xsl:if test="displayItem[@name='description']">
256 <xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute>
257 </xsl:if>
258
259 <!-- Add the href element to the <a> tag -->
260 <xsl:choose>
261 <xsl:when test="@name">
262 <xsl:attribute name="href">
263 <xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="/page/pageResponse/collection[@name=$collNameChecked]/@name"/>/browse/<xsl:value-of select="@name"/>
264 </xsl:attribute>
265 </xsl:when>
266 <xsl:otherwise>
267 <xsl:attribute name="href">
268 <xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="/page/pageResponse/collection[@name=$collNameChecked]/@name"/>/browse/1
269 </xsl:attribute>
270 </xsl:otherwise>
271 </xsl:choose>
272
273 <!-- Add the actual text of the <a> tag -->
274 <xsl:value-of select="displayItem[@name='name']"/>
275 </a>
276 </li>
277 </xsl:when>
278 </xsl:choose>
279 </xsl:for-each>
280</xsl:template>
281
282<xsl:template name="crossCollSearch">
283 <div id="search">
284 <xsl:for-each select="/page/pageResponse/serviceList/service[@name='TextQuery']">
285 <form name="QuickSearch" method="get" action="{$library_name}">
286 <input type="hidden" name="a" value="q"/>
287 <input type="hidden" name="rt" value="rd"/>
288 <input type="hidden" name="s" value="{@name}"/>
289 <input type="hidden" name="s1.collection" value="all"/>
290 <input type="text" name="s1.query" id="search-text" value="Search all collections
" onfocus="this.value=(this.value=='Search all collections
')? '' : this.value ;" />
291 <input type="submit" name="go" id="go" value="Search" />
292 </form>
293 </xsl:for-each>
294 </div>
295 <br class="clear" />
296</xsl:template>
297
298<xsl:template name="CollectionSearch">
299<div id="search">
300<xsl:variable name="subaction" select="/page/pageRequest/@subaction"/>
301<form action="{$library_name}/collection/{$collNameChecked}/search/TextQuery">
302<!-- This parameter says that we have come from the quick search area -->
303<input type="hidden" name="qs" value="1"/>
304<input type="hidden" name="rt" value="rd"/>
305<input type="hidden" name="s1.level">
306<xsl:attribute name="value">
307<xsl:choose>
308<xsl:when test="/page/pageRequest/paramList/param[@name = 's1.level']">
309<xsl:value-of select="/page/pageRequest/paramList/param[@name = 's1.level']/@value"/>
310</xsl:when>
311<xsl:otherwise>
312<xsl:value-of select="/page/pageResponse/collection/serviceList/service[@name='TextQuery']/paramList/param[@name = 'level']/@default"/>
313</xsl:otherwise>
314</xsl:choose>
315</xsl:attribute>
316</input>
317<xsl:choose>
318<xsl:when test="/page/pageResponse/service[@name = 'TextQuery']/paramList/param[@name = 'startPage']">
319<input type="hidden" name="s1.startPage" value="1"/>
320</xsl:when>
321<xsl:otherwise>
322<input type="hidden" name="startPage" value="1"/>
323</xsl:otherwise>
324</xsl:choose>
325<xsl:if test="not(/page/pageRequest/paramList/param[@name = 's1.hitsPerPage'])">
326<input type="hidden" name="s1.hitsPerPage" value="20"/>
327</xsl:if>
328<xsl:if test="not(/page/pageRequest/paramList/param[@name = 's1.maxDocs'])">
329<input type="hidden" name="s1.maxDocs" value="100"/>
330</xsl:if>
331<!-- The query text box -->
332<span class="querybox">
333<xsl:variable name="qs">
334<xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='query']" mode="calculate-default"/>
335</xsl:variable>
336<nobr>
337<xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='query']">
338<xsl:with-param name="default" select="java:org.greenstone.gsdl3.util.XSLTUtil.tidyWhitespace($qs, /page/@lang)"/>
339</xsl:apply-templates>
340</nobr>
341</span>
342<!-- The submit button (for TextQuery) -->
343<xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
344<input type="submit" name="go" id="go" value="Search" > </input>
345<br/>
346</xsl:if>
347</form>
348</div>
349<br class="clear" />
350<!--<div id="advanced"><a href="{$library_name}/collection/{$collNameChecked}/search/TextQuery">advanced search</a></div>-->
351</xsl:template>
352
353
354<xsl:template name="loginLinks">
355 <xsl:variable name="username" select="/page/pageRequest/userInformation/@username"/>
356 <xsl:variable name="groups" select="/page/pageRequest/userInformation/@groups"/>
357
358 <xsl:choose>
359 <xsl:when test="$username">
360 <!-- Depositor link: only for logged-in users.
361 CSS class=login to make Depositor link blue to indicate it's only available when logged in.
362 Don't put this depositorTitleAndLink inside the test for whether user 'admin' is
363 in the current list of groups, as we want the depositor link to be visible for any
364 logged in user. The collection they want to deposit a doc into will determine whether
365 that user has the right to modify that collection.
366 -->
367 <xsl:if test="contains($groups,'admin')">
368 <li class="login"><gslib:depositorTitleAndLink/></li> <!-- move back up/outside if admin test if non-admin members should be able to deposit -->
369 <li class="login"><a href="{$library_name}/admin/AddUser">Add user</a></li>
370 <li class="login"><a href="{$library_name}/admin/ListUsers">Administration</a></li>
371 <li class="login"><a href="{$library_name}/admin/AccountSettings?s1.username={$username}">Logged in as: <xsl:value-of select="$username"/></a></li><!-- move back up/outside if admin test if non-admin members should be able to reset their password -->
372 </xsl:if>
373 <li class="login"><a href="{$library_name}?logout=">Logout</a></li>
374 </xsl:when>
375 <xsl:otherwise>
376 <li class="login">
377 <a href="{$library_name}?a=p&amp;sa=login&amp;redirectURL={$library_name}%3Fa=p%26sa=home">Login
378 <xsl:attribute name="title">
379 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_tip')"/>
380 </xsl:attribute>
381 </a>
382 </li>
383 </xsl:otherwise>
384 </xsl:choose>
385</xsl:template>
386
387<xsl:template name="quick-search-area">
388 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='query']">
389 <xsl:variable name="subaction" select="/page/pageRequest/@subaction"/>
390
391 <div id="quicksearcharea">
392 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
393 <xsl:choose>
394 <xsl:when test="not(page/pageRequest[@action='q']) or /page/pageRequest/paramList/param[@name='qs']/@value = '1'">
395 <form action="{$library_name}/collection/{$collNameChecked}/search/TextQuery">
396 <!-- This parameter says that we have come from the quick search area -->
397
398 <input type="hidden" name="qs" value="1"/>
399 <input type="hidden" name="rt" value="rd"/>
400 <!-- don't hide indexing levels: code further down will hide it if there's only 1 indexing level.
401 and display a dropdown if the collection's configured with more than 1 index level available -->
402 <!--<input type="hidden" name="s1.level">
403 <xsl:attribute name="value">
404 <xsl:value-of select="/page/pageResponse/collection/serviceList/service[@name='TextQuery']/paramList/param[@name = 'level']/@default"/>
405 </xsl:attribute>
406 </input>
407 -->
408 <xsl:choose>
409 <xsl:when test="/page/pageResponse/service[@name = 'TextQuery']/paramList/param[@name = 'startPage']">
410 <input type="hidden" name="s1.startPage" value="1"/>
411 </xsl:when>
412 <xsl:otherwise>
413 <input type="hidden" name="startPage" value="1"/>
414 </xsl:otherwise>
415 </xsl:choose>
416
417 <!-- The query text box -->
418 Search for
419 <span class="querybox">
420 <xsl:variable name="qs">
421 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='query']" mode="calculate-default"/>
422 </xsl:variable>
423 <nobr>
424 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='query']">
425 <!--
426 <xsl:with-param name="default" select="java:org.greenstone.gsdl3.util.XSLTUtil.tidyWhitespace($qs, /page/@lang)"/>
427 -->
428 <xsl:with-param name="default" select="normalize-space($qs)"/>
429
430 </xsl:apply-templates>
431 </nobr>
432 </span>
433 <!-- The index selection list -->
434 in
435 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']/@type = 'enum_single'">
436 <span class="textselect">
437 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']">
438 <xsl:with-param name="default">
439 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']" mode="calculate-default"/>
440 </xsl:with-param>
441 <xsl:with-param name="hideSingle">false</xsl:with-param>
442 <xsl:with-param name="quickSearch">true</xsl:with-param>
443 </xsl:apply-templates>
444 </span>
445 </xsl:if>
446 <!-- The partition selection list -->
447 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexSubcollection']/@type = 'enum_single'">
448 <span class="textselect">
449 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexSubcollection']">
450 <xsl:with-param name="default">
451 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexSubcollection']" mode="calculate-default"/>
452 </xsl:with-param>
453 <xsl:with-param name="hideSingle">true</xsl:with-param>
454 <xsl:with-param name="quickSearch">true</xsl:with-param>
455 </xsl:apply-templates>
456 </span>
457 </xsl:if>
458
459 <!-- The index level selection list. hideSingle=true to hide the dropdown if there's only 1 level (the default). -->
460 at
461 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='level']/@type = 'enum_single'">
462 <span class="textselect">
463 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='level']">
464 <xsl:with-param name="default">
465 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='level']" mode="calculate-default"/>
466 </xsl:with-param>
467 <xsl:with-param name="hideSingle">true</xsl:with-param>
468 <xsl:with-param name="quickSearch">true</xsl:with-param>
469 </xsl:apply-templates>
470 </span>
471 </xsl:if>
472 level
473
474 <!-- The language selection list -->
475 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexLanguage']/@type = 'enum_single'">
476 <span class="textselect">
477 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexLanguage']">
478 <xsl:with-param name="default">
479 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexLanguage']" mode="calculate-default"/>
480 </xsl:with-param>
481 <xsl:with-param name="hideSingle">true</xsl:with-param>
482 <xsl:with-param name="quickSearch">true</xsl:with-param>
483 </xsl:apply-templates>
484 </span>
485 </xsl:if>
486 <!-- The submit button (for TextQuery) -->
487 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
488 <!--<input type="submit" id="quickSearchSubmitButton">
489 <xsl:attribute name="value">
490 <xsl:value-of select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/displayItem[@name='submit']"/>
491 </xsl:attribute>
492 </input>-->
493
494 <input type="submit" id="quickSearchSubmitButton" value="Go"/>
495
496 <br/>
497 </xsl:if>
498 </form>
499
500 <div class="query-form-links" id="advanced"><a href="{$library_name}/collection/{$collNameChecked}/search/AdvancedFieldQuery">Advanced search</a></div>
501
502 </xsl:when>
503 <xsl:otherwise><br/></xsl:otherwise>
504 </xsl:choose>
505 </xsl:if>
506
507 </div>
508 <!--<br class="clear" />-->
509 <!--<span id="advanced">-->
510
511 <!-- The list of other search types -->
512 <!--<xsl:call-template name="all-other-search-form-links"/>-->
513
514
515 </xsl:if>
516
517
518 <!--<br class="clear" />
519 <div id="advanced"><a href="{$library_name}/collection/{$collNameChecked}/search/TextQuery">form search</a></div>
520 <div id="advanced"><a href="{$library_name}/collection/{$collNameChecked}/search/AdvancedFieldQuery">advanced search</a></div>
521 -->
522 </xsl:template>
523
524 <!-- Bar that links to other search forms -->
525 <xsl:template name="all-other-search-form-links">
526 <!-- The list of other search types -->
527 <div class="query-form-links">
528 <ul>
529 <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='query']">
530 <xsl:if test="/page/pageRequest/paramList/param[@name='qs']/@value = 1 or not(@name = /page/pageRequest/paramList/param[@name='s']/@value)">
531 <li class="ui-state-default ui-corner-all">
532 <a class="query-form-links">
533 <xsl:attribute name="href">
534 <xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collNameChecked"/>/search/<xsl:value-of select="@name"/>
535 </xsl:attribute>
536 <xsl:value-of select="displayItem[@name='name']"/>
537 </a>
538 </li>
539 </xsl:if>
540 </xsl:for-each>
541 </ul>
542 </div>
543
544 </xsl:template>
545
546 <!-- navigation bar for login, preferences and help links -->
547 <xsl:template name="login-prefs-help-links">
548 <div class="container wrapper-old col0" style="margin:10px auto"> <!-- used to be 10px 30px -->
549 <div id="topline">
550 <ul>
551 <xsl:call-template name="loginLinks"/>
552 <li><a href="{$library_name}/collection/{$collNameChecked}/page/pref">Preferences</a></li>
553 <xsl:choose>
554 <xsl:when test="/page/pageResponse/collection">
555 <li><a href="{$library_name}/collection/{$collNameChecked}/page/help">Help</a></li>
556 </xsl:when>
557 <xsl:otherwise>
558 <li><a href="{$library_name}/page/help">Help</a></li>
559 </xsl:otherwise>
560 </xsl:choose>
561 </ul>
562 <br class="clear" />
563 </div>
564 </div>
565 </xsl:template>
566
567</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.