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">
|
---|
16 |
|
---|
17 | <!-- the main layout is defined here -->
|
---|
18 | <xsl:template name="mainTemplate">
|
---|
19 | <xsl:variable name="collName" select="/page/pageResponse/collection/@name"/>
|
---|
20 |
|
---|
21 | <html>
|
---|
22 |
|
---|
23 | <head>
|
---|
24 | <!-- Global site tag (gtag.js) - Google Analytics for Heritage NZ -->
|
---|
25 | <script async="async" src="https://www.googletagmanager.com/gtag/js?id=UA-142178145-1">
|
---|
26 | <!-- include text filler to stop script tag self-closing,
|
---|
27 | which doesn't play well in a web page -->
|
---|
28 | <xsl:text> </xsl:text>
|
---|
29 | </script>
|
---|
30 | <!-- using gsf:script tags means quotes correctly escaped thru disable-output-escaping -->
|
---|
31 | <gsf:script>
|
---|
32 | window.dataLayer = window.dataLayer || [];
|
---|
33 | function gtag(){dataLayer.push(arguments);}
|
---|
34 | gtag('js', new Date());
|
---|
35 |
|
---|
36 | gtag('config', 'UA-142178145-1');
|
---|
37 | </gsf:script>
|
---|
38 |
|
---|
39 | <!-- ***** in header.xsl ***** -->
|
---|
40 | <xsl:call-template name="create-html-header"/>
|
---|
41 | <xsl:call-template name="basketHeadTags"/>
|
---|
42 | <script type="text/javascript" src="interfaces/heritage-nz/js/iframeResizer.contentWindow.min.js"><xsl:text> </xsl:text></script>
|
---|
43 |
|
---|
44 | </head>
|
---|
45 |
|
---|
46 | <body><xsl:call-template name="textDirectionAttribute"/><xsl:call-template name="actionClass"/>
|
---|
47 |
|
---|
48 | <!--<xsl:call-template name="displayErrorsIfAny"/>-->
|
---|
49 | <a name="top"><xsl:text> </xsl:text></a>
|
---|
50 | <!--
|
---|
51 | <iframe src="interfaces/{$interface_name}/iframe/heritage-nz-dl-header.html"
|
---|
52 | style="position: absolute; height: 100%; border: none; width: 100%">
|
---|
53 | <gsf:comment>filler</gsf:comment>
|
---|
54 | </iframe>
|
---|
55 | -->
|
---|
56 | <style>
|
---|
57 | <!--
|
---|
58 | #container { top: 105px; }
|
---|
59 | -->
|
---|
60 | #container { line-height: 1.5; }
|
---|
61 |
|
---|
62 | <xsl:text disable-output-escaping="yes">
|
---|
63 |
|
---|
64 | #gs_banner { background-color: #820404; background-image: none; }
|
---|
65 |
|
---|
66 | .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
|
---|
67 | border: 1px solid #400000;
|
---|
68 | background: #660000 repeat-x scroll 50% 50%;
|
---|
69 | font-weight: bold;
|
---|
70 | color: #000;
|
---|
71 | }
|
---|
72 |
|
---|
73 | .ui-widget-header {
|
---|
74 | border: 1px solid #400000;
|
---|
75 | background: #660000 repeat-x scroll 50% 50%;
|
---|
76 | color: #FFF;
|
---|
77 | font-weight: bold;
|
---|
78 | }
|
---|
79 |
|
---|
80 | .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
|
---|
81 | color: #888888;
|
---|
82 | text-decoration: underline;
|
---|
83 | }
|
---|
84 |
|
---|
85 | #gs_footer {
|
---|
86 | position: absolute;
|
---|
87 | bottom: -30px;
|
---|
88 | left: 0px;
|
---|
89 | width: 99.8%;
|
---|
90 | }
|
---|
91 |
|
---|
92 | #quicksearcharea ul {
|
---|
93 | margin-top: 10px;
|
---|
94 | }
|
---|
95 | </xsl:text>
|
---|
96 | </style>
|
---|
97 | <!--
|
---|
98 | <div id="topArea" class="ui-state-default ui-corner-top">
|
---|
99 | <table>
|
---|
100 | <tbody>
|
---|
101 | <tr>
|
---|
102 | <td><div id="breadcrumbs"><xsl:call-template name="breadcrumbs"/><xsl:text> </xsl:text></div></td>
|
---|
103 |
|
---|
104 |
|
---|
105 | <td><xsl:call-template name="home-help-preferences"/></td>
|
---|
106 | </tr>
|
---|
107 | </tbody>
|
---|
108 | </table>
|
---|
109 | </div>
|
---|
110 | -->
|
---|
111 |
|
---|
112 | <div id="container" class="ui-corner-all">
|
---|
113 |
|
---|
114 | <!-- ***** in header.xsl ***** -->
|
---|
115 | <xsl:call-template name="create-banner"/>
|
---|
116 |
|
---|
117 | <xsl:if test="/page/pageRequest/paramList/param[(@name='formatedit') and (@value='on')]">
|
---|
118 | <xsl:call-template name="formatmanagerpre"/>
|
---|
119 | </xsl:if>
|
---|
120 |
|
---|
121 | <div id="gs_content" class="ui-widget-content">
|
---|
122 | <!--
|
---|
123 | show the content of the page.
|
---|
124 | to customise this part, edit the xsl file for the page you want to edit
|
---|
125 | -->
|
---|
126 | <xsl:apply-templates select="/page"/>
|
---|
127 |
|
---|
128 | </div>
|
---|
129 |
|
---|
130 | <xsl:call-template name="gs_footer"/>
|
---|
131 | </div>
|
---|
132 | </body>
|
---|
133 | </html>
|
---|
134 | </xsl:template>
|
---|
135 |
|
---|
136 |
|
---|
137 | </xsl:stylesheet>
|
---|