source: trunk/gsdl3/interfaces/default/transform/about.xsl@ 3686

Last change on this file since 3686 was 3686, checked in by kjdon, 21 years ago

tidy up, cgi args changes, other stuff

  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4xmlns:java="http://xml.apache.org/xslt/java"
5extension-element-prefixes="java">
6
7<xsl:include href="style.xsl"/>
8
9<xsl:output method="html"/>
10
11<xsl:template match="page">
12<xsl:variable name="collName" select="response/@from"/>
13<html>
14<xsl:call-template name="greenstoneHead"/>
15<body xsl:use-attribute-sets="body-style">
16<center>
17<table width='537'>
18<tr><td>
19<xsl:apply-templates select="response/collection|response/serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
20</td></tr></table>
21</center>
22<xsl:call-template name="greenstoneFooter"/>
23</body>
24</html>
25</xsl:template>
26
27<xsl:template match="collection|serviceCluster">
28<xsl:param name="collName">coll-name</xsl:param>
29<xsl:if test='name()="collection"'>
30<xsl:call-template name="collectionPageBanner">
31<xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param>
32<xsl:with-param name="collIcon"><xsl:value-of select="metadataList/metadata[@name='colIcon']"/></xsl:with-param>
33</xsl:call-template>
34</xsl:if>
35<xsl:if test='name()="serviceCluster"'>
36<xsl:call-template name="clusterPageBanner">
37<xsl:with-param name="clusterName"><xsl:value-of select="$collName"/></xsl:with-param></xsl:call-template>
38</xsl:if>
39<p/><xsl:apply-templates select="metadataList">
40<xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param>
41</xsl:apply-templates>
42<p/><xsl:apply-templates select="serviceList">
43<xsl:with-param name="collName"><xsl:value-of select="$collName"/></xsl:with-param>
44</xsl:apply-templates>
45</xsl:template>
46
47
48<xsl:template match="metadataList">
49<xsl:param name="collName">coll-name</xsl:param>
50<h2><xsl:call-template name="text"><xsl:with-param name="key">about.description</xsl:with-param></xsl:call-template></h2>
51<p/>
52<table width='537'>
53<xsl:for-each select="metadata">
54<tr valign='top'><td><b><xsl:value-of select="@name"/></b></td><td><xsl:value-of select="."/></td></tr>
55</xsl:for-each>
56</table>
57</xsl:template>
58
59<xsl:template match="serviceList">
60<xsl:param name="collName">coll-name</xsl:param>
61<xsl:variable name="library" select="ancestor::page/config/library_name"/>
62<h2><xsl:call-template name="text"><xsl:with-param name="key">about.services</xsl:with-param></xsl:call-template></h2>
63<table>
64<xsl:for-each select="service">
65<xsl:variable name="action"><xsl:choose>
66 <xsl:when test="@type='query'">q</xsl:when>
67 <xsl:when test="@type='browse'">b</xsl:when>
68 <xsl:when test="@type='process'">pr</xsl:when>
69 <xsl:when test="@type='applet'">a</xsl:when>
70 <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
71</xsl:choose></xsl:variable>
72<xsl:if test="$action !='DO_NOT_DISPLAY'">
73<tr><td><a href="{$library}?a={$action}&amp;rt=d&amp;s={@name}&amp;c={$collName}"><xsl:value-of select="@name"/></a></td></tr>
74</xsl:if>
75</xsl:for-each>
76</table>
77<xsl:call-template name="greenBar"/>
78</xsl:template>
79
80
81
82</xsl:stylesheet>
83
Note: See TracBrowser for help on using the repository browser.