[26461] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[23989] | 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"
|
---|
[25001] | 7 | xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
|
---|
[23989] | 8 | extension-element-prefixes="java util"
|
---|
[25001] | 9 | exclude-result-prefixes="java util gsf">
|
---|
[23989] | 10 |
|
---|
| 11 | <xsl:include href="../query-common.xsl"/>
|
---|
[24458] | 12 | <xsl:include href="../javascript-global-setup.xsl"/>
|
---|
[23989] | 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 |
|
---|
[24149] | 26 | <!-- Creates a header for the html page -->
|
---|
[23989] | 27 | <xsl:template name="create-html-header">
|
---|
[25436] | 28 | <base>
|
---|
| 29 | <xsl:attribute name="href">
|
---|
| 30 | <xsl:choose>
|
---|
[26149] | 31 | <xsl:when test="/page/pageResponse/metadataList/metadata[@name = 'siteURL']">
|
---|
| 32 | <xsl:value-of select="/page/pageResponse/metadataList/metadata[@name = 'siteURL']"/>
|
---|
[25436] | 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>
|
---|
[25360] | 40 | <xsl:comment>[if lte IE 6]></base><![endif]</xsl:comment>
|
---|
[25278] | 41 |
|
---|
[23989] | 42 | <title><xsl:call-template name="pageTitle"/> :: <xsl:call-template name="siteName"/></title>
|
---|
[25123] | 43 |
|
---|
[26502] | 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 |
|
---|
[25123] | 59 | <xsl:choose>
|
---|
| 60 | <xsl:when test="/page/pageResponse/interfaceOptions/option[@name = 'cssTheme']/@value">
|
---|
[25142] | 61 | <!-- Get the theme from the interfaceConfig.xml file -->
|
---|
[25123] | 62 | <link rel="stylesheet" href="{/page/pageResponse/interfaceOptions/option[@name = 'cssTheme']/@value}" type="text/css"/>
|
---|
| 63 | </xsl:when>
|
---|
| 64 | <xsl:otherwise>
|
---|
[27083] | 65 | <link rel="stylesheet" href="interfaces/{$interface_name}/style/themes/main/jquery-ui-1.8.16.custom.css" type="text/css"/>
|
---|
[25123] | 66 | </xsl:otherwise>
|
---|
| 67 | </xsl:choose>
|
---|
[23989] | 68 | <link rel="stylesheet" href="interfaces/{$interface_name}/style/core.css" type="text/css"/>
|
---|
[26145] | 69 | <link rel="shortcut icon" href="interfaces/{$interface_name}/images/favicon.ico"/>
|
---|
[24458] | 70 |
|
---|
[25759] | 71 | <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery.min.js"><xsl:text> </xsl:text></script>
|
---|
[27171] | 72 | <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery-ui-1.10.2.custom/js/jquery-ui-1.10.2.custom.min.js"><xsl:text> </xsl:text></script>
|
---|
[26305] | 73 | <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery.blockUI.js"><xsl:text> </xsl:text></script>
|
---|
[26614] | 74 | <script type="text/javascript" src="interfaces/{$interface_name}/js/ace/ace.js"><xsl:text> </xsl:text></script>
|
---|
[25001] | 75 |
|
---|
[25177] | 76 | <script type="text/javascript" src="interfaces/{$interface_name}/js/zoomer.js"><xsl:text> </xsl:text></script>
|
---|
[25686] | 77 |
|
---|
[25001] | 78 | <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='mapEnabled']/@value = 'true'">
|
---|
[26871] | 79 | <xsl:call-template name="map-scripts"/>
|
---|
[25001] | 80 | </xsl:if>
|
---|
[25142] | 81 |
|
---|
[26871] | 82 | <xsl:if test="/page/pageResponse/format/gsf:option[@name='mapEnabledOpenLayers']/@value = 'true'">
|
---|
| 83 | <xsl:call-template name="openlayers-map-scripts"/>
|
---|
| 84 | </xsl:if>
|
---|
| 85 |
|
---|
| 86 |
|
---|
| 87 | <xsl:if test="/page/pageResponse/format/gsf:option[@name='panoramaViewerEnabled']/@value = 'true'">
|
---|
| 88 | <xsl:call-template name="panoramaViewer-scripts"/>
|
---|
| 89 | </xsl:if>
|
---|
| 90 |
|
---|
[28231] | 91 | <xsl:if test="/page/pageRequest/userInformation and /page/pageRequest/userInformation/@editEnabled = 'true' 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))">
|
---|
[27067] | 92 | <xsl:if test="/page/pageRequest/paramList/param[(@name='docEdit') and (@value='on' or @value='true' or @value='1')]">
|
---|
[29861] | 93 | <script type="text/javascript" src="interfaces/{$interface_name}/js/ckeditor/ckeditor.js" defer="true"><xsl:text> </xsl:text></script>
|
---|
| 94 | <!-- <xsl:call-template name="init-direct-edit"/> -->
|
---|
[27067] | 95 | </xsl:if>
|
---|
| 96 | <script type="text/javascript" src="interfaces/{$interface_name}/js/debug_scripts.js"><xsl:text> </xsl:text></script>
|
---|
[26936] | 97 | <script type="text/javascript" src="interfaces/{$interface_name}/js/visual-xml-editor.js"><xsl:text> </xsl:text></script>
|
---|
[25177] | 98 | </xsl:if>
|
---|
[26461] | 99 |
|
---|
[24458] | 100 | <xsl:call-template name="setup-gs-variable"/>
|
---|
[30807] | 101 | <xsl:if test="/page/pageRequest/@action ='p' and /page/pageRequest/@subaction='pref'">
|
---|
| 102 | <script type="text/javascript">
|
---|
| 103 | <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceStringsAsJavascript($interface_name, /page/@lang, 'pref')"/>
|
---|
| 104 | </script>
|
---|
| 105 | <script type="text/javascript" src="interfaces/{$interface_name}/js/jquery.themeswitcher.min.js"><xsl:text> </xsl:text></script>
|
---|
| 106 | </xsl:if>
|
---|
[26503] | 107 | <xsl:call-template name="define-js-macro-variables"/>
|
---|
[26502] | 108 |
|
---|
[24781] | 109 | <xsl:call-template name="additionalHeaderContent"/>
|
---|
[23989] | 110 | </xsl:template>
|
---|
[24781] | 111 |
|
---|
[29169] | 112 | <!-- This template allows for extra header content to be added by interface, site and collection. -->
|
---|
[24781] | 113 | <xsl:template name="additionalHeaderContent">
|
---|
[29169] | 114 | <xsl:call-template name="additionalHeaderContent-interface"/>
|
---|
| 115 | <xsl:call-template name="additionalHeaderContent-site"/>
|
---|
| 116 | <xsl:call-template name="additionalHeaderContent-collection"/>
|
---|
[24781] | 117 | </xsl:template>
|
---|
[29169] | 118 | <!-- This template should be overridden in header.xsl of a new interface file if you want to add extra header content -->
|
---|
| 119 | <xsl:template name="additionalHeaderContent-interface">
|
---|
| 120 | </xsl:template>
|
---|
| 121 | <!-- This template should be overridden in the header.xsl file in a site's transform directory if you want to add site specific headers -->
|
---|
| 122 | <xsl:template name="additionalHeaderContent-site">
|
---|
| 123 | </xsl:template>
|
---|
| 124 | <!-- This template should be overridden in the collectionConfig.xml file if you want to add extra header content -->
|
---|
| 125 | <xsl:template name="additionalHeaderContent-collection">
|
---|
| 126 | </xsl:template>
|
---|
[30428] | 127 |
|
---|
[25142] | 128 | <xsl:template name="init-direct-edit">
|
---|
[30478] | 129 | <!-- might be worth moving loading the JS file to earlier, to give time to load -->
|
---|
| 130 | <script type="text/javascript" src="interfaces/{$interface_name}/js/direct-edit.js"><xsl:text> </xsl:text></script>
|
---|
[24653] | 131 | <script type="text/javascript">
|
---|
[30478] | 132 | <xsl:text disable-output-escaping="yes">
|
---|
| 133 | $(document).ready(function() {
|
---|
[25142] | 134 | de.onready(function()
|
---|
| 135 | {
|
---|
[26461] | 136 | try
|
---|
[25142] | 137 | {
|
---|
[24653] | 138 | de.init();
|
---|
| 139 | }
|
---|
[25142] | 140 | catch (err)
|
---|
| 141 | {
|
---|
[25001] | 142 | alert("Seaweed failed to initialise: " + err.message);
|
---|
[24653] | 143 | }
|
---|
| 144 | });
|
---|
[30478] | 145 | });
|
---|
[24653] | 146 | </xsl:text>
|
---|
| 147 | </script>
|
---|
[29861] | 148 | </xsl:template>
|
---|
[30428] | 149 |
|
---|
[24653] | 150 |
|
---|
[23989] | 151 | <!-- ***** HEADER LAYOUT TEMPLATE ***** -->
|
---|
[25001] | 152 | <xsl:template name="create-banner">
|
---|
| 153 | <div id="gs_banner" class="ui-widget-header ui-corner-bottom">
|
---|
[26028] | 154 | <div id="titlesearchcontainer">
|
---|
| 155 | <xsl:call-template name="page-title-area"/>
|
---|
| 156 | <xsl:call-template name="quick-search-area"/>
|
---|
| 157 | <div style="clear:both;"><xsl:text> </xsl:text></div>
|
---|
| 158 | </div>
|
---|
[25001] | 159 | <xsl:call-template name="browsing-tabs"/>
|
---|
| 160 | </div>
|
---|
[23989] | 161 | </xsl:template>
|
---|
| 162 |
|
---|
[30559] | 163 | <xsl:template name="additionalNavTabs">
|
---|
| 164 | <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/extraInfo/navigationTab">
|
---|
| 165 | <li>
|
---|
| 166 | <xsl:choose>
|
---|
| 167 | <!-- if we are in frame type and this is the current page, colour it differently-->
|
---|
| 168 | <xsl:when test="@type='frame' and /page/pageRequest[@subaction='html'] and /page/pageRequest/paramList/param[@name='url']/@value = @url">
|
---|
| 169 | <xsl:attribute name='class'>ui-state-default ui-corner-top ui-tabs-selected ui-state-active</xsl:attribute>
|
---|
| 170 | </xsl:when>
|
---|
| 171 | <xsl:otherwise>
|
---|
| 172 | <xsl:attribute name="class">ui-state-default ui-corner-top</xsl:attribute>
|
---|
| 173 | </xsl:otherwise>
|
---|
| 174 | </xsl:choose>
|
---|
| 175 | <a>
|
---|
| 176 | <xsl:if test="displayItem[@name='description']">
|
---|
| 177 | <xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute>
|
---|
| 178 | </xsl:if>
|
---|
| 179 | <xsl:choose>
|
---|
| 180 | <xsl:when test="@type='external-link'">
|
---|
| 181 | <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
|
---|
| 182 | </xsl:when>
|
---|
| 183 | <xsl:when test="@type='frame'">
|
---|
| 184 | <xsl:attribute name="href"><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="/page/pageResponse/collection[@name=$collNameChecked]/@name"/>/page/html?url=<xsl:value-of select="@url"/></xsl:attribute>
|
---|
| 185 | </xsl:when>
|
---|
| 186 | </xsl:choose>
|
---|
| 187 | <xsl:choose>
|
---|
| 188 | <xsl:when test="displayItem[@name='name']">
|
---|
| 189 | <xsl:value-of select="displayItem[@name='name']"/>
|
---|
| 190 | </xsl:when>
|
---|
| 191 | <xsl:otherwise>link</xsl:otherwise>
|
---|
| 192 | </xsl:choose>
|
---|
| 193 | </a>
|
---|
| 194 | </li>
|
---|
| 195 | </xsl:for-each>
|
---|
| 196 |
|
---|
| 197 | </xsl:template>
|
---|
[23989] | 198 | <!-- ***** BROWSING TABS ***** -->
|
---|
| 199 | <xsl:template name="browsing-tabs">
|
---|
[30559] | 200 | <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service or /page/pageResponse/collection[@name=$collNameChecked]/extraInfo/navigationTab">
|
---|
[25935] | 201 | <ul id="gs-nav">
|
---|
[30559] | 202 | <!-- if this collection has additional tabs, add them here -->
|
---|
| 203 | <xsl:call-template name="additionalNavTabs"/>
|
---|
[23989] | 204 | <!-- If this collection has a ClassifierBrowse service then add a tab for each classifier-->
|
---|
| 205 | <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='browse' and @name='ClassifierBrowse']">
|
---|
| 206 | <!-- Loop through each classifier -->
|
---|
| 207 | <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='ClassifierBrowse']/classifierList/classifier">
|
---|
[25001] | 208 | <li>
|
---|
| 209 | <xsl:choose>
|
---|
| 210 | <!-- If this tab is selected then colour it differently -->
|
---|
[25686] | 211 | <xsl:when test="util:contains(/page/pageRequest/paramList/param[@name = 'cl' and /page/pageRequest/@action = 'b']/@value, @name)">
|
---|
[25001] | 212 | <xsl:attribute name='class'>ui-state-default ui-corner-top ui-tabs-selected ui-state-active</xsl:attribute>
|
---|
| 213 | </xsl:when>
|
---|
| 214 | <xsl:otherwise>
|
---|
| 215 | <xsl:attribute name='class'>ui-state-default ui-corner-top</xsl:attribute>
|
---|
| 216 | </xsl:otherwise>
|
---|
| 217 | </xsl:choose>
|
---|
[23989] | 218 |
|
---|
[25001] | 219 | <a>
|
---|
[23989] | 220 | <!-- Add a title element to the <a> tag if a description exists for this classifier -->
|
---|
| 221 | <xsl:if test="displayItem[@name='description']">
|
---|
| 222 | <xsl:attribute name='title'><xsl:value-of select="displayItem[@name='description']"/></xsl:attribute>
|
---|
| 223 | </xsl:if>
|
---|
| 224 |
|
---|
| 225 | <!-- Add the href element to the <a> tag -->
|
---|
| 226 | <xsl:choose>
|
---|
| 227 | <xsl:when test="@name">
|
---|
[25436] | 228 | <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>
|
---|
[23989] | 229 | </xsl:when>
|
---|
| 230 | <xsl:otherwise>
|
---|
[25436] | 231 | <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>
|
---|
[23989] | 232 | </xsl:otherwise>
|
---|
| 233 | </xsl:choose>
|
---|
| 234 |
|
---|
| 235 | <!-- Add the actual text of the <a> tag -->
|
---|
| 236 | <xsl:value-of select="displayItem[@name='name']"/>
|
---|
[25001] | 237 | </a>
|
---|
| 238 | </li>
|
---|
[23989] | 239 | </xsl:for-each>
|
---|
| 240 | </xsl:if>
|
---|
| 241 |
|
---|
[26133] | 242 | <!-- PhindApplet. Need something similar for the Collage applet too, probably -->
|
---|
| 243 | <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='PhindApplet']">
|
---|
| 244 | <li>
|
---|
| 245 | <xsl:choose>
|
---|
| 246 | <!-- If this tab is selected then colour it differently -->
|
---|
| 247 | <xsl:when test="/page/pageRequest[@action='a']">
|
---|
| 248 | <xsl:attribute name='class'>ui-state-default ui-corner-top ui-tabs-selected ui-state-active</xsl:attribute>
|
---|
| 249 | </xsl:when>
|
---|
| 250 | <xsl:otherwise>
|
---|
| 251 | <xsl:attribute name='class'>ui-state-default ui-corner-top</xsl:attribute>
|
---|
| 252 | </xsl:otherwise>
|
---|
| 253 | </xsl:choose>
|
---|
| 254 |
|
---|
| 255 | <a>
|
---|
| 256 | <xsl:if test="displayItem[@name='description']">
|
---|
| 257 | <xsl:attribute name="title">
|
---|
| 258 | <xsl:value-of select="displayItem[@name='description']"/>
|
---|
| 259 | </xsl:attribute>
|
---|
| 260 | </xsl:if>
|
---|
| 261 | <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=a&rt=d&s=<xsl:value-of select="@name"/>&c=<xsl:value-of select="/page/pageResponse/collection/@name"/></xsl:attribute>
|
---|
| 262 | <xsl:value-of select="displayItem[@name='name']"/>
|
---|
| 263 | </a>
|
---|
| 264 | </li>
|
---|
| 265 | </xsl:for-each>
|
---|
| 266 |
|
---|
[23989] | 267 | <!-- all other services -->
|
---|
[26133] | 268 | <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[not(@type='query') and not(@type='browse') and not (@name='PhindApplet')]">
|
---|
[23989] | 269 | <xsl:call-template name="navigationTab"/>
|
---|
| 270 | </xsl:for-each>
|
---|
| 271 | </ul>
|
---|
[26284] | 272 | <div style="clear:both;"><xsl:text> </xsl:text></div>
|
---|
[23989] | 273 | </xsl:if>
|
---|
| 274 | </xsl:template>
|
---|
| 275 |
|
---|
[25001] | 276 | <!-- ***** HOME HELP PREFERENCES LOGIN ***** -->
|
---|
[23989] | 277 | <xsl:template name="home-help-preferences">
|
---|
[25278] | 278 | <ul id="bannerLinks">
|
---|
[27152] | 279 |
|
---|
| 280 | <!-- RSS feed link can appear in a global format statement (where it has no type attribute)
|
---|
| 281 | or in section specific format statements, such as browse, search, display.
|
---|
| 282 | If it's present in any format statement, display the RSS link in the bannerlinks section. -->
|
---|
| 283 | <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search' or not(@type)]/gsf:option[@name='RSS']/@value = 'true'">
|
---|
[27101] | 284 | <li><gsf:link type="rss"><gsf:icon file="rssicon.png"/></gsf:link></li>
|
---|
| 285 | </xsl:if>
|
---|
[27152] | 286 |
|
---|
[25278] | 287 | <!-- preferences -->
|
---|
[28050] | 288 | <li>
|
---|
[25436] | 289 | <a href="{$library_name}/collection/{$collNameChecked}/page/pref">
|
---|
[25278] | 290 | <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_tip')"/></xsl:attribute>
|
---|
[28050] | 291 | <span id="preferencesButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'pref_b')"/></span>
|
---|
| 292 | <script type="text/javascript">
|
---|
| 293 | <xsl:text disable-output-escaping="yes">
|
---|
| 294 | $("#preferencesButton").button({icons:{primary:"ui-icon-wrench"}});
|
---|
| 295 | $("#preferencesButton .ui-button-text").css({"padding-top":"0px", "padding-bottom":"3px"});
|
---|
| 296 | </xsl:text>
|
---|
| 297 | </script>
|
---|
[25278] | 298 | </a>
|
---|
| 299 | </li>
|
---|
[23989] | 300 |
|
---|
[25278] | 301 | <!-- help -->
|
---|
[30154] | 302 | <!--<li>
|
---|
[25436] | 303 | <a href="{$library_name}/collection/{$collNameChecked}/page/help">
|
---|
[25278] | 304 | <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
|
---|
[28050] | 305 | <span id="helpButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></span>
|
---|
| 306 | <script type="text/javascript">
|
---|
| 307 | <xsl:text disable-output-escaping="yes">
|
---|
| 308 | $("#helpButton").button({icons:{primary:"ui-icon-help"}});
|
---|
| 309 | $("#helpButton .ui-button-text").css({"padding-top":"0px", "padding-bottom":"3px"});
|
---|
| 310 | </xsl:text>
|
---|
| 311 | </script>
|
---|
[25278] | 312 | </a>
|
---|
[30154] | 313 | </li>-->
|
---|
[25278] | 314 |
|
---|
| 315 | <!-- login/logout -->
|
---|
[28050] | 316 | <li id="userMenuButton">
|
---|
[25278] | 317 | <xsl:choose>
|
---|
| 318 | <xsl:when test="/page/pageRequest/userInformation/@username">
|
---|
| 319 | <a>
|
---|
| 320 | <xsl:attribute name="href">javascript:toggleUserMenu();</xsl:attribute>
|
---|
| 321 | <script type="text/javascript">
|
---|
| 322 | <xsl:text disable-output-escaping="yes">
|
---|
| 323 | function toggleUserMenu()
|
---|
| 324 | {
|
---|
| 325 | var button = $("#userMenuButton");
|
---|
| 326 | var menu;
|
---|
[23989] | 327 |
|
---|
[25278] | 328 | if(button.data("userMenu"))
|
---|
| 329 | {
|
---|
| 330 | menu = button.data("userMenu");
|
---|
| 331 | if(menu.css("display") == "block")
|
---|
| 332 | {
|
---|
| 333 | menu.hide();
|
---|
| 334 | }
|
---|
| 335 | else
|
---|
| 336 | {
|
---|
| 337 | menu.show();
|
---|
| 338 | }
|
---|
| 339 | }
|
---|
| 340 | else
|
---|
| 341 | {
|
---|
| 342 | menu = $("<UL>")
|
---|
| 343 | .css("position", "absolute")
|
---|
| 344 | .css("display", "block")
|
---|
| 345 | .css("z-index", "100")
|
---|
| 346 | .css("list-style", "none outside none")
|
---|
[28278] | 347 | .css("margin", "0px")
|
---|
[25278] | 348 | .css("padding", "0px")
|
---|
| 349 | .css("font-size", "90%");
|
---|
[26120] | 350 |
|
---|
| 351 | menu.attr("id", "userMenu");
|
---|
[25278] | 352 |
|
---|
| 353 | button.data("userMenu", menu);
|
---|
| 354 |
|
---|
| 355 | var settingsLink = $("<a>")
|
---|
| 356 | .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">");
|
---|
| 357 | var settingsButton = $("<LI>")
|
---|
| 358 | .css("padding", "3px")
|
---|
[30775] | 359 | .html("</xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'menu.account_settings')"/><xsl:text disable-output-escaping="yes">")
|
---|
[25278] | 360 | .addClass("ui-state-default");
|
---|
| 361 | settingsLink.append(settingsButton);
|
---|
[28231] | 362 |
|
---|
| 363 | var editingLink = $("<a>")
|
---|
| 364 | .attr("href", "javascript:;");
|
---|
| 365 | var editingButton = $("<LI>")
|
---|
| 366 | .css("padding", "3px")
|
---|
[30775] | 367 | .html((gs.userInformation.editEnabled == "true") ? "</xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'menu.disable_edit_mode')"/><xsl:text disable-output-escaping="yes">" : "</xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'menu.enable_edit_mode')"/><xsl:text disable-output-escaping="yes">")
|
---|
[28231] | 368 | .addClass("ui-state-default")
|
---|
| 369 | .click(function()
|
---|
| 370 | {
|
---|
| 371 | var url = gs.xsltParams.library_name + "?a=g&rt=ro&s=ChangeUserEditMode&s1.username=" + gs.userInformation.username + "&s1.enabled=" + ((gs.userInformation.editEnabled == "true") ? "false" : "true");
|
---|
| 372 | $.ajax(url)
|
---|
| 373 | .success(function(response)
|
---|
| 374 | {
|
---|
| 375 | location.reload();
|
---|
| 376 | });
|
---|
| 377 | });
|
---|
| 378 | editingLink.append(editingButton);
|
---|
[25278] | 379 |
|
---|
| 380 | var url = document.URL;
|
---|
| 381 | var hasQueryString = (url.indexOf("?") != -1);
|
---|
| 382 | var hashIndex = url.indexOf("#");
|
---|
| 383 |
|
---|
| 384 | var hashPart;
|
---|
| 385 | if(hashIndex != -1)
|
---|
| 386 | {
|
---|
| 387 | hashPart = url.substring(hashIndex);
|
---|
| 388 | url = url.substring(0, hashIndex);
|
---|
| 389 | }
|
---|
| 390 |
|
---|
| 391 | var logoutLink = $("<a>")
|
---|
| 392 | .attr("href", url + (hasQueryString ? "&" : "?") + "logout=" + (hashPart ? hashPart : ""));
|
---|
| 393 | var logoutButton = $("<LI>")
|
---|
| 394 | .css("padding", "3px")
|
---|
[30775] | 395 | .html("</xsl:text><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'menu.logout')"/><xsl:text disable-output-escaping="yes">")
|
---|
[25278] | 396 | .addClass("ui-state-default");
|
---|
| 397 | logoutLink.append(logoutButton);
|
---|
| 398 |
|
---|
| 399 | menu.append(settingsLink);
|
---|
[28231] | 400 | menu.append(editingLink);
|
---|
[25278] | 401 | menu.append(logoutLink);
|
---|
| 402 |
|
---|
| 403 | var buttonLeft = button.offset().left;
|
---|
| 404 | var buttonTop = button.offset().top;
|
---|
[28278] | 405 |
|
---|
[25278] | 406 | var buttonHeight = button.height();
|
---|
| 407 |
|
---|
| 408 | menu.offset({top: buttonTop + buttonHeight + 4, left: buttonLeft});
|
---|
| 409 | $("#topArea").append(menu);
|
---|
| 410 | }
|
---|
| 411 | }
|
---|
| 412 | </xsl:text>
|
---|
| 413 | </script>
|
---|
[28050] | 414 | <span id="loginButton"><xsl:value-of select="/page/pageRequest/userInformation/@username"/></span>
|
---|
| 415 | <script type="text/javascript">
|
---|
| 416 | <xsl:text disable-output-escaping="yes">
|
---|
| 417 | $("#loginButton").button({icons:{primary:"ui-icon-unlocked"}});
|
---|
| 418 | $("#loginButton .ui-button-text").css({"padding-top":"0px", "padding-bottom":"3px"});
|
---|
| 419 | </xsl:text>
|
---|
| 420 | </script>
|
---|
[25278] | 421 | </a>
|
---|
| 422 | </xsl:when>
|
---|
| 423 | <xsl:otherwise>
|
---|
| 424 | <a>
|
---|
| 425 | <xsl:attribute name="href">
|
---|
| 426 | <xsl:value-of select="$library_name"/>
|
---|
| 427 | <xsl:text>?a=p&sa=login&redirectURL=</xsl:text>
|
---|
| 428 | <xsl:value-of select="$library_name"/>
|
---|
| 429 | <xsl:text>%3F</xsl:text>
|
---|
| 430 | <xsl:if test="/page/pageRequest/@action">
|
---|
| 431 | <xsl:text>a=</xsl:text>
|
---|
| 432 | <xsl:value-of select="/page/pageRequest/@action"/>
|
---|
| 433 | </xsl:if>
|
---|
| 434 | <xsl:if test="/page/pageRequest/@subaction">
|
---|
| 435 | <xsl:text>%26sa=</xsl:text>
|
---|
| 436 | <xsl:value-of select="/page/pageRequest/@subaction"/>
|
---|
| 437 | </xsl:if>
|
---|
| 438 | <xsl:for-each select="/page/pageRequest/paramList/param">
|
---|
| 439 | <xsl:if test="@name != 'password' and @name != 's1.password' and @name != 's1.newPassword' and @name != 's1.oldPassword'">
|
---|
[25123] | 440 | <xsl:text>%26</xsl:text>
|
---|
| 441 | <xsl:value-of select="@name"/>
|
---|
| 442 | <xsl:text>=</xsl:text>
|
---|
| 443 | <xsl:value-of select="@value"/>
|
---|
[25278] | 444 | </xsl:if>
|
---|
| 445 | </xsl:for-each>
|
---|
| 446 | </xsl:attribute>
|
---|
| 447 | <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_tip')"/></xsl:attribute>
|
---|
[28050] | 448 | <span id="loginButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'login_b')"/></span>
|
---|
| 449 | <script type="text/javascript">
|
---|
| 450 | <xsl:text disable-output-escaping="yes">
|
---|
| 451 | $("#loginButton").button({icons:{primary:"ui-icon-locked"}});
|
---|
| 452 | $("#loginButton .ui-button-text").css({"padding-top":"0px", "padding-bottom":"3px"});
|
---|
| 453 | </xsl:text>
|
---|
| 454 | </script>
|
---|
[25278] | 455 | </a>
|
---|
| 456 | </xsl:otherwise>
|
---|
| 457 | </xsl:choose>
|
---|
| 458 | </li>
|
---|
[25469] | 459 | <!-- debuginfo (doesn't use class="ui-state-error" since the text is not legible due to inherited text-colour) -->
|
---|
[29433] | 460 | <xsl:if test="/page/pageRequest/paramList/param[(@name='debug') and (@value='on' or @value='true' or @value='1' or @value='yes')]">
|
---|
[28050] | 461 | <li>
|
---|
| 462 | <a href="{$library_name}/collection/{$collNameChecked}/page/debug">
|
---|
| 463 | <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo_tip')"/></xsl:attribute>
|
---|
| 464 | <span id="debugButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'debuginfo_b')"/></span>
|
---|
| 465 | <script type="text/javascript">
|
---|
| 466 | <xsl:text disable-output-escaping="yes">
|
---|
| 467 | $("#debugButton").button({icons:{primary:"ui-icon-info"}});
|
---|
| 468 | $("#debugButton .ui-button-text").css({"padding-top":"0px", "padding-bottom":"3px"});
|
---|
| 469 | </xsl:text>
|
---|
| 470 | </script>
|
---|
| 471 | </a>
|
---|
| 472 | </li>
|
---|
[25457] | 473 | </xsl:if>
|
---|
[25278] | 474 | </ul>
|
---|
[23989] | 475 | </xsl:template>
|
---|
| 476 |
|
---|
| 477 | <!-- ***** PAGE TITLE ***** -->
|
---|
| 478 | <xsl:template name="page-title-area">
|
---|
| 479 | <xsl:variable name="pageTitleVar"><xsl:call-template name="pageTitle"/></xsl:variable>
|
---|
[26028] | 480 | <div id="titlearea">
|
---|
[23989] | 481 | <h2>
|
---|
[24420] | 482 | <!-- Resize the title based on how long it is (There's probably a better way to do this) -->
|
---|
[23989] | 483 | <xsl:attribute name="style">
|
---|
| 484 | <xsl:choose>
|
---|
| 485 | <xsl:when test="string-length($pageTitleVar) < 20">
|
---|
[25001] | 486 | <xsl:text>font-size: 1.5em;</xsl:text>
|
---|
[23989] | 487 | </xsl:when>
|
---|
| 488 | <xsl:when test="string-length($pageTitleVar) < 30">
|
---|
[25001] | 489 | <xsl:text>font-size: 1.4em;</xsl:text>
|
---|
[23989] | 490 | </xsl:when>
|
---|
| 491 | <xsl:when test="string-length($pageTitleVar) < 40">
|
---|
[25001] | 492 | <xsl:text>font-size: 1.3em;</xsl:text>
|
---|
[23989] | 493 | </xsl:when>
|
---|
| 494 | <xsl:when test="string-length($pageTitleVar) < 50">
|
---|
[25001] | 495 | <xsl:text>font-size: 1.2em;</xsl:text>
|
---|
[23989] | 496 | </xsl:when>
|
---|
| 497 | <xsl:when test="string-length($pageTitleVar) < 60">
|
---|
[25001] | 498 | <xsl:text>font-size: 1.1em;</xsl:text>
|
---|
[23989] | 499 | </xsl:when>
|
---|
| 500 | <xsl:when test="string-length($pageTitleVar) < 70">
|
---|
[25001] | 501 | <xsl:text>font-size: 1em;</xsl:text>
|
---|
[23989] | 502 | </xsl:when>
|
---|
| 503 | <xsl:when test="string-length($pageTitleVar) < 80">
|
---|
[25001] | 504 | <xsl:text>font-size: 0.9em;</xsl:text>
|
---|
[23989] | 505 | </xsl:when>
|
---|
| 506 | <xsl:when test="string-length($pageTitleVar) < 90">
|
---|
[25001] | 507 | <xsl:text>font-size: 0.8em;</xsl:text>
|
---|
[23989] | 508 | </xsl:when>
|
---|
| 509 | <xsl:otherwise>
|
---|
[25001] | 510 | <xsl:text>font-size: 0.7em;</xsl:text>
|
---|
[23989] | 511 | </xsl:otherwise>
|
---|
| 512 | </xsl:choose>
|
---|
| 513 | </xsl:attribute>
|
---|
| 514 | <!--<xsl:value-of select="string-length($pageTitleVar)" />-->
|
---|
| 515 | <xsl:value-of select="$pageTitleVar" />
|
---|
[26028] | 516 | </h2><xsl:text> </xsl:text>
|
---|
| 517 | </div>
|
---|
[23989] | 518 | </xsl:template>
|
---|
| 519 |
|
---|
| 520 | <!-- ***** QUICK SEARCH AREA ***** -->
|
---|
[25774] | 521 | <!-- Search form should only appear if there's a search (query) service AND it has an index.
|
---|
| 522 | By default, all collections end up with some query service (default is MGPP) even when they have
|
---|
[26057] | 523 | no search indexes, which is why the extra test for the presence of an index/fq-something is necessary. -->
|
---|
[23989] | 524 | <xsl:template name="quick-search-area">
|
---|
[26094] | 525 | <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='query']">
|
---|
[23989] | 526 | <xsl:variable name="subaction" select="/page/pageRequest/@subaction"/>
|
---|
[26028] | 527 | <div id="quicksearcharea">
|
---|
[26094] | 528 | <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
|
---|
[28623] | 529 | <xsl:choose>
|
---|
| 530 | <xsl:when test="not(page/pageRequest[@action='q']) or /page/pageRequest/paramList/param[@name='qs']/@value = '1'">
|
---|
[26120] | 531 | <form action="{$library_name}/collection/{$collNameChecked}/search/TextQuery">
|
---|
| 532 | <!-- This parameter says that we have come from the quick search area -->
|
---|
| 533 | <input type="hidden" name="qs" value="1"/>
|
---|
| 534 | <input type="hidden" name="rt" value="rd"/>
|
---|
| 535 | <input type="hidden" name="s1.level">
|
---|
| 536 | <xsl:attribute name="value">
|
---|
[26464] | 537 | <xsl:value-of select="/page/pageResponse/collection/serviceList/service[@name='TextQuery']/paramList/param[@name = 'level']/@default"/>
|
---|
[26120] | 538 | </xsl:attribute>
|
---|
| 539 | </input>
|
---|
| 540 | <xsl:choose>
|
---|
| 541 | <xsl:when test="/page/pageResponse/service[@name = 'TextQuery']/paramList/param[@name = 'startPage']">
|
---|
| 542 | <input type="hidden" name="s1.startPage" value="1"/>
|
---|
| 543 | </xsl:when>
|
---|
| 544 | <xsl:otherwise>
|
---|
| 545 | <input type="hidden" name="startPage" value="1"/>
|
---|
| 546 | </xsl:otherwise>
|
---|
| 547 | </xsl:choose>
|
---|
[29554] | 548 |
|
---|
[28623] | 549 | <!-- The query text box -->
|
---|
| 550 | <span class="querybox">
|
---|
| 551 | <xsl:variable name="qs">
|
---|
| 552 | <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='query']" mode="calculate-default"/>
|
---|
| 553 | </xsl:variable>
|
---|
| 554 | <nobr>
|
---|
| 555 | <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='query']">
|
---|
[30478] | 556 | <!--
|
---|
| 557 | <xsl:with-param name="default" select="java:org.greenstone.gsdl3.util.XSLTUtil.tidyWhitespace($qs, /page/@lang)"/>
|
---|
| 558 | -->
|
---|
| 559 | <xsl:with-param name="default" select="normalize-space($qs)"/>
|
---|
| 560 |
|
---|
[28623] | 561 | </xsl:apply-templates>
|
---|
| 562 | </nobr>
|
---|
| 563 | </span>
|
---|
[28558] | 564 | <!-- The index selection list -->
|
---|
| 565 | <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']/@type = 'enum_single'">
|
---|
| 566 | <span class="textselect">
|
---|
| 567 | <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']">
|
---|
| 568 | <xsl:with-param name="default">
|
---|
| 569 | <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']" mode="calculate-default"/>
|
---|
| 570 | </xsl:with-param>
|
---|
[29314] | 571 | <xsl:with-param name="hideSingle">false</xsl:with-param>
|
---|
[28580] | 572 | <xsl:with-param name="quickSearch">true</xsl:with-param>
|
---|
[28558] | 573 | </xsl:apply-templates>
|
---|
| 574 | </span>
|
---|
| 575 | </xsl:if>
|
---|
[28623] | 576 | <!-- The partition selection list -->
|
---|
| 577 | <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexSubcollection']/@type = 'enum_single'">
|
---|
| 578 | <span class="textselect">
|
---|
| 579 | <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexSubcollection']">
|
---|
| 580 | <xsl:with-param name="default">
|
---|
| 581 | <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexSubcollection']" mode="calculate-default"/>
|
---|
| 582 | </xsl:with-param>
|
---|
| 583 | <xsl:with-param name="hideSingle">true</xsl:with-param>
|
---|
| 584 | <xsl:with-param name="quickSearch">true</xsl:with-param>
|
---|
[26120] | 585 | </xsl:apply-templates>
|
---|
[28623] | 586 | </span>
|
---|
[28631] | 587 | </xsl:if>
|
---|
| 588 | <!-- The language selection list -->
|
---|
| 589 | <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexLanguage']/@type = 'enum_single'">
|
---|
| 590 | <span class="textselect">
|
---|
| 591 | <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexLanguage']">
|
---|
| 592 | <xsl:with-param name="default">
|
---|
| 593 | <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexLanguage']" mode="calculate-default"/>
|
---|
| 594 | </xsl:with-param>
|
---|
| 595 | <xsl:with-param name="hideSingle">true</xsl:with-param>
|
---|
| 596 | <xsl:with-param name="quickSearch">true</xsl:with-param>
|
---|
| 597 | </xsl:apply-templates>
|
---|
| 598 | </span>
|
---|
| 599 | </xsl:if>
|
---|
[26120] | 600 | <!-- The submit button (for TextQuery) -->
|
---|
| 601 | <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
|
---|
| 602 | <input type="submit" id="quickSearchSubmitButton">
|
---|
| 603 | <xsl:attribute name="value">
|
---|
| 604 | <xsl:value-of select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/displayItem[@name='submit']"/>
|
---|
| 605 | </xsl:attribute>
|
---|
| 606 | </input>
|
---|
| 607 | <br/>
|
---|
| 608 | </xsl:if>
|
---|
| 609 | </form>
|
---|
[28623] | 610 | </xsl:when>
|
---|
| 611 | <xsl:otherwise><br/></xsl:otherwise>
|
---|
| 612 | </xsl:choose>
|
---|
[26094] | 613 | </xsl:if>
|
---|
[26120] | 614 | <!-- The list of other search types -->
|
---|
| 615 | <ul>
|
---|
| 616 | <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='query']">
|
---|
[28623] | 617 | <li>
|
---|
| 618 | <xsl:choose>
|
---|
[28631] | 619 | <xsl:when test="@name = /page/pageRequest/paramList/param[@name='s']/@value and not(/page/pageRequest/paramList/param[@name='qs']/@value = 1)">
|
---|
[28623] | 620 | <xsl:attribute name="class">ui-state-default ui-corner-all ui-state-active</xsl:attribute>
|
---|
| 621 | </xsl:when>
|
---|
| 622 | <xsl:otherwise>
|
---|
| 623 | <xsl:attribute name="class">ui-state-default ui-corner-all</xsl:attribute>
|
---|
| 624 | </xsl:otherwise>
|
---|
| 625 | </xsl:choose>
|
---|
[26120] | 626 | <a>
|
---|
| 627 | <xsl:attribute name="href">
|
---|
| 628 | <xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collNameChecked"/>/search/<xsl:value-of select="@name"/>
|
---|
| 629 | </xsl:attribute>
|
---|
| 630 | <xsl:value-of select="displayItem[@name='name']"/>
|
---|
| 631 | </a>
|
---|
| 632 | </li>
|
---|
| 633 | </xsl:for-each>
|
---|
| 634 | </ul>
|
---|
[26028] | 635 | </div>
|
---|
[23989] | 636 | </xsl:if>
|
---|
| 637 | </xsl:template>
|
---|
[25294] | 638 |
|
---|
[25001] | 639 | <xsl:template name="map-scripts">
|
---|
| 640 | <meta content="initial-scale=1.0, user-scalable=no" name="viewport"/>
|
---|
[30775] | 641 | <script src="http://maps.googleapis.com/maps/api/js?key=AIzaSyCofVTps3xHfMvIcTMHqYMMxe3xXfkAxnI" type="text/javascript"><xsl:text> </xsl:text></script>
|
---|
[25024] | 642 | <script src="interfaces/{$interface_name}/js/map-scripts.js" type="text/javascript"><xsl:text> </xsl:text></script>
|
---|
[25001] | 643 | <script type="text/javascript">$(window).load(initializeMapScripts);</script>
|
---|
| 644 | </xsl:template>
|
---|
[26871] | 645 |
|
---|
| 646 | <xsl:template name="openlayers-map-scripts">
|
---|
| 647 | <script src="interfaces/{interface_name}/js/OpenLayers.js" type="text/javascript"><xsl:text> </xsl:text></script>
|
---|
| 648 | </xsl:template>
|
---|
| 649 |
|
---|
| 650 | <xsl:template name="panoramaViewer-scripts">
|
---|
| 651 | <script src="interfaces/{$interface_name}/js/three45.min.js" type="text/javascript"><xsl:text> </xsl:text></script>
|
---|
| 652 | <script src="interfaces/{$interface_name}/js/Tween.js" type="text/javascript"><xsl:text> </xsl:text></script>
|
---|
| 653 | <script src="interfaces/{$interface_name}/js/Detector.js" type="text/javascript"><xsl:text> </xsl:text></script>
|
---|
| 654 | <script src="interfaces/{$interface_name}/js/RequestAnimationFrame.js" type="text/javascript"><xsl:text> </xsl:text></script>
|
---|
| 655 | <script src="interfaces/{$interface_name}/js/panoramaMarker.js" type="text/javascript"><xsl:text> </xsl:text></script>
|
---|
| 656 | <script src="interfaces/{$interface_name}/js/panoramaViewer.js" type="text/javascript"><xsl:text> </xsl:text></script>
|
---|
| 657 | <script type="text/javascript">$(window).load(initPanoramaViewer);$(window).load(_animate);</script>
|
---|
| 658 | </xsl:template>
|
---|
| 659 |
|
---|
[28581] | 660 | <xsl:template name="choose-title">
|
---|
| 661 | <gsf:choose-metadata>
|
---|
| 662 | <gsf:metadata name="dc.Title"/>
|
---|
| 663 | <gsf:metadata name="exp.Title"/>
|
---|
| 664 | <gsf:metadata name="ex.dc.Title"/>
|
---|
| 665 | <gsf:metadata name="Title"/>
|
---|
| 666 | <gsf:default>Untitled</gsf:default>
|
---|
| 667 | </gsf:choose-metadata>
|
---|
| 668 | </xsl:template>
|
---|
[24137] | 669 | </xsl:stylesheet>
|
---|