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

Revision 20465, 22.2 KB (checked in by oranfry, 11 years ago)

work on the new interface

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