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 |
|
---|
12 | <xsl:template name="rightSidebarTOC">
|
---|
13 | <!-- only called if gsf:option set to true, (or by default) not specified -->
|
---|
14 |
|
---|
15 | <xsl:choose>
|
---|
16 | <xsl:when test="$bookswitch = 'mirador'">
|
---|
17 |
|
---|
18 | <div id="tocLoadingImage" style="text-align:center;">
|
---|
19 | <img src="{util:getInterfaceText($interface_name, /page/@lang, 'loading_image')}"/>
|
---|
20 | <xsl:text>Loading Mirador Viewer...</xsl:text>
|
---|
21 | </div>
|
---|
22 | </xsl:when>
|
---|
23 | <xsl:otherwise>
|
---|
24 | <!-- otherwise, go on and general the rightSidebar as usual -->
|
---|
25 |
|
---|
26 | <div id="rightSidebar">
|
---|
27 | <xsl:choose>
|
---|
28 | <xsl:when test="@docType = 'simple'">
|
---|
29 | <xsl:for-each select=".">
|
---|
30 | <xsl:call-template name="displayCoverImage"/>
|
---|
31 | </xsl:for-each>
|
---|
32 | <xsl:call-template name="viewOptions"/>
|
---|
33 | <!--<xsl:text> </xsl:text>-->
|
---|
34 | </xsl:when>
|
---|
35 | <xsl:otherwise>
|
---|
36 | <xsl:for-each select="documentNode[1]">
|
---|
37 | <xsl:call-template name="displayCoverImage"/>
|
---|
38 | </xsl:for-each>
|
---|
39 | <xsl:call-template name="viewOptions"/>
|
---|
40 | <xsl:call-template name="displayTOC"/>
|
---|
41 | </xsl:otherwise>
|
---|
42 | </xsl:choose>
|
---|
43 | </div>
|
---|
44 | </xsl:otherwise>
|
---|
45 | </xsl:choose>
|
---|
46 |
|
---|
47 | </xsl:template>
|
---|
48 | </xsl:stylesheet>
|
---|