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 | 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 |
|
---|
12 | <xsl:template name="additionalHeaderContent-site">
|
---|
13 | <!-- override the cssTheme from interfaceConfig -->
|
---|
14 | <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/humanity/jquery-ui.css" type="text/css"/>
|
---|
15 | <xsl:call-template name="basketHeadTags"/>
|
---|
16 | <xsl:call-template name="PeiJonesBackgroundWrapperSite"/>
|
---|
17 |
|
---|
18 | <xsl:variable name="url">
|
---|
19 | <xsl:text>interfaces/</xsl:text>
|
---|
20 | <xsl:value-of select="$interface_name"/>
|
---|
21 | </xsl:variable>
|
---|
22 | <link href="{$url}/style/custom.css" rel="stylesheet" type="text/css"/>
|
---|
23 | <!--
|
---|
24 | <link href="{$url}/script/image-annotator/css/annotation.css" rel="stylesheet" type="text/css"/>
|
---|
25 | -->
|
---|
26 | <!--
|
---|
27 | <link href="{$url}/style/pei-jones-background.css" rel="stylesheet" type="text/css"/>
|
---|
28 | -->
|
---|
29 | <!--
|
---|
30 | <link href="{$url}/script/text-annotator/annotator.min.css" rel="stylesheet" type="text/css"/>
|
---|
31 | <gsf:script src="{$url}/script/image-annotator/js/jquery.annotate2.js"/>
|
---|
32 | <gsf:script src="{$url}/script/gsajax-min.js"/>
|
---|
33 | <gsf:script src="{$url}/script/setup-features.js"/>
|
---|
34 | -->
|
---|
35 |
|
---|
36 | <!--
|
---|
37 | gsf:script src="{$url}/script/text-annotator/annotator-full.min.js"/>
|
---|
38 | -->
|
---|
39 | <script text="text/javascript">
|
---|
40 | <xsl:text disable-output-escaping="yes">$(document).ready(function(){
|
---|
41 | /* hide cover image div */
|
---|
42 | var found = $(document).find("#coverImage");
|
---|
43 |
|
---|
44 | if(found.length != 0){
|
---|
45 | var coverImageDiv = found[0];
|
---|
46 | $(coverImageDiv).hide();
|
---|
47 | }
|
---|
48 | });</xsl:text>
|
---|
49 | </script>
|
---|
50 | <!-- <script type="text/javascript">
|
---|
51 | dynamic_metadata_list = false;
|
---|
52 | </script>-->
|
---|
53 |
|
---|
54 | </xsl:template>
|
---|
55 |
|
---|
56 | <xsl:template name="PeiJonesBackground">
|
---|
57 | <style>
|
---|
58 |
|
---|
59 |
|
---|
60 | body {
|
---|
61 | background-image: url(sites/<xsl:value-of select="$site_name"/>/images/background.jpg);
|
---|
62 | background-repeat: no-repeat;
|
---|
63 | background-position: center top;
|
---|
64 | background-color: #2d2d2d;
|
---|
65 | }
|
---|
66 |
|
---|
67 |
|
---|
68 | #containerXXX {
|
---|
69 | max-width: 980px;
|
---|
70 | }
|
---|
71 |
|
---|
72 | .ui-widget-header {
|
---|
73 | background: url(sites/<xsl:value-of select="$site_name"/>/images/pei-jones-banner-bg.png);
|
---|
74 | repeat-x scroll left top #f1ce28;
|
---|
75 | }
|
---|
76 |
|
---|
77 | .ui-widget-content {
|
---|
78 | color: #888888;
|
---|
79 | }
|
---|
80 |
|
---|
81 | .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
|
---|
82 | /* background: url("images/ui-bg_highlight-hard_15_459e00_1x100.png") repeat-x scroll 50% 50% #459E00; */
|
---|
83 | /* background: url(interfaces/<xsl:value-of select="$interface_name"/>/xxstyle/themes/main/images/ui-bg_highlight-hard_15_459e00_1x100.png) repeat-x scroll 50% 50% #a0a0a0; */
|
---|
84 |
|
---|
85 | background: none repeat-x scroll 50% 50% #a0a0a0;
|
---|
86 | /* border: 1px solid #327E04; */
|
---|
87 | border: 1px solid #808080;
|
---|
88 | color: #FFFFFF;
|
---|
89 | font-weight: bold;
|
---|
90 | }
|
---|
91 |
|
---|
92 | .ui-widget-header {
|
---|
93 | border: 1px solid #808080;
|
---|
94 | }
|
---|
95 |
|
---|
96 | .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
|
---|
97 | color: #000000;
|
---|
98 | /* text-decoration: none; */
|
---|
99 | }
|
---|
100 |
|
---|
101 |
|
---|
102 |
|
---|
103 | </style>
|
---|
104 | </xsl:template>
|
---|
105 |
|
---|
106 |
|
---|
107 |
|
---|
108 | <xsl:template name="PeiJonesBackgroundWrapperSite">
|
---|
109 |
|
---|
110 | <xsl:variable name="url">
|
---|
111 | <xsl:text>interfaces/</xsl:text>
|
---|
112 | <xsl:value-of select="$interface_name"/>
|
---|
113 | </xsl:variable>
|
---|
114 |
|
---|
115 | <link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/default.css" media="all" />
|
---|
116 | <!--[if IE]><link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/large.css" media="all" /><![endif]-->
|
---|
117 | <link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/print.css" media="print" />
|
---|
118 | <link rel="shortcut icon" type="image/ico" href="{$url}/wrapper-style/favicon.ico" />
|
---|
119 |
|
---|
120 |
|
---|
121 |
|
---|
122 | <style>
|
---|
123 | .ui-widget-header {
|
---|
124 | background: #231814 url(interfaces/<xsl:value-of select="$interface_name"/>/images/Atea-background-topline.png) no-repeat top left;
|
---|
125 |
|
---|
126 | }
|
---|
127 |
|
---|
128 |
|
---|
129 | input, textarea {
|
---|
130 | padding: 0px;
|
---|
131 | }
|
---|
132 |
|
---|
133 |
|
---|
134 | table#classifiernodelist {
|
---|
135 | text-transform: inherit;
|
---|
136 | }
|
---|
137 |
|
---|
138 | .metaTableCellName {
|
---|
139 | background: none repeat scroll 0 0 #FDDC75;
|
---|
140 | }
|
---|
141 |
|
---|
142 |
|
---|
143 | </style>
|
---|
144 |
|
---|
145 | <!--
|
---|
146 | <gsf:script language="JavaScript" src="{$url}/wrapper-style/script.js"></gsf:script>
|
---|
147 | -->
|
---|
148 |
|
---|
149 |
|
---|
150 | </xsl:template>
|
---|
151 |
|
---|
152 | <xsl:template name="PeiJonesBackground2014">
|
---|
153 |
|
---|
154 | <link type="text/css" rel="stylesheet" href="http://peitehurinuijones.co.nz/temp/default.css" media="all" />
|
---|
155 | <!--[if IE]><link type="text/css" rel="stylesheet" href="large.css" media="all" /><![endif]-->
|
---|
156 | <link type="text/css" rel="stylesheet" href="http://peitehurinuijones.co.nz/temp/print.css" media="print" />
|
---|
157 | <link rel="shortcut icon" type="image/ico" href="http://peitehurinuijones.co.nz/temp/favicon.ico" />
|
---|
158 |
|
---|
159 |
|
---|
160 | <style>
|
---|
161 | body {
|
---|
162 | background-image: url(sites/<xsl:value-of select="$site_name"/>/images/background.jpg);
|
---|
163 | background-repeat: no-repeat;
|
---|
164 | background-position: center top;
|
---|
165 | background-color: #2d2d2d;
|
---|
166 | }
|
---|
167 |
|
---|
168 | #containerXXX {
|
---|
169 | max-width: 980px;
|
---|
170 | }
|
---|
171 |
|
---|
172 | #topArea {
|
---|
173 | margin: 0px auto 0;
|
---|
174 | /* max-width: 970px; */
|
---|
175 | }
|
---|
176 |
|
---|
177 | .ui-widget-header {
|
---|
178 | background: url(sites/<xsl:value-of select="$site_name"/>/images/pei-jones-banner-bg.png);
|
---|
179 | repeat-x scroll left top #f1ce28;
|
---|
180 | }
|
---|
181 |
|
---|
182 | .ui-widget-content {
|
---|
183 | color: #888888;
|
---|
184 | }
|
---|
185 |
|
---|
186 | .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
|
---|
187 | /* background: url("images/ui-bg_highlight-hard_15_459e00_1x100.png") repeat-x scroll 50% 50% #459E00; */
|
---|
188 | /* background: url(interfaces/<xsl:value-of select="$interface_name"/>/xxstyle/themes/main/images/ui-bg_highlight-hard_15_459e00_1x100.png) repeat-x scroll 50% 50% #a0a0a0; */
|
---|
189 |
|
---|
190 | background: none repeat-x scroll 50% 50% #a0a0a0;
|
---|
191 | /* border: 1px solid #327E04; */
|
---|
192 | border: 1px solid #808080;
|
---|
193 | color: #FFFFFF;
|
---|
194 | font-weight: bold;
|
---|
195 | }
|
---|
196 |
|
---|
197 | .ui-widget-header {
|
---|
198 | border: 1px solid #808080;
|
---|
199 | }
|
---|
200 |
|
---|
201 | .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
|
---|
202 | color: #000000;
|
---|
203 | /* text-decoration: none; */
|
---|
204 | }
|
---|
205 | </style>
|
---|
206 | </xsl:template>
|
---|
207 |
|
---|
208 |
|
---|
209 |
|
---|
210 |
|
---|
211 |
|
---|
212 | <xsl:template name="UserTrackerScripts">
|
---|
213 | <script type="text/javascript">
|
---|
214 | <xsl:text disable-output-escaping="yes">
|
---|
215 | $(window).load(function()
|
---|
216 | {
|
---|
217 | if(gs.cgiParams.d && gs.userInformation && gs.userInformation.editEnabled == "true")
|
---|
218 | {
|
---|
219 | var statusBarDiv = $("<div>");
|
---|
220 | $("#gs_content").prepend(statusBarDiv);
|
---|
221 | var statusBar = new StatusBar(statusBarDiv[0]);
|
---|
222 | var statusUsernameMap = new Array();
|
---|
223 |
|
---|
224 | var recordActionFunction = function()
|
---|
225 | {
|
---|
226 | var action = gs.userInformation.currentAction;
|
---|
227 | if(!action)
|
---|
228 | {
|
---|
229 | action = "viewingPage";
|
---|
230 | }
|
---|
231 | $.ajax(gs.xsltParams.library_name + "?a=g&rt=ro&s=RecordUserAction&s1.site=" + gs.xsltParams.site_name + "&s1.collection=" + gs.cgiParams.c + "&s1.oid=" + gs.cgiParams.d + "&s1.username=" + gs.userInformation.username + "&s1.action=" + action);
|
---|
232 |
|
---|
233 | if(action == "savingNote" && gs.userInformation.saveSentOnce)
|
---|
234 | {
|
---|
235 | gs.userInformation.currentAction = "viewingPage";
|
---|
236 | gs.userInformation.saveSentOnce = false;
|
---|
237 | }
|
---|
238 | else if(action == "savingNote")
|
---|
239 | {
|
---|
240 | gs.userInformation.saveSentOnce = true;
|
---|
241 | }
|
---|
242 | }
|
---|
243 | setInterval(recordActionFunction, 5000);
|
---|
244 | recordActionFunction();
|
---|
245 |
|
---|
246 | var userTrackerFunction = function(url)
|
---|
247 | {
|
---|
248 | $.ajax(url)
|
---|
249 | .success(function(response)
|
---|
250 | {
|
---|
251 | statusBar.clear();
|
---|
252 | var xml = $.parseXML(response);
|
---|
253 | $(xml).find("userList user").each(function()
|
---|
254 | {
|
---|
255 | var username = $(this).attr("username");
|
---|
256 | if(username == gs.userInformation.username)
|
---|
257 | {
|
---|
258 | return;
|
---|
259 | }
|
---|
260 |
|
---|
261 | var statusString;
|
---|
262 | if($(this).attr("action") == "viewingPage")
|
---|
263 | {
|
---|
264 | statusString = "User " + $(this).attr("username") + " is currently viewing this page";
|
---|
265 | }
|
---|
266 | else if($(this).attr("action") == "addingNote")
|
---|
267 | {
|
---|
268 | statusString = "User " + $(this).attr("username") + " is currently adding a note";
|
---|
269 | }
|
---|
270 | else if($(this).attr("action") == "editingNote")
|
---|
271 | {
|
---|
272 | statusString = "User " + $(this).attr("username") + " is currently editing a note";
|
---|
273 | }
|
---|
274 | else if($(this).attr("action") == "savingNote")
|
---|
275 | {
|
---|
276 | gs.userInformation.reloadRequired = true;
|
---|
277 | statusString = "User " + $(this).attr("username") + " has saved a note";
|
---|
278 | }
|
---|
279 |
|
---|
280 | if(gs.userInformation.reloadRequired)
|
---|
281 | {
|
---|
282 | statusString += ", a note has been added or changed, please click <a href=\"javascript:location.reload();\">here</a> to reload the page";
|
---|
283 | }
|
---|
284 | statusBar.addStatus(statusString);
|
---|
285 | });
|
---|
286 | });
|
---|
287 | }
|
---|
288 | var getURL = gs.xsltParams.library_name + "?a=g&rt=ro&s=GetActivityOnPage&s1.site=" + gs.xsltParams.site_name + "&s1.collection=" + gs.cgiParams.c + "&s1.oid=" + gs.cgiParams.d;
|
---|
289 | setInterval(function(){userTrackerFunction(getURL);}, 10000);
|
---|
290 | userTrackerFunction(getURL);
|
---|
291 | }
|
---|
292 | });
|
---|
293 | </xsl:text>
|
---|
294 | </script>
|
---|
295 | </xsl:template>
|
---|
296 |
|
---|
297 | <!-- redefine this to only include the buttons we want, and don't include the styling -->
|
---|
298 | <xsl:template name="home-help-preferencesXXXX">
|
---|
299 | <xsl:call-template name="PrefsLink"/>
|
---|
300 | <xsl:call-template name="HelpLink"/>
|
---|
301 | <span id="userMenuButton"><xsl:call-template name="LoginoutLink"/></span>
|
---|
302 | </xsl:template>
|
---|
303 |
|
---|
304 | <!-- redefine to link to google doc -->
|
---|
305 | <!--
|
---|
306 | <xsl:template name="HelpLink">
|
---|
307 | < ! - - help - - >
|
---|
308 | <a><xsl:attribute name="href"><xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="/page/pageResponse/collection/@name"/>/page/html?url=https://docs.google.com/document/d/18PinB6uwdOvwzPi8foIV0hF4G8eNVYJ5XyqYL_k7ij0/edit?usp=sharing</xsl:attribute>
|
---|
309 | <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
|
---|
310 | <span id="helpButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></span>
|
---|
311 | </a>
|
---|
312 | </xsl:template>
|
---|
313 | -->
|
---|
314 |
|
---|
315 | </xsl:stylesheet>
|
---|