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