[34009] | 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 -->
|
---|
[34079] | 14 | <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/humanity/jquery-ui.css" type="text/css"/>
|
---|
[34009] | 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"/>
|
---|
[34015] | 23 |
|
---|
[34009] | 24 | <!--
|
---|
| 25 | <script text="text/javascript">
|
---|
| 26 | <xsl:text disable-output-escaping="yes">$(document).ready(function(){
|
---|
| 27 | /* hide cover image div */
|
---|
| 28 | var found = $(document).find("#coverImage");
|
---|
| 29 |
|
---|
| 30 | if(found.length != 0){
|
---|
| 31 | var coverImageDiv = found[0];
|
---|
| 32 | $(coverImageDiv).hide();
|
---|
| 33 | }
|
---|
| 34 | });</xsl:text>
|
---|
[34015] | 35 | </script>
|
---|
| 36 | -->
|
---|
[34009] | 37 |
|
---|
| 38 | </xsl:template>
|
---|
| 39 |
|
---|
[34015] | 40 | <xsl:template name="PeiJonesBackgroundXXXX">
|
---|
[34009] | 41 | <style>
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 | body {
|
---|
| 45 | background-image: url(sites/<xsl:value-of select="$site_name"/>/images/background.jpg);
|
---|
| 46 | background-repeat: no-repeat;
|
---|
| 47 | background-position: center top;
|
---|
| 48 | background-color: #2d2d2d;
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 | #containerXXX {
|
---|
| 53 | max-width: 980px;
|
---|
| 54 | }
|
---|
| 55 |
|
---|
| 56 | .ui-widget-header {
|
---|
| 57 | background: url(sites/<xsl:value-of select="$site_name"/>/images/pei-jones-banner-bg.png);
|
---|
| 58 | repeat-x scroll left top #f1ce28;
|
---|
| 59 | }
|
---|
| 60 |
|
---|
| 61 | .ui-widget-content {
|
---|
| 62 | color: #888888;
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
|
---|
| 66 | /* background: url("images/ui-bg_highlight-hard_15_459e00_1x100.png") repeat-x scroll 50% 50% #459E00; */
|
---|
| 67 | /* 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; */
|
---|
| 68 |
|
---|
| 69 | background: none repeat-x scroll 50% 50% #a0a0a0;
|
---|
| 70 | /* border: 1px solid #327E04; */
|
---|
| 71 | border: 1px solid #808080;
|
---|
| 72 | color: #FFFFFF;
|
---|
| 73 | font-weight: bold;
|
---|
| 74 | }
|
---|
| 75 |
|
---|
| 76 | .ui-widget-header {
|
---|
| 77 | border: 1px solid #808080;
|
---|
| 78 | }
|
---|
| 79 |
|
---|
| 80 | .ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
|
---|
| 81 | color: #000000;
|
---|
| 82 | /* text-decoration: none; */
|
---|
| 83 | }
|
---|
| 84 |
|
---|
| 85 |
|
---|
| 86 |
|
---|
| 87 | </style>
|
---|
| 88 | </xsl:template>
|
---|
| 89 |
|
---|
| 90 |
|
---|
| 91 |
|
---|
| 92 | <xsl:template name="PeiJonesBackgroundWrapperSite">
|
---|
| 93 |
|
---|
| 94 | <xsl:variable name="url">
|
---|
| 95 | <xsl:text>interfaces/</xsl:text>
|
---|
| 96 | <xsl:value-of select="$interface_name"/>
|
---|
| 97 | </xsl:variable>
|
---|
| 98 |
|
---|
| 99 | <link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/default.css" media="all" />
|
---|
| 100 | <!--[if IE]><link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/large.css" media="all" /><![endif]-->
|
---|
| 101 | <link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/print.css" media="print" />
|
---|
| 102 | <link rel="shortcut icon" type="image/ico" href="{$url}/wrapper-style/favicon.ico" />
|
---|
| 103 |
|
---|
| 104 |
|
---|
| 105 |
|
---|
| 106 | <style>
|
---|
| 107 | .ui-widget-header {
|
---|
| 108 | background: #231814 url(interfaces/<xsl:value-of select="$interface_name"/>/images/Atea-background-topline.png) no-repeat top left;
|
---|
| 109 |
|
---|
| 110 | }
|
---|
| 111 |
|
---|
| 112 |
|
---|
| 113 | input, textarea {
|
---|
| 114 | padding: 0px;
|
---|
| 115 | }
|
---|
| 116 |
|
---|
| 117 |
|
---|
| 118 | table#classifiernodelist {
|
---|
| 119 | text-transform: inherit;
|
---|
| 120 | }
|
---|
| 121 |
|
---|
| 122 | .metaTableCellName {
|
---|
| 123 | background: none repeat scroll 0 0 #FDDC75;
|
---|
| 124 | }
|
---|
| 125 |
|
---|
| 126 |
|
---|
| 127 | </style>
|
---|
| 128 |
|
---|
| 129 | <!--
|
---|
| 130 | <gsf:script language="JavaScript" src="{$url}/wrapper-style/script.js"></gsf:script>
|
---|
| 131 | -->
|
---|
| 132 |
|
---|
| 133 |
|
---|
| 134 | </xsl:template>
|
---|
| 135 |
|
---|
| 136 |
|
---|
| 137 |
|
---|
| 138 | <xsl:template name="UserTrackerScripts">
|
---|
| 139 | <script type="text/javascript">
|
---|
| 140 | <xsl:text disable-output-escaping="yes">
|
---|
| 141 | $(window).load(function()
|
---|
| 142 | {
|
---|
| 143 | if(gs.cgiParams.d && gs.userInformation && gs.userInformation.editEnabled == "true")
|
---|
| 144 | {
|
---|
| 145 | var statusBarDiv = $("<div>");
|
---|
| 146 | $("#gs_content").prepend(statusBarDiv);
|
---|
| 147 | var statusBar = new StatusBar(statusBarDiv[0]);
|
---|
| 148 | var statusUsernameMap = new Array();
|
---|
| 149 |
|
---|
| 150 | var recordActionFunction = function()
|
---|
| 151 | {
|
---|
| 152 | var action = gs.userInformation.currentAction;
|
---|
| 153 | if(!action)
|
---|
| 154 | {
|
---|
| 155 | action = "viewingPage";
|
---|
| 156 | }
|
---|
| 157 | $.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);
|
---|
| 158 |
|
---|
| 159 | if(action == "savingNote" && gs.userInformation.saveSentOnce)
|
---|
| 160 | {
|
---|
| 161 | gs.userInformation.currentAction = "viewingPage";
|
---|
| 162 | gs.userInformation.saveSentOnce = false;
|
---|
| 163 | }
|
---|
| 164 | else if(action == "savingNote")
|
---|
| 165 | {
|
---|
| 166 | gs.userInformation.saveSentOnce = true;
|
---|
| 167 | }
|
---|
| 168 | }
|
---|
| 169 | setInterval(recordActionFunction, 5000);
|
---|
| 170 | recordActionFunction();
|
---|
| 171 |
|
---|
| 172 | var userTrackerFunction = function(url)
|
---|
| 173 | {
|
---|
| 174 | $.ajax(url)
|
---|
| 175 | .success(function(response)
|
---|
| 176 | {
|
---|
| 177 | statusBar.clear();
|
---|
| 178 | var xml = $.parseXML(response);
|
---|
| 179 | $(xml).find("userList user").each(function()
|
---|
| 180 | {
|
---|
| 181 | var username = $(this).attr("username");
|
---|
| 182 | if(username == gs.userInformation.username)
|
---|
| 183 | {
|
---|
| 184 | return;
|
---|
| 185 | }
|
---|
| 186 |
|
---|
| 187 | var statusString;
|
---|
| 188 | if($(this).attr("action") == "viewingPage")
|
---|
| 189 | {
|
---|
| 190 | statusString = "User " + $(this).attr("username") + " is currently viewing this page";
|
---|
| 191 | }
|
---|
| 192 | else if($(this).attr("action") == "addingNote")
|
---|
| 193 | {
|
---|
| 194 | statusString = "User " + $(this).attr("username") + " is currently adding a note";
|
---|
| 195 | }
|
---|
| 196 | else if($(this).attr("action") == "editingNote")
|
---|
| 197 | {
|
---|
| 198 | statusString = "User " + $(this).attr("username") + " is currently editing a note";
|
---|
| 199 | }
|
---|
| 200 | else if($(this).attr("action") == "savingNote")
|
---|
| 201 | {
|
---|
| 202 | gs.userInformation.reloadRequired = true;
|
---|
| 203 | statusString = "User " + $(this).attr("username") + " has saved a note";
|
---|
| 204 | }
|
---|
| 205 |
|
---|
| 206 | if(gs.userInformation.reloadRequired)
|
---|
| 207 | {
|
---|
| 208 | statusString += ", a note has been added or changed, please click <a href=\"javascript:location.reload();\">here</a> to reload the page";
|
---|
| 209 | }
|
---|
| 210 | statusBar.addStatus(statusString);
|
---|
| 211 | });
|
---|
| 212 | });
|
---|
| 213 | }
|
---|
| 214 | 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;
|
---|
| 215 | setInterval(function(){userTrackerFunction(getURL);}, 10000);
|
---|
| 216 | userTrackerFunction(getURL);
|
---|
| 217 | }
|
---|
| 218 | });
|
---|
| 219 | </xsl:text>
|
---|
| 220 | </script>
|
---|
| 221 | </xsl:template>
|
---|
| 222 |
|
---|
| 223 | <!-- redefine this to only include the buttons we want, and don't include the styling -->
|
---|
| 224 | <xsl:template name="home-help-preferencesXXXX">
|
---|
| 225 | <xsl:call-template name="PrefsLink"/>
|
---|
| 226 | <xsl:call-template name="HelpLink"/>
|
---|
| 227 | <span id="userMenuButton"><xsl:call-template name="LoginoutLink"/></span>
|
---|
| 228 | </xsl:template>
|
---|
| 229 |
|
---|
| 230 | <!-- redefine to link to google doc -->
|
---|
| 231 | <!--
|
---|
| 232 | <xsl:template name="HelpLink">
|
---|
| 233 | < ! - - help - - >
|
---|
| 234 | <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>
|
---|
| 235 | <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_tip')"/></xsl:attribute>
|
---|
| 236 | <span id="helpButton"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></span>
|
---|
| 237 | </a>
|
---|
| 238 | </xsl:template>
|
---|
| 239 | -->
|
---|
| 240 |
|
---|
| 241 | </xsl:stylesheet>
|
---|