source: main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl@ 26502

Last change on this file since 26502 was 26502, checked in by davidb, 9 years ago

Section added to the <head>...</head> that lets a collection designer define what <meta .../> tags should be placed in this section of the document view. Presenting this information here improves what web crawlers make of Greenstone3 sites.

  • Property svn:executable set to *
File size: 22.4 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 extension-element-prefixes="java util"
9 exclude-result-prefixes="java util gsf">
10
11 <xsl:include href="../query-common.xsl"/>
12 <xsl:include href="../javascript-global-setup.xsl"/>
13
14 <!-- If the c parameter is empty then use the p.c parameter for the collection name-->
15 <xsl:variable name="collNameChecked">
16 <xsl:choose>
17 <xsl:when test="$collName = '' and /page/pageRequest/paramList/param[@name='p.c']/@value">
18 <xsl:value-of select="/page/pageRequest/paramList/param[@name='p.c']/@value"/>
19 </xsl:when>
20 <xsl:otherwise>
21 <xsl:value-of select="$collName"/>
22 </xsl:otherwise>
23 </xsl:choose>
24 </xsl:variable>
25
26 <!-- Creates a header for the html page -->
27 <xsl:template name="create-html-header">
28 <base>
29 <xsl:attribute name="href">
30 <xsl:choose>
31 <xsl:when test="/page/pageResponse/metadataList/metadata[@name = 'siteURL']">
32 <xsl:value-of select="/page/pageResponse/metadataList/metadata[@name = 'siteURL']"/>
33 </xsl:when>
34 <xsl:when test="/page/pageRequest/@baseURL">
35 <xsl:value-of select="/page/pageRequest/@baseURL"/>
36 </xsl:when>
37 </xsl:choose>
38 </xsl:attribute>
39 </base>
40 <xsl:comment>[if lte IE 6]&gt;&lt;/base&gt;&lt;![endif]</xsl:comment>
41
42 <title><xsl:call-template name="pageTitle"/> :: <xsl:call-template name="siteName"/></title>
43
44 <xsl:if test="/page/pageRequest/@action ='d'">
45
46 <xsl:variable name="myMetadataHeader" select="/page/pageResponse/format/gsf:headMetaTags/gsf:metadata"/>
47 <xsl:for-each select="$myMetadataHeader">
48 <xsl:variable name="metaname" select="@name"/>
49
50 <xsl:variable name="metavals"
51 select="/page/pageResponse/document/metadataList/metadata[@name = $metaname]|/page/pageResponse/document/documentNode/metadataList/metadata[@name = $metaname]"/>
52 <xsl:for-each select="$metavals">
53 <META NAME="{$metaname}" CONTENT="{.}"/>
54 </xsl:for-each>
55 </xsl:for-each>
56
57 </xsl:if>
58
59 <xsl:choose>
60 <xsl:when test="/page/pageResponse/interfaceOptions/option[@name = 'cssTheme']/@value">
61 <!-- Get the theme from the interfaceConfig.xml file -->
62 <link rel="stylesheet" href="{/page/pageResponse/interfaceOptions/option[@name = 'cssTheme']/@value}" type="text/css"/>
63 </xsl:when>
64 <xsl:otherwise>
65 <link rel="stylesheet" href="interfaces/{$interface_name}/style/themes/main/jquery-ui-1.8.16.custom.css" type="text/css"/>
66 </xsl:otherwise>
67 </xsl:choose>
68 <link rel="stylesheet" href="interfaces/{$interface_name}/style/core.css" type="text/css"/>
69 <link rel="shortcut icon" href="interfaces/{$interface_name}/images/favicon.ico"/>
70
71 <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery.min.js"><xsl:text> </xsl:text></script>
72 <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery-ui.min.js"><xsl:text> </xsl:text></script>
73 <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery.themeswitcher.min.js"><xsl:text> </xsl:text></script>
74 <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery.blockUI.js"><xsl:text> </xsl:text></script>
75
76 <script type="text/javascript" src="interfaces/{$interface_name}/js/direct-edit.js"><xsl:text> </xsl:text></script>
77 <script type="text/javascript" src="interfaces/{$interface_name}/js/zoomer.js"><xsl:text> </xsl:text></script>
78
79 <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='mapEnabled']/@value = 'true'">
80 <xsl:call-template name="map-scripts"/>
81 </xsl:if>
82
83 <xsl:if test="/page/pageRequest/userInformation and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))">
84 <xsl:call-template name="init-direct-edit"/>
85 </xsl:if>
86
87 <script type="text/javascript" src="interfaces/{$interface_name}/js/debug_scripts.js"><xsl:text> </xsl:text></script>
88
89 <xsl:call-template name="setup-gs-variable"/>
90
91 <xsl:call-template name="additionalHeaderContent"/>
92 </xsl:template>
93
94 <xsl:template name="additionalHeaderContent">
95 <!-- This template should be overridden in the collectionConfig.xml file if you want to add extra header content -->
96 </xsl:template>
97
98 <xsl:template name="init-direct-edit">
99 <script type="text/javascript">
100 <xsl:text disable-output-escaping="yes">
101 de.onready(function()
102 {
103 try
104 {
105 de.init();
106 }
107 catch (err)
108 {
109 alert("Seaweed failed to initialise: " + err.message);
110 }
111 });
112 </xsl:text>
113 </script>
114 </xsl:template>
115
116 <!-- ***** HEADER LAYOUT TEMPLATE ***** -->
117 <xsl:template name="create-banner">
118 <div id="gs_banner" class="ui-widget-header ui-corner-bottom">
119 <div id="titlesearchcontainer">
120 <xsl:call-template name="page-title-area"/>
121 <xsl:call-template name="quick-search-area"/>
122 <div style="clear:both;"><xsl:text> </xsl:text></div>
123 </div>
124 <xsl:call-template name="browsing-tabs"/>
125 </div>
126 </xsl:template>
127
128 <!-- ***** BROWSING TABS ***** -->
129 <xsl:template name="browsing-tabs">
130 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service">
131 <ul id="gs-nav">
132 <!-- If this collection has a ClassifierBrowse service then add a tab for each classifier-->
133 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='browse' and @name='ClassifierBrowse']">
134 <!-- Loop through each classifier -->
135 <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='ClassifierBrowse']/classifierList/classifier">
136 <li>
137 <xsl:choose>
138 <!-- If this tab is selected then colour it differently -->
139 <xsl:when test="util:contains(/page/pageRequest/paramList/param[@name = 'cl' and /page/pageRequest/@action = 'b']/@value, @name)">
140 <xsl:attribute name='class'>ui-state-default ui-corner-top ui-tabs-selected ui-state-active</xsl:attribute>
141 </xsl:when>
142 <xsl:otherwise>
143 <xsl:attribute name='class'>ui-state-default ui-corner-top</xsl:attribute>
144 </xsl:otherwise>
145 </xsl:choose>
146
147 <a>
148 <!-- Add a title element to the <a> tag if a description exists for this classifier -->
149 <xsl:if test="displayItem[@name='description']">
150 <xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute>
151 </xsl:if>
152
153 <!-- Add the href element to the <a> tag -->
154 <xsl:choose>
155 <xsl:when test="@name">
156 <xsl:attribute name="href"><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="/page/pageResponse/collection[@name=$collNameChecked]/@name"/>/browse/<xsl:value-of select="@name"/></xsl:attribute>
157 </xsl:when>
158 <xsl:otherwise>
159 <xsl:attribute name="href"><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="/page/pageResponse/collection[@name=$collNameChecked]/@name"/>/browse/1</xsl:attribute>
160 </xsl:otherwise>
161 </xsl:choose>
162
163 <!-- Add the actual text of the <a> tag -->
164 <xsl:value-of select="displayItem[@name='name']"/>
165 </a>
166 </li>
167 </xsl:for-each>
168 </xsl:if>
169
170 <!-- PhindApplet. Need something similar for the Collage applet too, probably -->
171 <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='PhindApplet']">
172 <li>
173 <xsl:choose>
174 <!-- If this tab is selected then colour it differently -->
175 <xsl:when test="/page/pageRequest[@action='a']">
176 <xsl:attribute name='class'>ui-state-default ui-corner-top ui-tabs-selected ui-state-active</xsl:attribute>
177 </xsl:when>
178 <xsl:otherwise>
179 <xsl:attribute name='class'>ui-state-default ui-corner-top</xsl:attribute>
180 </xsl:otherwise>
181 </xsl:choose>
182
183 <a>
184 <xsl:if test="displayItem[@name='description']">
185 <xsl:attribute name="title">
186 <xsl:value-of select="displayItem[@name='description']"/>
187 </xsl:attribute>
188 </xsl:if>
189 <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=a&amp;rt=d&amp;s=<xsl:value-of select="@name"/>&amp;c=<xsl:value-of select="/page/pageResponse/collection/@name"/></xsl:attribute>
190 <xsl:value-of select="displayItem[@name='name']"/>
191 </a>
192 </li>
193 </xsl:for-each>
194
195 <!-- all other services -->
196 <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[not(@type='query') and not(@type='browse') and not (@name='PhindApplet')]">
197 <xsl:call-template name="navigationTab"/>
198 </xsl:for-each>
199 </ul>
200 <div style="clear:both;"><xsl:text> </xsl:text></div>
201 </xsl:if>
202 </xsl:template>
203
204 <!-- ***** HOME HELP PREFERENCES LOGIN ***** -->
205 <xsl:template name="home-help-preferences">
206 <ul id="bannerLinks">
207 <!-- preferences -->
208 <li class="ui-state-default ui-corner-all">
209 <a href="{$library_name}/collection/{$collNameChecked}/page/pref">
210 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute>
211 <ul>
212 <li><span><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></span></li>
213 <li><span class="ui-icon ui-icon-wrench"><xsl:text> </xsl:text></span></li>
214 </ul>
215 </a>
216 </li>
217
218 <!-- help -->
219 <li class="ui-state-default ui-corner-all">
220 <a href="{$library_name}/collection/{$collNameChecked}/page/help">
221 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
222 <ul>
223 <li><span><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></span></li>
224 <li><span class="ui-icon ui-icon-help"><xsl:text> </xsl:text></span></li>
225 </ul>
226 </a>
227 </li>
228
229 <!-- login/logout -->
230 <li class="ui-state-default ui-corner-all" id="userMenuButton">
231 <xsl:choose>
232 <xsl:when test="/page/pageRequest/userInformation/@username">
233 <a>
234 <xsl:attribute name="href">javascript:toggleUserMenu();</xsl:attribute>
235 <script type="text/javascript">
236 <xsl:text disable-output-escaping="yes">
237 function toggleUserMenu()
238 {
239 var button = $("#userMenuButton");
240 var menu;
241
242 if(button.data("userMenu"))
243 {
244 menu = button.data("userMenu");
245 if(menu.css("display") == "block")
246 {
247 menu.hide();
248 }
249 else
250 {
251 menu.show();
252 }
253 }
254 else
255 {
256 menu = $("&lt;UL&gt;")
257 .css("position", "absolute")
258 .css("display", "block")
259 .css("z-index", "100")
260 .css("list-style", "none outside none")
261 .css("margin-left", "0px")
262 .css("padding", "0px")
263 .css("font-size", "90%");
264
265 menu.attr("id", "userMenu");
266
267 button.data("userMenu", menu);
268
269 var settingsLink = $("&lt;a&gt;")
270 .attr("href", gs.xsltParams.library_name + "/admin/AccountSettings?s1.username=</xsl:text><xsl:value-of select="/page/pageRequest/userInformation/@username"/><xsl:text disable-output-escaping="yes">");
271 var settingsButton = $("&lt;LI&gt;")
272 .css("padding", "3px")
273 .html("Account settings")
274 .addClass("ui-state-default");
275 settingsLink.append(settingsButton);
276
277 var url = document.URL;
278 var hasQueryString = (url.indexOf("?") != -1);
279 var hashIndex = url.indexOf("#");
280
281 var hashPart;
282 if(hashIndex != -1)
283 {
284 hashPart = url.substring(hashIndex);
285 url = url.substring(0, hashIndex);
286 }
287
288 var logoutLink = $("&lt;a&gt;")
289 .attr("href", url + (hasQueryString ? "&amp;" : "?") + "logout=" + (hashPart ? hashPart : ""));
290 var logoutButton = $("&lt;LI&gt;")
291 .css("padding", "3px")
292 .html("Logout")
293 .addClass("ui-state-default");
294 logoutLink.append(logoutButton);
295
296 menu.append(settingsLink);
297 menu.append(logoutLink);
298
299 var buttonLeft = button.offset().left;
300 var buttonTop = button.offset().top;
301 var buttonHeight = button.height();
302
303 menu.offset({top: buttonTop + buttonHeight + 4, left: buttonLeft});
304 $("#topArea").append(menu);
305 }
306 }
307 </xsl:text>
308 </script>
309 <ul>
310 <li><span><xsl:value-of select="/page/pageRequest/userInformation/@username"/></span></li>
311 <li><span class="ui-icon ui-icon-unlocked"><xsl:text> </xsl:text></span></li>
312 </ul>
313 </a>
314 </xsl:when>
315 <xsl:otherwise>
316 <a>
317 <xsl:attribute name="href">
318 <xsl:value-of select="$library_name"/>
319 <xsl:text>?a=p&amp;sa=login&amp;redirectURL=</xsl:text>
320 <xsl:value-of select="$library_name"/>
321 <xsl:text>%3F</xsl:text>
322 <xsl:if test="/page/pageRequest/@action">
323 <xsl:text>a=</xsl:text>
324 <xsl:value-of select="/page/pageRequest/@action"/>
325 </xsl:if>
326 <xsl:if test="/page/pageRequest/@subaction">
327 <xsl:text>%26sa=</xsl:text>
328 <xsl:value-of select="/page/pageRequest/@subaction"/>
329 </xsl:if>
330 <xsl:for-each select="/page/pageRequest/paramList/param">
331 <xsl:if test="@name != 'password' and @name != 's1.password' and @name != 's1.newPassword' and @name != 's1.oldPassword'">
332 <xsl:text>%26</xsl:text>
333 <xsl:value-of select="@name"/>
334 <xsl:text>=</xsl:text>
335 <xsl:value-of select="@value"/>
336 </xsl:if>
337 </xsl:for-each>
338 </xsl:attribute>
339 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_tip')"/></xsl:attribute>
340 <ul>
341 <li><span><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_b')"/></span></li>
342 <li><span class="ui-icon ui-icon-locked"><xsl:text> </xsl:text></span></li>
343 </ul>
344 </a>
345 </xsl:otherwise>
346 </xsl:choose>
347 </li>
348 <!-- debuginfo (doesn't use class="ui-state-error" since the text is not legible due to inherited text-colour) -->
349 <xsl:if test="/page/pageRequest/paramList/param[(@name='debug') and (@value='on' or @value='true' or @value='1')]">
350 <li class="ui-state-default ui-corner-all">
351 <a href="{$library_name}/collection/{$collNameChecked}/page/debug">
352 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo_tip')"/></xsl:attribute>
353 <ul>
354 <li><span><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo_b')"/></span></li>
355 <li><span class="ui-icon ui-icon-info"><xsl:text> </xsl:text></span></li>
356 </ul>
357 </a>
358 </li>
359 </xsl:if>
360 </ul>
361 </xsl:template>
362
363 <!-- ***** PAGE TITLE ***** -->
364 <xsl:template name="page-title-area">
365 <xsl:variable name="pageTitleVar"><xsl:call-template name="pageTitle"/></xsl:variable>
366 <div id="titlearea">
367 <h2>
368 <!-- Resize the title based on how long it is (There's probably a better way to do this) -->
369 <xsl:attribute name="style">
370 <xsl:choose>
371 <xsl:when test="string-length($pageTitleVar) &lt; 20">
372 <xsl:text>font-size: 1.5em;</xsl:text>
373 </xsl:when>
374 <xsl:when test="string-length($pageTitleVar) &lt; 30">
375 <xsl:text>font-size: 1.4em;</xsl:text>
376 </xsl:when>
377 <xsl:when test="string-length($pageTitleVar) &lt; 40">
378 <xsl:text>font-size: 1.3em;</xsl:text>
379 </xsl:when>
380 <xsl:when test="string-length($pageTitleVar) &lt; 50">
381 <xsl:text>font-size: 1.2em;</xsl:text>
382 </xsl:when>
383 <xsl:when test="string-length($pageTitleVar) &lt; 60">
384 <xsl:text>font-size: 1.1em;</xsl:text>
385 </xsl:when>
386 <xsl:when test="string-length($pageTitleVar) &lt; 70">
387 <xsl:text>font-size: 1em;</xsl:text>
388 </xsl:when>
389 <xsl:when test="string-length($pageTitleVar) &lt; 80">
390 <xsl:text>font-size: 0.9em;</xsl:text>
391 </xsl:when>
392 <xsl:when test="string-length($pageTitleVar) &lt; 90">
393 <xsl:text>font-size: 0.8em;</xsl:text>
394 </xsl:when>
395 <xsl:otherwise>
396 <xsl:text>font-size: 0.7em;</xsl:text>
397 </xsl:otherwise>
398 </xsl:choose>
399 </xsl:attribute>
400 <!--<xsl:value-of select="string-length($pageTitleVar)" />-->
401 <xsl:value-of select="$pageTitleVar" />
402 </h2><xsl:text> </xsl:text>
403 </div>
404 </xsl:template>
405
406 <!-- ***** QUICK SEARCH AREA ***** -->
407 <!-- Search form should only appear if there's a search (query) service AND it has an index.
408 By default, all collections end up with some query service (default is MGPP) even when they have
409 no search indexes, which is why the extra test for the presence of an index/fq-something is necessary. -->
410 <xsl:template name="quick-search-area">
411 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='query']">
412 <xsl:variable name="subaction" select="/page/pageRequest/@subaction"/>
413 <div id="quicksearcharea">
414 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
415 <form action="{$library_name}/collection/{$collNameChecked}/search/TextQuery">
416 <!-- This parameter says that we have come from the quick search area -->
417 <input type="hidden" name="qs" value="1"/>
418 <input type="hidden" name="rt" value="rd"/>
419 <input type="hidden" name="s1.level">
420 <xsl:attribute name="value">
421 <xsl:choose>
422 <xsl:when test="/page/pageRequest/paramList/param[@name = 's1.level']">
423 <xsl:value-of select="/page/pageRequest/paramList/param[@name = 's1.level']/@value"/>
424 </xsl:when>
425 <xsl:otherwise>
426 <xsl:value-of select="/page/pageResponse/collection/serviceList/service[@name='TextQuery']/paramList/param[@name = 'level']/@default"/>
427 </xsl:otherwise>
428 </xsl:choose>
429 </xsl:attribute>
430 </input>
431 <xsl:choose>
432 <xsl:when test="/page/pageResponse/service[@name = 'TextQuery']/paramList/param[@name = 'startPage']">
433 <input type="hidden" name="s1.startPage" value="1"/>
434 </xsl:when>
435 <xsl:otherwise>
436 <input type="hidden" name="startPage" value="1"/>
437 </xsl:otherwise>
438 </xsl:choose>
439 <xsl:if test="not(/page/pageRequest/paramList/param[@name = 's1.hitsPerPage'])">
440 <input type="hidden" name="s1.hitsPerPage" value="20"/>
441 </xsl:if>
442 <xsl:if test="not(/page/pageRequest/paramList/param[@name = 's1.maxDocs'])">
443 <input type="hidden" name="s1.maxDocs" value="100"/>
444 </xsl:if>
445 <!-- The query text box -->
446 <span class="querybox">
447 <xsl:variable name="qs">
448 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='query']" mode="calculate-default"/>
449 </xsl:variable>
450 <nobr>
451 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='query']">
452 <xsl:with-param name="default" select="java:org.greenstone.gsdl3.util.XSLTUtil.tidyWhitespace($qs, /page/@lang)"/>
453 </xsl:apply-templates>
454 </nobr>
455 </span>
456 <!-- The index selection list -->
457 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']/@type = 'enum_single'">
458 <span class="textselect">
459 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']">
460 <xsl:with-param name="default">
461 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']" mode="calculate-default"/>
462 </xsl:with-param>
463 <xsl:with-param name="hideSingle">true</xsl:with-param>
464 </xsl:apply-templates>
465 </span>
466 </xsl:if>
467 <!-- The submit button (for TextQuery) -->
468 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
469 <input type="submit" id="quickSearchSubmitButton">
470 <xsl:attribute name="value">
471 <xsl:value-of select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/displayItem[@name='submit']"/>
472 </xsl:attribute>
473 </input>
474 <br/>
475 </xsl:if>
476 </form>
477 </xsl:if>
478 <!-- The list of other search types -->
479 <ul>
480 <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='query']">
481 <li class="ui-state-default ui-corner-all">
482 <a>
483 <xsl:attribute name="href">
484 <xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collNameChecked"/>/search/<xsl:value-of select="@name"/>
485 </xsl:attribute>
486 <xsl:value-of select="displayItem[@name='name']"/>
487 </a>
488 </li>
489 </xsl:for-each>
490 </ul>
491 </div>
492 </xsl:if>
493 </xsl:template>
494
495 <xsl:template name="map-scripts">
496 <meta content="initial-scale=1.0, user-scalable=no" name="viewport"/>
497 <script src="http://maps.googleapis.com/maps/api/js?sensor=false" type="text/javascript"><xsl:text> </xsl:text></script>
498 <script src="interfaces/{$interface_name}/js/map-scripts.js" type="text/javascript"><xsl:text> </xsl:text></script>
499 <script type="text/javascript">$(window).load(initializeMapScripts);</script>
500 </xsl:template>
501</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.