source: main/trunk/model-interfaces-dev/alt-atea/transform/layouts/main.xsl@ 34009

Last change on this file since 34009 was 34009, checked in by davidb, 4 years ago

PJ based alternative interface for Atea

File size: 3.6 KB
Line 
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
19 <!-- the main layout is defined here -->
20 <xsl:template name="mainTemplate">
21
22 <xsl:variable name="pjbaseurl">
23 <xsl:text>interfaces/</xsl:text>
24 <xsl:value-of select="$interface_name"/>
25 <xsl:text>/wrapper-style</xsl:text>
26 </xsl:variable>
27 <xsl:variable name="pjextbaseurl">
28 <xsl:text>http://peitehurinuijones.co.nz</xsl:text>
29 </xsl:variable>
30
31
32 <html>
33
34 <head>
35 <!-- ***** in header.xsl ***** -->
36 <xsl:call-template name="create-html-header"/>
37 </head>
38
39 <body><xsl:call-template name="textDirectionAttribute"/><xsl:call-template name="actionClass"/>
40
41 <!--<xsl:call-template name="displayErrorsIfAny"/>-->
42 <a name="top"><xsl:text> </xsl:text></a>
43
44<!-- Wrapper header start -->
45<div id="wrapper-container">
46
47<div id="header">
48
49
50 <div class="headLeft"><a href="{$library_name}" title="Ātea - Home"><img src="interfaces/{$interface_name}/images/Atea-logo.png" width="270" height="104" alt="Ātea - Home" /></a></div>
51 <div class="headRight">
52
53 <!--
54 <a href="{$library_name}" title="Ātea - Home">Home</a>
55 -->
56 <!--
57 <a href="{$pjextbaseurl}/about.html" title="About">About</a>
58 <a href="{$pjextbaseurl}/contact.html" title="Contact">Contact</a>
59 -->
60 <xsl:call-template name="home-help-preferences"/>
61
62 </div>
63</div>
64<!-- Wrapper header end -->
65
66 <div id="topArea" class="ui-state-default ui-corner-top">
67 <xsl:comment>Place-holder to stop div collapsing</xsl:comment>
68 </div>
69
70
71
72<!-- nav start -->
73<div id="nav">
74 <!-- previously, e.g.: href="{$url}/wrapper-style/research.html" title="Research" -->
75 <!-- then : href="{$pjbaseurl}/research.html" title="Research" -->
76 <!--
77 <ul>
78 <li><a href="http://{$pjbaseurl}/bio.html" title="Bio">Bio</a></li>
79< ! - - <li><a href="{$library_name}/collection/digital-library/page/about/" title="Digital library">Digital library</a></li> - - >
80 <li><a href="{$library_name}/collection/written-works/page/about/" title="Written works">Written works</a></li>
81 <li><a href="{$library_name}/collection/gallery/page/about/" title="Gallery">Gallery</a></li>
82 <li><a href="{$library_name}/collection/taonga/page/about/" title="Taonga">Taonga</a></li>
83 <li><a href="{$pjextbaseurl}/research.html" title="Research">Research</a></li>
84 </ul>
85 -->
86
87 <ul>
88 <li> </li>
89 </ul>
90</div>
91<!-- nav end -->
92
93
94 <div id="container" class="ui-corner-all">
95
96 <!-- ***** in header.xsl ***** -->
97 <xsl:call-template name="create-banner"/>
98
99 <xsl:if test="/page/pageRequest/paramList/param[(@name='formatedit') and (@value='on')]">
100 <xsl:call-template name="formatmanagerpre"/>
101 </xsl:if>
102
103 <div id="gs_content" class="ui-widget-content">
104 <!--
105 show the content of the page.
106 to customise this part, edit the xsl file for the page you want to edit
107 -->
108 <xsl:apply-templates select="/page"/>
109
110 </div>
111
112 <xsl:call-template name="gs_footer"/>
113 </div>
114</div>
115<!-- Wrapper container end -->
116
117 </body>
118 </html>
119 </xsl:template>
120
121</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.