source: greenstone3/trunk/web/interfaces/classic/transform/home.xsl@ 14412

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

added the authentication entry

  • Property svn:keywords set to Author Date Id Revision
File size: 2.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="collectionList"/>
24 <xsl:apply-templates select="serviceList"/>
25 </xsl:template>
26
27 <xsl:template match="collectionList">
28 <xsl:for-each select="collection">
29 <xsl:variable name="ct"><xsl:choose><xsl:when test="metadataList/metadata[@name='buildType']='mgpp'">1</xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:variable>
30
31 <p>
32 <a href="{$library_name}?a=p&amp;sa=about&amp;c={@name}&amp;ct={$ct}">
33 <img width="150" border="1">
34 <xsl:attribute name="src">
35 <xsl:value-of select="metadataList/metadata[@name='httpPath']"/>/images/<xsl:choose><xsl:when test="displayItem[@name='smallicon']"><xsl:value-of select="displayItem[@name='smallicon']"/></xsl:when><xsl:otherwise><xsl:value-of select="displayItem[@name='icon']"/></xsl:otherwise></xsl:choose>
36 </xsl:attribute>
37 <xsl:attribute name="alt">
38 <xsl:value-of select="displayItem[@name='name']"/>
39 </xsl:attribute>
40 </img>
41 </a>
42 </p>
43 </xsl:for-each>
44 <xsl:call-template name="collWarning"/>
45 </xsl:template>
46
47 <xsl:template name="collWarning">
48 <xsl:call-template name="dividerBar"/>
49 <div>
50 <xsl:value-of select="util:getInterfaceText('classic', /page/@lang, 'home.coll_warning')"/>
51 </div>
52 </xsl:template>
53
54<xsl:template match="serviceList">
55 <!--<xsl:call-template name="dividerBar"/>-->
56 <ul id="servicelist">
57 <!--uncomment to display an authentication link-->
58 <!--<xsl:for-each select="service[@type='authen']">
59 <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> <br/> </xsl:for-each>-->
60 <!--uncomment to display a library interface link-->
61 <!--<li><a href="{$library_name}?a=p&amp;sa=gli4gs3">The Librarian Interface</a></li>-->
62 </ul>
63 </xsl:template>
64
65</xsl:stylesheet>
66
67
Note: See TracBrowser for help on using the repository browser.