source: main/trunk/greenstone3/web/interfaces/default/transform/pages/document-print.xsl@ 37476

Last change on this file since 37476 was 34579, checked in by davidb, 3 years ago

Changes so the rightSidebar for query.xsl and classifier.xsl display corrected (float right). The previous approach had been 'bolted' on to the end of displayBaskets was not properly contained within the div that was floated right

File size: 2.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 <!-- inherit from document, but modify the main templates to cut out unnecessary bits -->
12 <xsl:import href="pages/document.xsl"/>
13
14 <!-- set page breadcrumbs -->
15 <!-- just have library and collection link, not the document link -->
16 <xsl:template name="breadcrumbs">
17 <gslib:siteLink/><gslib:rightArrow/>
18 <gslib:collectionNameLinked/><gslib:rightArrow/>
19 </xsl:template>
20
21 <!-- no right side bar -->
22 <xsl:template name="rightSidebarTOC"></xsl:template>
23
24 <!-- no editbar -->
25 <xsl:template name="editBar"></xsl:template>
26
27 <!-- cover image and toc right side bar -->
28 <xsl:template name="rightSidebarAlt">
29 <div id="rightSidebar">
30 <xsl:choose>
31 <xsl:when test="@docType = 'simple'">
32 <xsl:for-each select=".">
33 <xsl:call-template name="displayCoverImage"/>
34 </xsl:for-each>
35 </xsl:when>
36 <xsl:otherwise>
37 <xsl:for-each select="documentNode[1]">
38 <xsl:call-template name="displayCoverImage"/>
39 </xsl:for-each>
40 <xsl:call-template name="displayTOC"/>
41 </xsl:otherwise>
42 </xsl:choose>
43 </div>
44 </xsl:template>
45
46 <xsl:template match="/">
47 <html>
48
49 <head>
50 <!-- ***** in header.xsl ***** -->
51 <xsl:call-template name="create-html-header"/>
52 </head>
53
54 <body><xsl:call-template name="textDirectionAttribute"/><xsl:call-template name="actionClass"/>
55 <style type="text/css">
56 .tableOfContentsContainer {
57 max-height: none;
58 }
59 .backToTop {
60 display: none;
61 }
62 </style>
63
64 <div id="topArea" class="ui-state-default ui-corner-top">
65 <table>
66 <tbody>
67 <tr>
68 <td><div id="breadcrumbs"><xsl:call-template name="breadcrumbs"/><xsl:text> </xsl:text></div></td>
69 </tr>
70 </tbody>
71 </table>
72 </div>
73 <br class="clear"/>
74
75 <div id="container" class="ui-corner-all">
76 <div id="gs_content" class="ui-widget-content">
77 <xsl:apply-templates select="/page"/>
78 </div>
79
80 </div>
81 </body>
82 </html>
83 </xsl:template>
84
85
86</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.