Ignore:
Timestamp:
2013-02-11T15:30:50+13:00 (9 years ago)
Author:
davidb
Message:

Support for Panoramas added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r26614 r26871  
    7979
    8080        <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='mapEnabled']/@value = 'true'">
    81             <xsl:call-template name="map-scripts"/>
    82         </xsl:if>
     81          <xsl:call-template name="map-scripts"/>
     82        </xsl:if>
     83       
     84        <xsl:if test="/page/pageResponse/format/gsf:option[@name='mapEnabledOpenLayers']/@value = 'true'">
     85          <xsl:call-template name="openlayers-map-scripts"/>
     86        </xsl:if>
     87
     88
     89        <xsl:if test="/page/pageResponse/format/gsf:option[@name='panoramaViewerEnabled']/@value = 'true'">
     90          <xsl:call-template name="panoramaViewer-scripts"/>
     91        </xsl:if>
     92
    8393       
    8494        <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))">
    85             <xsl:call-template name="init-direct-edit"/>
    86             <script type="text/javascript" src="interfaces/{$interface_name}/js/debug_scripts.js"><xsl:text> </xsl:text></script>
     95          <xsl:call-template name="init-direct-edit"/>
     96          <script type="text/javascript" src="interfaces/{$interface_name}/js/debug_scripts.js"><xsl:text> </xsl:text></script>
    8797        </xsl:if>
    8898       
     
    500510        <script type="text/javascript">$(window).load(initializeMapScripts);</script>
    501511    </xsl:template>
     512
     513    <xsl:template name="openlayers-map-scripts">
     514        <script src="interfaces/{interface_name}/js/OpenLayers.js" type="text/javascript"><xsl:text> </xsl:text></script>
     515    </xsl:template>
     516
     517    <xsl:template name="panoramaViewer-scripts">
     518           <script src="interfaces/{$interface_name}/js/three45.min.js" type="text/javascript"><xsl:text> </xsl:text></script>
     519       <script src="interfaces/{$interface_name}/js/Tween.js" type="text/javascript"><xsl:text> </xsl:text></script>
     520       <script src="interfaces/{$interface_name}/js/THREEx.FullScreen.js" type="text/javascript"><xsl:text> </xsl:text></script>
     521       <script src="interfaces/{$interface_name}/js/Detector.js" type="text/javascript"><xsl:text> </xsl:text></script>
     522       <script src="interfaces/{$interface_name}/js/RequestAnimationFrame.js" type="text/javascript"><xsl:text> </xsl:text></script>
     523       <script src="interfaces/{$interface_name}/js/OpenLayers.js" type="text/javascript"><xsl:text> </xsl:text></script>
     524       <script src="interfaces/{$interface_name}/js/panoramaMarker.js" type="text/javascript"><xsl:text> </xsl:text></script>
     525       <script src="interfaces/{$interface_name}/js/panoramaViewer.js" type="text/javascript"><xsl:text> </xsl:text></script>
     526       <script type="text/javascript">$(window).load(initPanoramaViewer);$(window).load(_animate);</script>
     527    </xsl:template>
     528
    502529</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.