root/main/trunk/greenstone3/web/interfaces/default/transform/pages/help.xsl @ 25704

Revision 25704, 6.7 KB (checked in by kjdon, 7 years ago)

renaming interfaces step 2: oran interface renamed to default. oran paths fixed up

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