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 | extension-element-prefixes="java">
|
---|
6 |
|
---|
7 | <xsl:include href="style.xsl"/>
|
---|
8 |
|
---|
9 | <xsl:output method="html"/>
|
---|
10 |
|
---|
11 | <xsl:template name="pageHead">
|
---|
12 | <head>
|
---|
13 | <title><xsl:call-template name="text"><xsl:with-param name="key">nzdl</xsl:with-param></xsl:call-template></title>
|
---|
14 | </head>
|
---|
15 | <xsl:call-template name="headScript"/>
|
---|
16 | </xsl:template>
|
---|
17 |
|
---|
18 | <xsl:template match="pageResponse">
|
---|
19 | <xsl:variable name="collName" select="ancestor::page/pageRequest/paramList/param[@name='c']/@value"/>
|
---|
20 | <center>
|
---|
21 | <xsl:apply-templates select="collection|serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates>
|
---|
22 | </center>
|
---|
23 | </xsl:template>
|
---|
24 |
|
---|
25 | <xsl:template match="serviceCluster">
|
---|
26 | <xsl:param name="collName"/>
|
---|
27 | <xsl:call-template name="clusterPageBanner">
|
---|
28 | <xsl:with-param name="clusterName" select="$collName"/>
|
---|
29 | </xsl:call-template>
|
---|
30 | <p/><xsl:apply-templates select="metadataList">
|
---|
31 | <xsl:with-param name="collName" select="$collName"/>
|
---|
32 | </xsl:apply-templates>
|
---|
33 | <p/><xsl:apply-templates select="serviceList">
|
---|
34 | <xsl:with-param name="collName" select="$collName"/>
|
---|
35 | </xsl:apply-templates>
|
---|
36 | </xsl:template>
|
---|
37 |
|
---|
38 | <xsl:template match="collection">
|
---|
39 | <xsl:param name="collName"/>
|
---|
40 | <xsl:call-template name="collectionPageBanner">
|
---|
41 | <xsl:with-param name="collName" select="$collName"/>
|
---|
42 | <xsl:with-param name="pageType">about</xsl:with-param>
|
---|
43 | </xsl:call-template>
|
---|
44 | <p />
|
---|
45 | <h3>About this collection</h3>
|
---|
46 | <table><tr><td><xsl:value-of select="metadataList/metadata[@name='colDescription']" disable-output-escaping='yes'/></td></tr></table>
|
---|
47 | <p />
|
---|
48 | <h3>How to find information in the <xsl:value-of select="metadataList/metadata[@name='colName']"/> collection</h3>
|
---|
49 | some help stuff goes here
|
---|
50 | </xsl:template>
|
---|
51 |
|
---|
52 |
|
---|
53 | <xsl:template match="metadataList">
|
---|
54 | <xsl:param name="collName">coll-name</xsl:param>
|
---|
55 | <h2><xsl:call-template name="text"><xsl:with-param name="key">about.description</xsl:with-param></xsl:call-template></h2>
|
---|
56 | <p/>
|
---|
57 | <table width='537'>
|
---|
58 | <xsl:for-each select="metadata">
|
---|
59 | <tr valign='top'><td><b><xsl:value-of select="@name"/></b></td><td><xsl:value-of select="."/></td></tr>
|
---|
60 | </xsl:for-each>
|
---|
61 | </table>
|
---|
62 | </xsl:template>
|
---|
63 |
|
---|
64 | <xsl:template match="serviceList">
|
---|
65 | <xsl:param name="collName">coll-name</xsl:param>
|
---|
66 | <xsl:variable name="library" select="ancestor::page/pageExtra/config/library_name"/>
|
---|
67 | <h2><xsl:call-template name="text"><xsl:with-param name="key">about.services</xsl:with-param></xsl:call-template></h2>
|
---|
68 | <xsl:if test="count(service) > 0">
|
---|
69 | <table>
|
---|
70 | <xsl:for-each select="service">
|
---|
71 | <xsl:variable name="action"><xsl:choose>
|
---|
72 | <xsl:when test="@type='query'">q</xsl:when>
|
---|
73 | <xsl:when test="@type='browse'">b</xsl:when>
|
---|
74 | <xsl:when test="@type='process'">pr</xsl:when>
|
---|
75 | <xsl:when test="@type='applet'">a</xsl:when>
|
---|
76 | <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise>
|
---|
77 | </xsl:choose></xsl:variable>
|
---|
78 | <xsl:if test="$action !='DO_NOT_DISPLAY'">
|
---|
79 | <tr><td><a href="{$library}?a={$action}&rt=d&s={@name}&c={$collName}"><xsl:value-of select="@name"/></a></td></tr>
|
---|
80 | </xsl:if>
|
---|
81 | </xsl:for-each>
|
---|
82 | </table>
|
---|
83 | </xsl:if>
|
---|
84 | <xsl:call-template name="greenBar"/>
|
---|
85 | </xsl:template>
|
---|
86 |
|
---|
87 |
|
---|
88 |
|
---|
89 | </xsl:stylesheet>
|
---|
90 |
|
---|