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

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

Temp revert disabling the floating toc

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