source: main/trunk/greenstone3/web/interfaces/oran/transform/pages/help.xsl@ 23813

Last change on this file since 23813 was 23813, checked in by sjm84, 10 years ago

Lots of upgrades to the oran skin, getting it ready to be the default skin for Greenstone3

File size: 6.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 extension-element-prefixes="java util"
8 exclude-result-prefixes="java util">
9
10 <!-- use the 'main' layout -->
11 <xsl:include href="layouts/main.xsl"/>
12
13 <!-- set page title -->
14 <xsl:template name="pageTitle"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'help_b')"/></xsl:template>
15
16 <!-- set page breadcrumbs -->
17 <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/> <gslib:collectionNameLinked/><gslib:rightArrow/></xsl:template>
18
19 <!-- the page content -->
20 <xsl:template match="page">
21 <xsl:call-template name="helpTopics"/>
22 <xsl:call-template name="findingInformationHelp"/>
23 <xsl:call-template name="readingDocsHelp"/>
24 <xsl:call-template name="searchingHelp"/>
25 <xsl:call-template name="preferencesHelp"/>
26 </xsl:template>
27
28 <xsl:template name="helpTopics">
29
30 </xsl:template>
31
32 <xsl:template name="findingInformationHelp">
33 <xsl:variable name="searchEnabled">
34 <xsl:choose>
35 <xsl:when test="/page/pageResponse/collection[@name=$collName]/serviceList/service[@type='query']">1</xsl:when>
36 <xsl:otherwise>0</xsl:otherwise>
37 </xsl:choose>
38 </xsl:variable>
39
40 <xsl:variable name="numClassifiers">
41 <xsl:value-of select="count(/page/pageResponse/collection[@name=$collName]/serviceList/service[@name = 'ClassifierBrowse']/classifierList/classifier)"/>
42 </xsl:variable>
43
44 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.findinginformationtitle')"/>
45 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.findinginformation', $searchEnabled + $numClassifiers)"/>
46
47 <!-- using actual <ul> and <li> tags here would cause the XML parser to break -->
48 <xsl:text disable-output-escaping="yes">&lt;ul&gt;</xsl:text>
49 <xsl:if test="$searchEnabled = 1">
50 <xsl:text disable-output-escaping="yes">&lt;li&gt;</xsl:text>
51 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searchdesc')"/>
52 <xsl:text disable-output-escaping="yes">&lt;/li&gt;</xsl:text>
53 </xsl:if>
54
55 <xsl:for-each select="/page/pageResponse/collection[@name=$collName]/serviceList/service[@name = 'ClassifierBrowse']/classifierList/classifier">
56 <xsl:text disable-output-escaping="yes">&lt;li&gt;</xsl:text>
57 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.browsedesc', ./displayItem[@name = 'name'])"/>
58 <xsl:text disable-output-escaping="yes">&lt;/li&gt;</xsl:text>
59 </xsl:for-each>
60 <xsl:text disable-output-escaping="yes">&lt;/ul&gt;</xsl:text>
61 </xsl:template>
62
63 <xsl:template name="readingDocsHelp">
64 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.readingdocstitle')"/>
65 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.readingdocs')"/>
66
67 <table>
68 <tr>
69 <td colspan="2"><img src="interfaces/oran/images/bookshelf.png"/></td>
70 <td><xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.openbookshelf')"/></td>
71 </tr>
72 <tr>
73 <td><img src="interfaces/oran/images/previous.png"/></td>
74 <td><img src="interfaces/oran/images/next.png"/></td>
75 <td><xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.sectionarrows')"/></td>
76 </tr>
77 </table>
78 </xsl:template>
79
80 <xsl:template name="searchingHelp">
81 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searchingtitle')"/>
82 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searching')"/>
83
84 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.querytermstitle')"/>
85 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.queryterms')"/>
86
87 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.querytypetitle')"/>
88 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.querytype')"/>
89
90 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.queryscopetitle')"/>
91 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.queryscope')"/>
92 </xsl:template>
93
94 <xsl:template name="preferencesHelp">
95 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.changingpreferencestitle')"/>
96 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.changingpreferences')"/>
97
98 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.collectionpreferencestitle')"/>
99 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.collectionpreferences')"/>
100
101 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.languagepreferencestitle')"/>
102 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.languagepreferences')"/>
103
104 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.presentationpreferencestitle')"/>
105 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.presentationpreferences')"/>
106
107 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searchpreferencestitle')"/>
108 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searchpreferences1')"/>
109 <xsl:if test="/page/pageResponse/collection[@name=$collName and (@type='mgpp' or @type='mg')]">
110 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.mgsearchpreferences')"/>
111 </xsl:if>
112 <xsl:value-of disable-output-escaping="yes" select="util:getInterfaceText($interface_name, /page/@lang, 'help.searchpreferences2')"/>
113 </xsl:template>
114</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.