source: greenstone3/trunk/web/interfaces/default/transform/home.xsl@ 14294

Last change on this file since 14294 was 14294, checked in by qq6, 17 years ago

added links to the authentication page and the library interface page

  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 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 extension-element-prefixes="java util"
7 exclude-result-prefixes="java util">
8
9 <!-- style includes global params interface_name, library_name -->
10 <xsl:include href="style.xsl"/>
11
12 <xsl:output method="html"/>
13
14 <xsl:template name="pageTitle">
15 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
16 </xsl:template>
17
18 <!-- page specific style goes here -->
19 <xsl:template name="pageStyle"/>
20
21 <xsl:template match="pageResponse">
22 <xsl:call-template name="greenstonePageBanner"/>
23 <xsl:apply-templates select="serviceList/service[@name='TextQuery']"/>
24 <xsl:apply-templates select="collectionList"/>
25 <xsl:apply-templates select="serviceClusterList"/>
26 <xsl:apply-templates select="serviceList"/>
27 </xsl:template>
28
29 <xsl:template match="collectionList">
30 <ul id="collectionlist">
31 <xsl:for-each select="collection">
32 <li>
33
34 <xsl:choose>
35 <xsl:when test="displayItem[@name='icon']">
36 <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}">
37 <img>
38 <xsl:attribute name="src">
39 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:value-of select="displayItem[@name='icon']"/>
40 </xsl:attribute>
41 <xsl:attribute name="alt">
42 <xsl:value-of select="displayItem[@name='name']"/>
43 </xsl:attribute>
44 </img>
45 </a>
46 </xsl:when>
47 <xsl:otherwise>
48 <a class="noimage" href="{$library_name}?a=p&amp;sa=about&amp;c={@name}">
49 <xsl:value-of select="displayItem[@name='name']"/>
50 </a>
51 </xsl:otherwise>
52 </xsl:choose>
53
54 </li>
55 </xsl:for-each>
56 </ul>
57 </xsl:template>
58
59 <xsl:template match="serviceClusterList">
60 <xsl:for-each select="serviceCluster">
61 <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}"><xsl:value-of select='@name'/><xsl:value-of select="displayItem[@name='name']"/></a>
62 </xsl:for-each>
63 </xsl:template>
64
65 <xsl:template match="service[@name='TextQuery']">
66 <div class="QuickSearch">
67 <form name="QuickSearch" method="get" action="{$library_name}">
68 <input type="hidden" name="a" value="q"/>
69 <input type="hidden" name="rt" value="rd"/>
70 <input type="hidden" name="s" value="{@name}"/>
71 <input type="hidden" name="s1.collection" value="all"/>
72 <input type="text" name="s1.query" size="20"/>
73 <input type="submit" value="Quick Search"/>
74 </form>
75 </div>
76 </xsl:template>
77
78 <xsl:template match="serviceList">
79 <xsl:call-template name="dividerBar"/>
80 <ul id="servicelist">
81 <xsl:for-each select="service[@type='query']">
82 <li><a href="{$library_name}?a=q&amp;rt=d&amp;s={@name}"><xsl:value-of select="displayItem[@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/></li>
83 </xsl:for-each>
84 <!--uncomment to display an authentication link-->
85 <!--<xsl:for-each select="service[@type='authen']">
86 <li><a href="{$library_name}?a=g&amp;rt=r&amp;sa=authen&amp;s={@name}&amp;s1.aup=Login&amp;s1.un=&amp;s1.asn="><xsl:value-of select="displayItem[@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/></li> </xsl:for-each>-->
87 <!--uncomment to display a library interface link-->
88 <!--<li><a href="{$library_name}?a=p&amp;sa=gli4gs3">The Librarian Interface</a></li>-->
89 </ul>
90 </xsl:template>
91</xsl:stylesheet>
92
93
Note: See TracBrowser for help on using the repository browser.