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 |
|
---|
5 | xmlns:java="http://xml.apache.org/xslt/java"
|
---|
6 | xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
|
---|
7 | xmlns:gslib="http://www.greenstone.org/skinning"
|
---|
8 | xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
|
---|
9 |
|
---|
10 | xmlns:lxslt="http://xml.apache.org/xslt"
|
---|
11 | xmlns:result="http://www.example.com/results"
|
---|
12 | xmlns:exsl="http://exslt.org/common"
|
---|
13 |
|
---|
14 | extension-element-prefixes="java util result exsl"
|
---|
15 | exclude-result-prefixes="util java util gsf gslib">
|
---|
16 |
|
---|
17 | <xsl:import href="header.xsl"/>
|
---|
18 | <xsl:param name="lang"/>
|
---|
19 | <xsl:include href="formatmanager.xsl"/>
|
---|
20 |
|
---|
21 |
|
---|
22 | <!-- put the URL or path of your site here site -->
|
---|
23 | <!-- eg 'http://www.example.com/mysite' or '/mysite' -->
|
---|
24 | <xsl:template name="siteURL"><xsl:value-of select="/page/pageResponse/metadataList/metadata[@name='siteURL']"/></xsl:template>
|
---|
25 |
|
---|
26 |
|
---|
27 | <!-- the output format for this layout is html -->
|
---|
28 | <xsl:output method="html" omit-xml-declaration="yes"/>
|
---|
29 |
|
---|
30 | <xsl:template match="/">
|
---|
31 | <xsl:call-template name="mainTemplate"/>
|
---|
32 | </xsl:template>
|
---|
33 |
|
---|
34 | <!-- the main layout is defined here -->
|
---|
35 | <xsl:template name="mainTemplate">
|
---|
36 |
|
---|
37 | <html lang="{$lang}">
|
---|
38 |
|
---|
39 | <head>
|
---|
40 | <!-- ***** in header.xsl ***** -->
|
---|
41 | <xsl:call-template name="create-html-header"/>
|
---|
42 | <xsl:call-template name="basketHeadTags"/>
|
---|
43 | </head>
|
---|
44 |
|
---|
45 | <body><xsl:call-template name="textDirectionAttribute"/><xsl:call-template name="actionClass"/>
|
---|
46 | <!-- Consider bringing this template call back, but wrapped up in an "if debug" ?? -->
|
---|
47 | <!--<xsl:call-template name="displayErrorsIfAny"/>-->
|
---|
48 | <a name="top"><xsl:text> </xsl:text></a>
|
---|
49 |
|
---|
50 | <div id="topArea" class="ui-state-default ui-corner-top">
|
---|
51 | <table>
|
---|
52 | <tbody>
|
---|
53 | <tr>
|
---|
54 | <td><div id="breadcrumbs"><xsl:call-template name="breadcrumbs"/><xsl:text> </xsl:text></div></td>
|
---|
55 |
|
---|
56 | <!-- ***** in header.xsl ***** -->
|
---|
57 | <td><xsl:call-template name="home-help-preferences"/></td>
|
---|
58 | </tr>
|
---|
59 | </tbody>
|
---|
60 | </table>
|
---|
61 | </div>
|
---|
62 |
|
---|
63 | <div id="container" class="ui-corner-all">
|
---|
64 |
|
---|
65 | <!-- ***** in header.xsl ***** -->
|
---|
66 | <xsl:call-template name="create-banner"/>
|
---|
67 |
|
---|
68 | <xsl:if test="/page/pageRequest/paramList/param[(@name='formatedit') and (@value='on')]">
|
---|
69 | <xsl:call-template name="formatmanagerpre"/>
|
---|
70 | </xsl:if>
|
---|
71 |
|
---|
72 | <!-- IMPORTANT: when copying this file to base your own custom interface's main.xsl on this one,
|
---|
73 | or when writing a main.xsl for your custom interface from scratch,
|
---|
74 | it is absolutely crucial to ensure the div element containing the xsl:apply-templates for /page
|
---|
75 | is given the id="gs_content".
|
---|
76 | Without this, many parts of GS3 will fail as they make use of gs_content whenever they make
|
---|
77 | calls to the GS server that include 'excerptid=gs_content' in the URL params.
|
---|
78 | For instance, connecting a client-GLI to a remote GS3 server and attempting to view
|
---|
79 | collections will fail as the user groups for a user will return null without this.
|
---|
80 | ADDITIONAL NOTE: it has not been investigated whether adding addition html elements inside the
|
---|
81 | div with id="gs_content" is wise. I've not checked whether such elements will be parsed out
|
---|
82 | properly and just the expected portions retrieved successfully by callers that requested
|
---|
83 | excerptid=gs_content.
|
---|
84 | -->
|
---|
85 | <div id="gs_content" class="ui-widget-content">
|
---|
86 | <!--
|
---|
87 | show the content of the page.
|
---|
88 | to customise this part, edit the xsl file for the page you want to edit
|
---|
89 | -->
|
---|
90 | <xsl:apply-templates select="/page"/>
|
---|
91 |
|
---|
92 | </div>
|
---|
93 |
|
---|
94 | <xsl:call-template name="gs_footer"/>
|
---|
95 | </div>
|
---|
96 | </body>
|
---|
97 | </html>
|
---|
98 | </xsl:template>
|
---|
99 |
|
---|
100 | <!-- default is to have nothing inthea rightSidebar -->
|
---|
101 | <xsl:template name="floatRightSidebar">
|
---|
102 | <div id="float-anchor" style="width: 30%; min-width:180px; float:right; margin: 0 0 10px 20px;">
|
---|
103 | <xsl:call-template name="rightSidebar"/>
|
---|
104 | </div>
|
---|
105 | </xsl:template>
|
---|
106 |
|
---|
107 | <!-- Default rule is to be empty => no rightSidebar to show -->
|
---|
108 | <!-- Gets overridden in pages such as query.xsl and classifier.xsl to display baskets and facet info elements -->
|
---|
109 | <xsl:template name="rightSidebar">
|
---|
110 | </xsl:template>
|
---|
111 |
|
---|
112 | <!-- Template controlling the footer. -->
|
---|
113 | <xsl:template name="gs_footer">
|
---|
114 | <div id="gs_footer" class="ui-widget-header ui-corner-bottom">
|
---|
115 | <a href="https://www.greenstone.org"><gslib:poweredByGS3TextBar/></a>
|
---|
116 | </div>
|
---|
117 | </xsl:template>
|
---|
118 |
|
---|
119 |
|
---|
120 |
|
---|
121 | </xsl:stylesheet>
|
---|