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="pageHead">
|
---|
15 | <head>
|
---|
16 | <title>
|
---|
17 | <xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/>
|
---|
18 | </title>
|
---|
19 | </head>
|
---|
20 | </xsl:template>
|
---|
21 |
|
---|
22 | <xsl:template match="pageResponse">
|
---|
23 | <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/>
|
---|
24 | <xsl:apply-templates select="collection|serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
|
---|
25 | </xsl:template>
|
---|
26 |
|
---|
27 | <xsl:template match="collection|serviceCluster">
|
---|
28 | <xsl:param name="collName"/>
|
---|
29 | <xsl:if test='name()="collection"'>
|
---|
30 | <xsl:call-template name="collectionPageBanner">
|
---|
31 | <xsl:with-param name="collName" select="$collName"/>
|
---|
32 | </xsl:call-template>
|
---|
33 | </xsl:if>
|
---|
34 | <xsl:if test='name()="serviceCluster"'>
|
---|
35 | <xsl:call-template name="clusterPageBanner">
|
---|
36 | <xsl:with-param name="clusterName" select="$collName"/>
|
---|
37 | </xsl:call-template>
|
---|
38 | </xsl:if>
|
---|
39 | <p/><xsl:apply-templates select="metadataList">
|
---|
40 | <xsl:with-param name="collName" select="$collName"/>
|
---|
41 | </xsl:apply-templates>
|
---|
42 | <p/><xsl:apply-templates select="serviceList">
|
---|
43 | <xsl:with-param name="collName" select="$collName"/>
|
---|
44 | </xsl:apply-templates>
|
---|
45 | </xsl:template>
|
---|
46 |
|
---|
47 |
|
---|
48 | <xsl:template match="metadataList">
|
---|
49 | <xsl:param name="collName"/>
|
---|
50 | <h2><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.description')"/></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"/>
|
---|
61 | <h2><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'about.services')"/></h2>
|
---|
62 | <xsl:if test="service">
|
---|
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_name}?a={$action}&rt=d&s={@name}&c={$collName}"><xsl:value-of select="@name"/></a></td></tr>
|
---|
74 | </xsl:if>
|
---|
75 | </xsl:for-each>
|
---|
76 | </table>
|
---|
77 | </xsl:if>
|
---|
78 | <xsl:call-template name="greenBar"/>
|
---|
79 | </xsl:template>
|
---|
80 |
|
---|
81 |
|
---|
82 | </xsl:stylesheet>
|
---|
83 |
|
---|