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-interface">
|
---|
13 | <!-- override the cssTheme from interfaceConfig -->
|
---|
14 | <!--
|
---|
15 | <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/start/jquery-ui.css" type="text/css"/>
|
---|
16 | -->
|
---|
17 | <!--
|
---|
18 | <xsl:call-template name="ateaWrapperSite"/>
|
---|
19 | -->
|
---|
20 |
|
---|
21 | <xsl:variable name="param_workpackage">
|
---|
22 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='jsession.Workpackage']/@value"/>
|
---|
23 | </xsl:variable>
|
---|
24 |
|
---|
25 | <xsl:variable name="param_entrycoll">
|
---|
26 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='jsession.EntryColl']/@value"/>
|
---|
27 | </xsl:variable>
|
---|
28 |
|
---|
29 | <xsl:variable name="url">
|
---|
30 | <xsl:text>interfaces/</xsl:text>
|
---|
31 | <xsl:value-of select="$interface_name"/>
|
---|
32 | </xsl:variable>
|
---|
33 |
|
---|
34 | <link href="{$url}/style/custom.css" rel="stylesheet" type="text/css"/>
|
---|
35 |
|
---|
36 | <xsl:choose>
|
---|
37 | <xsl:when test="$param_entrycoll != '' and $param_entrycoll=$collNameChecked">
|
---|
38 | <link href="{$url}/style/custom-{$param_workpackage}.css" rel="stylesheet" type="text/css"/>
|
---|
39 | </xsl:when>
|
---|
40 | <xsl:otherwise>
|
---|
41 | <link href="{$url}/style/custom-core.css" rel="stylesheet" type="text/css"/>
|
---|
42 | </xsl:otherwise>
|
---|
43 | </xsl:choose>
|
---|
44 |
|
---|
45 |
|
---|
46 | </xsl:template>
|
---|
47 |
|
---|
48 |
|
---|
49 | <xsl:template name="create-banner">
|
---|
50 | <div id="gs_banner" class="ui-widget-header ui-corner-bottom core_banner">
|
---|
51 | <div id="titlesearchcontainer">
|
---|
52 | <xsl:call-template name="page-title-area"/>
|
---|
53 | <xsl:call-template name="quick-search-area"/>
|
---|
54 | <div style="clear:both;"><xsl:text> </xsl:text></div>
|
---|
55 | </div>
|
---|
56 | <xsl:call-template name="browsing-tabs"/>
|
---|
57 | </div>
|
---|
58 | </xsl:template>
|
---|
59 |
|
---|
60 | <xsl:template name="home-help-preferences">
|
---|
61 | <ul id="bannerLinks">
|
---|
62 | <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search' or not(@type)]/gsf:option[@name='RSS']/@value = 'true'">
|
---|
63 | <li><xsl:call-template name="RSSLink"/></li>
|
---|
64 | </xsl:if>
|
---|
65 | <li id="userMenuButton"><xsl:call-template name="LoginoutLink"/></li>
|
---|
66 | <xsl:if test="/page/pageRequest/paramList/param[(@name='debug') and (@value='on' or @value='true' or @value='1' or @value='yes')]">
|
---|
67 | <li><xsl:call-template name="DebugLink"/></li>
|
---|
68 | </xsl:if>
|
---|
69 | <li><xsl:call-template name="PrefsLink"/></li>
|
---|
70 | <!--
|
---|
71 | <li><xsl:call-template name="HelpLink"/></li>
|
---|
72 | -->
|
---|
73 | <xsl:call-template name="buttonStyling"/>
|
---|
74 | </ul>
|
---|
75 |
|
---|
76 | </xsl:template>
|
---|
77 |
|
---|
78 | <xsl:template name="ateaWrapperSite">
|
---|
79 |
|
---|
80 | <xsl:variable name="url">
|
---|
81 | <xsl:text>interfaces/</xsl:text>
|
---|
82 | <xsl:value-of select="$interface_name"/>
|
---|
83 | </xsl:variable>
|
---|
84 |
|
---|
85 | <link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/default.css" media="all" />
|
---|
86 | <!--[if IE]><link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/large.css" media="all" /><![endif]-->
|
---|
87 | <link type="text/css" rel="stylesheet" href="{$url}/wrapper-style/print.css" media="print" />
|
---|
88 | <link rel="shortcut icon" type="image/ico" href="{$url}/wrapper-style/favicon.ico" />
|
---|
89 |
|
---|
90 |
|
---|
91 |
|
---|
92 | </xsl:template>
|
---|
93 |
|
---|
94 |
|
---|
95 |
|
---|
96 |
|
---|
97 | </xsl:stylesheet>
|
---|