root/greenstone3/trunk/web/interfaces/oran/transform/util.xsl @ 19988

Revision 19988, 22.0 KB (checked in by oranfry, 11 years ago)

checking in a batch of changes to the oran skin. more work yet to do.

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:gslib="http://www.greenstone.org/XSL/Library"
5    xmlns:util="http://org.greenstone.gsdl3.util.XSLTUtil"
6    exclude-result-prefixes="util gslib gsf xslt">
7
8    <!-- some global parameters - these are set by whoever is invoking the transformation -->
9  <xsl:param name="interface_name"/>
10  <xsl:param name="library_name"/>
11
12  <!-- every pages ....................................................................... -->
13    <xsl:template name="siteName"><xsl:value-of select="/page/pageResponse/metadataList/metadata[@name='siteName']"/></xsl:template>
14    <xsl:template name="siteLink"><a href="./"><xsl:call-template name="siteName"/></a></xsl:template>
15
16    <xsl:variable name="a"><xsl:value-of select="/page/pageRequest/paramList/param[@name='a']/@value"/>     </xsl:variable>
17    <xsl:variable name="collections" select="/page/pageResponse/collectionList/collection"/>
18
19    <xsl:variable name="berrybasketswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:variable>
20    <xsl:variable name="berryBasketOn" select="/page/pageRequest/paramList/param[@name='berrybasket' and @value='on']"/>
21
22    <!-- template to get the name of the current collection -->
23    <xsl:template name="collectionName">
24        <xsl:choose>
25            <xsl:when test="/page/pageResponse/collection"><xsl:value-of select="/page/pageResponse/collection/displayItem[@name='name']"/></xsl:when>
26            <xsl:otherwise>All Collections</xsl:otherwise>
27        </xsl:choose>
28    </xsl:template>
29
30    <xsl:template name="collectionNameShort">
31        <xsl:value-of select="/page/pageResponse/collection/@name"/>
32    </xsl:template>
33
34    <xsl:template name="collectionNameLinked">
35        <xsl:choose>
36            <xsl:when test="/page/pageResponse/collection">
37                <a>
38                    <xsl:attribute name="href"><xsl:call-template name="siteURL"/><xsl:value-of select="$library_name"/>?a=p&amp;sa=about&amp;c=<xsl:call-template name="collectionNameShort"/></xsl:attribute>
39                    <xsl:call-template name="collectionName"/>
40                </a>
41            </xsl:when>
42            <xsl:otherwise>
43                <a>
44                    <xsl:attribute name="href"><xsl:call-template name="siteURL"/></xsl:attribute>
45                    All Collections
46                </a>
47            </xsl:otherwise>
48        </xsl:choose>
49    </xsl:template>
50
51    <!-- text to get the name of the current service ("Browse","Search" etc) -->
52    <xsl:template name="serviceName">
53        <xsl:value-of select="/page/pageResponse/service/displayItem[@name='name']"/>
54    </xsl:template>
55
56    <xsl:template name="textDirectionAttribute">
57        <xsl:attribute name="dir">
58            <xsl:choose>
59                <xsl:when test="/page/@lang='ar' or /page/@lang='fa' or /page/@lang='he' or /page/@lang='ur' or /page/@lang='ps' or /page/@lang='prs'">rtl</xsl:when>
60                <xsl:otherwise>ltr</xsl:otherwise>
61            </xsl:choose>
62        </xsl:attribute>
63    </xsl:template>
64
65    <xsl:template name="actionClass">
66        <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>
67    </xsl:template>
68
69    <!-- username, if logged in -->
70    <!--
71    <xsl:template name="username">
72        <xsl:if test="$un_s!=''">
73            <xsl:if test="$asn!='' and $asn!='0'">
74            <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.username')"/>  :  <xsl:value-of select="$un_s"/>
75            </xsl:if>
76        </xsl:if>
77    </xsl:template>
78    -->
79
80    <xsl:template name="defaultDividerBar">
81   <xsl:param name='text'/>
82      <xsl:choose>
83      <xsl:when test="$text">
84     <div class="divbar"><xsl:value-of select="$text"/></div>
85      </xsl:when>
86      <xsl:otherwise>
87     <div class="divbar"><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text></div>
88      </xsl:otherwise>
89    </xsl:choose>
90  </xsl:template>
91
92
93    <xsl:template match="error">
94    Error: <xsl:value-of select="."/>
95  </xsl:template>
96
97
98<xsl:template name="displayErrorsIfAny">
99      <xsl:if test="descendant::error">
100      <script language="Javascript">
101    <xsl:text disable-output-escaping="yes">
102      function removeAllChildren(node) {
103        while (node.hasChildNodes()) {
104          node.removeChild(node.firstChild);
105        }
106      }
107
108      function toggleHideError(obj) {
109        if (obj.style.display == "none") {
110          obj.style.display = "";
111          hide_link = document.getElementById("hide");
112          removeAllChildren(hide_link);
113          hide_link.appendChild(document.createTextNode("</xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'hide_error')"/><xsl:text disable-output-escaping="yes">"));
114        } else {
115          obj.style.display = "none";
116          hide_link = document.getElementById("hide");
117          removeAllChildren(hide_link);
118          hide_link.appendChild(document.createTextNode("</xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'show_error')"/><xsl:text disable-output-escaping="yes">"));
119        }
120      }
121    </xsl:text>
122      </script>
123      <p align='right'><a id="hide" href="javascript:toggleHideError(error);"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'show_error')"/></a></p>
124      <div id="error" style="display: none;">
125    <xsl:apply-templates select="descendant::error"/>
126      </div>
127    </xsl:if>
128</xsl:template>
129
130
131    <xsl:template name="noTextBar">
132        <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
133    </xsl:template>
134   
135   
136    <xsl:template name="poweredByGS3TextBar">
137        <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gs3power')"/>
138    </xsl:template>
139
140    <xsl:template name="rightArrow"><xsl:text disable-output-escaping="yes"> &amp;raquo; </xsl:text></xsl:template>
141
142
143
144    <!-- site home ....................................................................... -->
145
146<xsl:template name="siteHomePageTitle">
147 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
148<xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/><xsl:text> </xsl:text>
149</xsl:template>
150
151
152    <xsl:template name="selectACollectionTextBar">
153     <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.select_a_collection')"/>
154  </xsl:template>
155    <xsl:template name="crossCollectionQuickSearchForm">
156        <xsl:apply-templates select="serviceList/service[@name='TextQuery']"/>
157    </xsl:template>
158   
159    <xsl:template match="service[@name='TextQuery']">
160        <form name="QuickSearch" method="get" action="{$library_name}">
161            <input type="hidden" name="a" value="q"/>
162            <input type="hidden" name="rt" value="rd"/>
163            <input type="hidden" name="s" value="{@name}"/>
164            <input type="hidden" name="s1.collection" value="all"/>
165            <input type="text" name="s1.query" size="20"/>
166            <input type="submit"><xsl:attribute name="value"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.quick_search')"/></xsl:attribute></input>
167        </form>
168    </xsl:template>
169
170    <xsl:template name="collectionLinkWithImage">
171        <xsl:choose>
172            <xsl:when test="displayItem[@name='icon']">
173                <!-- <a href="{$library_name}/{@name}"> -->
174                <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}">
175                    <xsl:attribute name="style">background-image: url('<xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/icon-160x120.gif');</xsl:attribute>
176                    <b><xsl:value-of select="displayItem[@name='name']"/></b>
177                </a>
178            </xsl:when>
179            <xsl:otherwise>
180                <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}">
181                    <xsl:value-of select="displayItem[@name='name']"/>
182                </a>
183            </xsl:otherwise>
184        </xsl:choose>
185    </xsl:template>
186
187
188    <xsl:template name="serviceClusterList">
189        <xsl:apply-templates select="serviceClusterList"/>
190    </xsl:template>
191   
192      <xsl:template match="serviceClusterList">
193        <xsl:for-each select="serviceCluster">
194          <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}"><xsl:value-of select='@name'/><xsl:value-of select="displayItem[@name='name']"/></a>
195        </xsl:for-each>
196      </xsl:template>
197
198   
199    <xsl:template name="serviceLink">
200        <div class="paramLabel"><a href="{$library_name}?a=q&amp;rt=d&amp;s={@name}"><xsl:value-of select="displayItem[@name='name']"/></a></div>
201        <div class="paramValue"><xsl:value-of select="displayItem[@name='description']"/></div>
202        <br class="clear"/>
203    </xsl:template>
204
205
206   <xsl:template name="authenticationLink">
207   <xsl:for-each select="serviceList/service[@type='authen']">
208      <li><a href="{$library_name}?a=g&amp;rt=r&amp;sa=authen&amp;s={@name}&amp;s1.aup=Login&amp;s1.un=&amp;s1.asn="><xsl:value-of select="displayItem[@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/></li></xsl:for-each>
209  </xsl:template>
210   <xsl:template name="libraryInterfaceLink">
211   <li><a href="{$library_name}?a=p&amp;sa=gli4gs3"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.librarian_interface')"/></a></li>
212  </xsl:template>
213<xsl:template name="greenstoneLogoAlternateText">
214<xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
215</xsl:template>
216
217<!-- about page - collection home ....................................................................... -->
218<xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
219<xsl:param name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
220<xsl:param name="pageType"/>
221<xsl:variable name="this-element" select="/page/pageResponse/collection|/page/pageResponse/serviceCluster"/>
222<xsl:variable name="this-service" select="/page/pageResponse/service/@name"/>
223
224
225<xsl:template name="aboutCollectionPageTitle">
226 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->
227<xsl:value-of select="/page/pageResponse/collection/displayItem[@name='name']"/><xsl:text> </xsl:text>
228</xsl:template>
229
230   
231<xsl:template name="collectionHomeLinkWithLogoIfAvailable">
232<a href="{$library_name}?a=p&amp;sa=about&amp;c={$collName}">
233      <xsl:choose>
234        <xsl:when test="$this-element/displayItem[@name='icon']">
235          <img border="0">
236        <xsl:attribute name="src">
237          <xsl:value-of select="$this-element/metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="$this-element/displayItem[@name='icon']"/>
238        </xsl:attribute>   
239        <xsl:attribute name="alt">
240          <xsl:value-of select="$this-element/displayItem[@name='name']"/>
241        </xsl:attribute>
242        <xsl:attribute name="title">
243          <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'aboutpage')"/>
244        </xsl:attribute>
245          </img>
246        </xsl:when>
247        <xsl:otherwise>
248          <xsl:value-of select="$this-element/displayItem[@name='name']"/>
249        </xsl:otherwise>
250      </xsl:choose>
251    </a>
252</xsl:template>
253
254
255<xsl:template name="homeButtonTop">
256<a href="{$library_name}?a=p&amp;sa=home"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_tip')"/></xsl:attribute>
257<xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home_b')"/></a>
258</xsl:template>
259
260
261<xsl:template name="helpButtonTop">
262    <xsl:choose>
263      <xsl:when test="$pageType='help'">
264    <li><a><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></a></li>
265      </xsl:when>
266      <xsl:otherwise>
267    <li><a href="{$library_name}?a=p&amp;sa=help&amp;c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
268        <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/>
269      </a></li>
270      </xsl:otherwise>
271    </xsl:choose>
272</xsl:template>
273
274
275    <xsl:template name="preferencesButtonTop">
276        <xsl:choose>
277            <xsl:when test="$pageType='pref'">
278                <li><a><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></a></li>
279            </xsl:when>
280            <xsl:otherwise>
281                <li><a href="{$library_name}?a=p&amp;sa=pref&amp;c={$collName}"><xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute>
282                    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/>
283                </a></li>
284            </xsl:otherwise>
285        </xsl:choose>
286    </xsl:template>
287
288    <xsl:template name="servicesNavigationBar">
289        <xsl:for-each select="$this-element/serviceList/service">
290            <xsl:variable name="action"><xsl:choose>
291                <xsl:when test="@name=$this-service">CURRENT</xsl:when>
292                <xsl:when test="@type='query'">q</xsl:when>
293                <xsl:when test="@type='browse'">b</xsl:when>
294                <xsl:when test="@type='process'">pr</xsl:when>
295                <xsl:when test="@type='applet'">a</xsl:when>
296                <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
297            </xsl:choose></xsl:variable>
298            <xsl:choose>
299                <xsl:when test="$action='CURRENT'">
300                    <li><a><xsl:value-of select="displayItem[@name='name']"/></a></li>
301                </xsl:when>
302                <xsl:when test="$action !='DO_NOT_DISPLAY'">
303                    <li><a href="{$library_name}?a={$action}&amp;rt=d&amp;s={@name}&amp;c={$collName}"><xsl:if test="displayItem[@name='description']"><xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute></xsl:if><xsl:value-of select="displayItem[@name='name']"/></a></li>
304                </xsl:when>
305            </xsl:choose>
306        </xsl:for-each>
307    </xsl:template>
308
309
310    <xsl:template name="collectionDescriptionTextAndServicesLinks">
311        <xsl:apply-templates select="pageResponse/collection|serviceCluster"/>
312    </xsl:template>
313
314    <xsl:template match="collection|serviceCluster">
315        <xsl:value-of select="displayItem[@name='description']" disable-output-escaping="yes"/>
316        <xsl:apply-templates select="serviceList">
317            <xsl:with-param name="collName" select="$collName"/>
318        </xsl:apply-templates>
319    </xsl:template>
320
321
322    <xsl:template match="serviceList">
323        <xsl:param name="collName"/>
324        <h3><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.services')"/></h3>
325        <p>
326            <xsl:choose>
327                <xsl:when test="service">
328                    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.servicehelp')"/>
329                </xsl:when>
330                <xsl:otherwise>
331                    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.noservices')"/>
332                </xsl:otherwise>
333            </xsl:choose>
334        </p>
335
336        <xsl:if test="service">
337            <div id="servicelist">
338                <xsl:for-each select="service">
339                    <xsl:sort select="position()" order="descending" data-type="number"/>
340
341                    <xsl:variable name="action"><xsl:choose>
342                        <xsl:when test="@type='query'">q</xsl:when>
343                        <xsl:when test="@type='browse'">b</xsl:when>
344                        <xsl:when test="@type='process'">pr</xsl:when>
345                        <xsl:when test="@type='applet'">a</xsl:when>
346                        <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
347                    </xsl:choose></xsl:variable>
348                    <xsl:if test="$action != 'DO_NOT_DISPLAY'">
349                        <div class="paramLabel"><a href="{$library_name}?a={$action}&amp;rt=d&amp;s={@name}&amp;c={$collName}"><xsl:value-of select="displayItem[@name='name']"/></a></div>
350                        <div class="paramLabel"><xsl:value-of select="displayItem[@name='description']"/></div>
351                        <br class="clear"/>
352                    </xsl:if>
353                </xsl:for-each>
354            </div>
355        </xsl:if>
356    </xsl:template>
357
358
359
360<!-- classifier page ............................................................................ -->
361
362
363<xsl:template name="navigationTab">
364
365    <xsl:variable name="isCurrent" select="@name=/page/pageResponse/service/@name"/>
366
367    <xsl:variable name="action"><xsl:choose>
368        <xsl:when test="@type='query'">q</xsl:when>
369        <xsl:when test="@type='browse'">b</xsl:when>
370        <xsl:when test="@type='process'">pr</xsl:when>
371        <xsl:when test="@type='applet'">a</xsl:when>
372        <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
373    </xsl:choose></xsl:variable>
374
375    <xsl:if test="$action!='DO_NOT_DISPLAY'">
376        <li>
377            <xsl:if test="$isCurrent">
378                <xsl:attribute name="class">current</xsl:attribute>
379            </xsl:if>
380            <a>
381                <xsl:if test="displayItem[@name='description']">
382                    <xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute>
383                </xsl:if>
384                <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=<xsl:value-of select="$action"/>&amp;rt=d&amp;s=<xsl:value-of select="@name"/>&amp;c=<xsl:value-of select="/page/pageResponse/collection/@name"/></xsl:attribute>
385                <xsl:value-of select="displayItem[@name='name']"/>
386            </a>
387        </li>
388    </xsl:if>
389
390</xsl:template>
391
392
393<xsl:template name="classifierLink">
394    <xsl:if test="@name=/page/pageResponse/classifier/@name"><xsl:attribute name="class">current</xsl:attribute></xsl:if>
395    <a href="{$library_name}?a=b&amp;rt=r&amp;s={/page/pageResponse/service/@name}&amp;c={/page/pageResponse/collection/@name}&amp;cl={@name}">
396        <xsl:value-of select="displayItem[@name='description']"/>
397    </a>
398</xsl:template>
399
400<!-- query page ............................................................................ -->
401
402    <xsl:template name="indexName">
403        <xsl:value-of select="/page/pageResponse/service/displayItem[@name='name']"/>
404    </xsl:template>
405
406<xsl:template name="queryPageCollectionName">
407    <xsl:choose><xsl:when test="/page/pageResponse/collection"><gslib:aboutCollectionPageTitle/></xsl:when><xsl:otherwise>Cross-Collection</xsl:otherwise></xsl:choose>
408</xsl:template>
409
410
411
412
413
414<!--
415BERRY BASKET TEMPLATES
416These get used on many different pages to add the
417berry basket function to the site
418-->
419
420<!-- put the drag&drop berry basket on the page -->
421<xsl:template name="berryBasket">
422    <xsl:if test="$berryBasketOn">
423        <div id="berrybasket" class="hide">
424            <span>Berry Basket</span>
425            <span id="berryBasketExpandCollapseLinks" style="display: none;">
426                <a id="berryBasketExpandLink" href="javascript:showBasket()">Expand</a>
427                <a id="berryBasketCollapseLink" style="display: none;" href="javascript:hideBasket()">Collapse</a>
428            </span>
429            <div id="baskethandle"><span><xsl:text> </xsl:text></span></div>
430            <div id ="berries"><span><xsl:text> </xsl:text></span></div>
431        </div>
432    </xsl:if>
433</xsl:template>
434
435<!-- include the required javascript and css for berry baskets -->
436<xsl:template name="berryBasketHeadTags">
437    <script type="text/javascript" src="interfaces/{$interface_name}/js/YAHOO.js"><xsl:text> </xsl:text></script>
438    <script type="text/javascript" src="interfaces/{$interface_name}/js/event.js"><xsl:text> </xsl:text></script>
439    <script type="text/javascript" src="interfaces/{$interface_name}/js/connection.js"><xsl:text> </xsl:text></script>
440    <script type="text/javascript" src="interfaces/{$interface_name}/js/dom.js"><xsl:text> </xsl:text></script>
441    <script type="text/javascript" src="interfaces/{$interface_name}/js/dragdrop.js"><xsl:text> </xsl:text></script>
442    <script type="text/javascript" src="interfaces/{$interface_name}/js/ygDDPlayer.js"><xsl:text> </xsl:text></script>
443    <script type="text/javascript" src="interfaces/{$interface_name}/js/ygDDOnTop.js"><xsl:text> </xsl:text></script>
444    <script type="text/javascript" src="interfaces/{$interface_name}/js/berrybasket.js"><xsl:text> </xsl:text></script>
445    <link rel="stylesheet" href="interfaces/{$interface_name}/style/berry.css" type="text/css"/>
446</xsl:template>
447
448<!--
449create a little berry which can be drag&dropped onto the berry basket
450used on classifier and search result pages
451-->
452<xsl:template name="documentBerryForClassifierOrSearchPage">
453    <xsl:if test="$berryBasketOn">
454        <img class="pick" src="interfaces/{$interface_name}/images/berry.png" alt="in basket" width="15" height="15" border="0">
455            <xsl:attribute name="id"><xsl:value-of select="/page/pageResponse/collection/@name"/>:<xsl:value-of select="@nodeID"/></xsl:attribute>
456        </img>
457    </xsl:if>
458</xsl:template>
459
460<!--
461create little berrys which can be drag&dropped onto the berry basket
462used on the document page
463-->
464<xsl:template name="documentBerryForDocumentPage">
465    <xsl:variable name="selectedNode"><xsl:value-of select="/page/pageResponse/document/@selectedNode"/></xsl:variable>
466    <xsl:variable name="rootNode"><xsl:value-of select="/page/pageResponse/document/documentNode[@nodeType='root']/@nodeID"/></xsl:variable>
467
468    <xsl:if test="$berryBasketOn"> 
469        <div id="documentberries">
470            <img class='pick' id="{/page/pageResponse/collection/@name}:{$rootNode}" src="interfaces/{$interface_name}/images/berry.png" alt="in basket" width="15" height="15" border="0"/>
471            <span id="{/page/pageResponse/collection/@name}:{$rootNode}:root" class="documentberry">the whole document</span>
472
473            <xsl:if test="$selectedNode != $rootNode">
474                <img class='pick'  id="{/page/pageResponse/collection/@name}:{$selectedNode}" src="interfaces/{$interface_name}/images/berry.png" alt="in basket" width="15" height="15" border="0"/>
475                <span id="{/page/pageResponse/collection/@name}:{$selectedNode}:section" class="documentberry">the current section</span>
476            </xsl:if>
477        </div>
478    </xsl:if>
479</xsl:template>
480
481
482<!-- document page -->
483<xsl:template name="documentTitle">
484    <xsl:value-of select="/page/pageResponse/document/documentNode/metadataList/metadata[@name='Title']"/>
485</xsl:template>
486
487
488<xsl:template name="coverImage">
489    <img><xsl:attribute name='src'><xsl:value-of select="/page/pageResponse/collection/metadataList/metadata[@name='httpPath']"/>/index/assoc/<xsl:value-of select="metadataList/metadata[@name='archivedir']"/>/cover.jpg</xsl:attribute></img>
490</xsl:template>
491
492<xsl:template name="previousNextButtons">
493    <!-- prev -->
494    <a>
495        <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&amp;d=<xsl:value-of select="@selectedNode"/>.pp&amp;sib=1&amp;p.s=<xsl:value-of select='/page/pageRequest/paramList/param[@name="p.s"]/@value'/>&amp;p.sa=<xsl:value-of select='/page/pageRequest/paramList/param[@name="p.sa"]/@value'/>&amp;p.a=<xsl:value-of select='/page/pageRequest/paramList/param[@name="p.a"]/@value'/></xsl:attribute>
496        <img class="lessarrow" src="interfaces/{$interface_name}/images/previous.png"/>
497    </a>
498
499    <!-- next -->
500    <a>
501        <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&amp;d=<xsl:value-of select="@selectedNode"/>.np&amp;sib=1&amp;p.s=<xsl:value-of select='/page/pageRequest/paramList/param[@name="p.s"]/@value'/>&amp;p.sa=<xsl:value-of select='/page/pageRequest/paramList/param[@name="p.sa"]/@value'/>&amp;p.a=<xsl:value-of select='/page/pageRequest/paramList/param[@name="p.a"]/@value'/></xsl:attribute>
502        <img class="morearrow" src="interfaces/{$interface_name}/images/next.png"/>
503    </a>
504
505</xsl:template>
506
507
508</xsl:stylesheet>
Note: See TracBrowser for help on using the browser.