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"><gslib:siteName/></xsl:template>
|
---|
15 |
|
---|
16 | <!-- set page breadcrumbs -->
|
---|
17 | <xsl:template name="breadcrumbs">
|
---|
18 | <xsl:if test="/page/pageRequest/paramList/param[@name='group']">
|
---|
19 | <gslib:siteLink/>
|
---|
20 | <xsl:for-each select="/page/pageResponse/pathList/group">
|
---|
21 | <xsl:sort data-type="number" select="@position"/>
|
---|
22 | <gslib:rightArrow/>
|
---|
23 | <a>
|
---|
24 | <xsl:attribute name="href">
|
---|
25 | <xsl:value-of select="$library_name"/>
|
---|
26 | <xsl:text>?a=p&sa=home&group=</xsl:text>
|
---|
27 | <xsl:value-of select="@path"></xsl:value-of>
|
---|
28 | </xsl:attribute>
|
---|
29 |
|
---|
30 | <xsl:attribute name="title">
|
---|
31 | <xsl:value-of select="./title"></xsl:value-of>
|
---|
32 | </xsl:attribute>
|
---|
33 | <xsl:value-of select="./title"></xsl:value-of>
|
---|
34 | </a>
|
---|
35 | </xsl:for-each>
|
---|
36 | </xsl:if>
|
---|
37 | </xsl:template>
|
---|
38 |
|
---|
39 | <!-- the page content -->
|
---|
40 | <xsl:template match="/page/pageResponse">
|
---|
41 |
|
---|
42 | <div id="quickSearch">
|
---|
43 | <gslib:crossCollectionQuickSearchForm/>
|
---|
44 | </div>
|
---|
45 |
|
---|
46 | <h2><gslib:selectACollectionTextBar/></h2>
|
---|
47 |
|
---|
48 | <xsl:for-each select="collectionList/collection|groupList/group">
|
---|
49 | <xsl:sort data-type="number" select="@position"/>
|
---|
50 | <xsl:if test="name() = 'collection'">
|
---|
51 | <gslib:collectionLinkWithImage/>
|
---|
52 | </xsl:if>
|
---|
53 | <xsl:if test="name() = 'group'">
|
---|
54 | <gslib:groupLinkWithImage/>
|
---|
55 | </xsl:if>
|
---|
56 | </xsl:for-each>
|
---|
57 |
|
---|
58 | <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
|
---|
59 | <xsl:variable name="siteDesc"><gslib:siteDescription/></xsl:variable>
|
---|
60 | <xsl:if test="$siteDesc != ''">
|
---|
61 | <xsl:value-of select="$siteDesc"/>
|
---|
62 | <div style="clear: both; padding-top: 4px; padding-bottom: 4px;"><hr/></div>
|
---|
63 | </xsl:if>
|
---|
64 | <gslib:serviceClusterList/>
|
---|
65 |
|
---|
66 | <xsl:for-each select="serviceList/service[@type='query']">
|
---|
67 | <gslib:serviceLink/><br/>
|
---|
68 | </xsl:for-each>
|
---|
69 |
|
---|
70 | <xsl:for-each select="serviceList/service[@type='authen']">
|
---|
71 | <gslib:authenticationLink/><br/><br/>
|
---|
72 | <gslib:registerLink/><br/>
|
---|
73 | </xsl:for-each>
|
---|
74 |
|
---|
75 | </xsl:template>
|
---|
76 |
|
---|
77 | <xsl:template name="groupLinks">
|
---|
78 | <div id="groupLinks">
|
---|
79 | <!-- <xsl:if test="count(groupList/group) = 0">
|
---|
80 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>
|
---|
81 | <br/>
|
---|
82 | </xsl:if>
|
---|
83 | -->
|
---|
84 | <xsl:for-each select="groupList/group">
|
---|
85 | <gslib:groupLinkWithImage/>
|
---|
86 | </xsl:for-each>
|
---|
87 | <br class="clear"/>
|
---|
88 | </div>
|
---|
89 | </xsl:template>
|
---|
90 |
|
---|
91 | <xsl:template name="collectionLinks">
|
---|
92 | <div id="collectionLinks">
|
---|
93 | <xsl:if test="count(collectionList/collection) = 0">
|
---|
94 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.no_collections')"/>
|
---|
95 | <br/>
|
---|
96 | </xsl:if>
|
---|
97 | <xsl:for-each select="collectionList/collection">
|
---|
98 | <gslib:collectionLinkWithImage/>
|
---|
99 | </xsl:for-each>
|
---|
100 | <br class="clear"/>
|
---|
101 | </div>
|
---|
102 | </xsl:template>
|
---|
103 |
|
---|
104 | <xsl:template match="/page/xsltparams">
|
---|
105 | <!-- suppress xsltparam block in page -->
|
---|
106 | </xsl:template>
|
---|
107 |
|
---|
108 | </xsl:stylesheet>
|
---|
109 |
|
---|
110 |
|
---|