[32981] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 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 | <!-- right side bar, we only want cover image and toc -->
|
---|
| 22 | <xsl:template name="rightSidebar">
|
---|
| 23 | <div id="rightSidebar">
|
---|
| 24 | <xsl:choose>
|
---|
| 25 | <xsl:when test="@docType = 'simple'">
|
---|
| 26 | <xsl:for-each select=".">
|
---|
| 27 | <xsl:call-template name="displayCoverImage"/>
|
---|
| 28 | </xsl:for-each>
|
---|
| 29 | </xsl:when>
|
---|
| 30 | <xsl:otherwise>
|
---|
| 31 | <xsl:for-each select="documentNode[1]">
|
---|
| 32 | <xsl:call-template name="displayCoverImage"/>
|
---|
| 33 | </xsl:for-each>
|
---|
| 34 | <xsl:call-template name="displayTOC"/>
|
---|
| 35 | </xsl:otherwise>
|
---|
| 36 | </xsl:choose>
|
---|
| 37 | </div>
|
---|
| 38 | </xsl:template>
|
---|
| 39 |
|
---|
| 40 | <xsl:template match="/">
|
---|
| 41 | <html>
|
---|
| 42 |
|
---|
| 43 | <head>
|
---|
| 44 | <!-- ***** in header.xsl ***** -->
|
---|
| 45 | <xsl:call-template name="create-html-header"/>
|
---|
| 46 | </head>
|
---|
| 47 |
|
---|
| 48 | <body><xsl:call-template name="textDirectionAttribute"/><xsl:call-template name="actionClass"/>
|
---|
| 49 | <style type="text/css">
|
---|
| 50 | .tableOfContentsContainer {
|
---|
| 51 | max-height: none;
|
---|
| 52 | }
|
---|
| 53 | .backToTop {
|
---|
| 54 | display: none;
|
---|
| 55 | }
|
---|
| 56 | </style>
|
---|
| 57 |
|
---|
| 58 | <div id="topArea" class="ui-state-default ui-corner-top">
|
---|
| 59 | <table>
|
---|
| 60 | <tbody>
|
---|
| 61 | <tr>
|
---|
| 62 | <td><div id="breadcrumbs"><xsl:call-template name="breadcrumbs"/><xsl:text> </xsl:text></div></td>
|
---|
| 63 | </tr>
|
---|
| 64 | </tbody>
|
---|
| 65 | </table>
|
---|
| 66 | </div>
|
---|
| 67 | <br class="clear"/>
|
---|
| 68 |
|
---|
| 69 | <div id="container" class="ui-corner-all">
|
---|
| 70 | <div id="gs_content" class="ui-widget-content">
|
---|
| 71 | <xsl:apply-templates select="/page"/>
|
---|
| 72 | </div>
|
---|
| 73 |
|
---|
| 74 | </div>
|
---|
| 75 | </body>
|
---|
| 76 | </html>
|
---|
| 77 | </xsl:template>
|
---|
| 78 |
|
---|
| 79 |
|
---|
| 80 | </xsl:stylesheet>
|
---|