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