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

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

Fix right sidebar layout (TOC)
Use core styles
Use upgraded default interface

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