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 |
|
---|
5 | <xsl:include href="style.xsl"/>
|
---|
6 |
|
---|
7 | <xsl:output method="html"/>
|
---|
8 |
|
---|
9 | <xsl:template match="message">
|
---|
10 | <html>
|
---|
11 | <xsl:call-template name="greenstoneHead"/>
|
---|
12 | <body xsl:use-attribute-sets="body-style">
|
---|
13 |
|
---|
14 | <xsl:variable name="collName"><xsl:value-of select="request/paramList/param[@name='c']/@value"/></xsl:variable>
|
---|
15 | <center>
|
---|
16 |
|
---|
17 | <xsl:call-template name="collectionPageBanner">
|
---|
18 | <xsl:with-param name="collName" select="$collName"/>
|
---|
19 | </xsl:call-template>
|
---|
20 | <xsl:apply-templates select="request">
|
---|
21 | <xsl:with-param name="collName" select="$collName"/>
|
---|
22 | </xsl:apply-templates>
|
---|
23 | <xsl:apply-templates select="response">
|
---|
24 | <xsl:with-param name="collName" select="$collName"/>
|
---|
25 | </xsl:apply-templates>
|
---|
26 | </center>
|
---|
27 | <xsl:call-template name="greenstoneFooter"/>
|
---|
28 | </body>
|
---|
29 | </html>
|
---|
30 | </xsl:template>
|
---|
31 |
|
---|
32 | <xsl:template match="request">
|
---|
33 | <xsl:param name="collName">coll-name</xsl:param>
|
---|
34 | <xsl:variable name="queryString"><xsl:value-of select="paramList/param[@name='q']/@value"/></xsl:variable>
|
---|
35 | <form name="QueryForm" method="get" action="/gsdl3/library">
|
---|
36 |
|
---|
37 | <input type="hidden" name="a" value="q"/>
|
---|
38 | <input type="hidden" name="sa" value="text"/>
|
---|
39 | <input type="hidden" name="c" value="{$collName}"/>
|
---|
40 | <nobr><input type="text" name="q" value="{$queryString}" size="50"/>
|
---|
41 | <input type="submit" value="Begin Search"/></nobr>
|
---|
42 | </form>
|
---|
43 | <xsl:call-template name="greenBar"/>
|
---|
44 | </xsl:template>
|
---|
45 |
|
---|
46 | <xsl:template match="response">
|
---|
47 | <xsl:param name="collName">coll-name</xsl:param>
|
---|
48 | <table>
|
---|
49 | <xsl:for-each select="content/resourceList/resource">
|
---|
50 | <tr><td><a><xsl:attribute name="href">library?a=r&c=<xsl:value-of select="$collName"/>&r=<xsl:value-of select="@name"/></xsl:attribute>link</a></td><td><xsl:value-of select="metadataList/metadata[@name='Title']"/></td></tr>
|
---|
51 | </xsl:for-each>
|
---|
52 | </table>
|
---|
53 | <xsl:call-template name="greenBar"/>
|
---|
54 | </xsl:template>
|
---|
55 |
|
---|
56 |
|
---|
57 | </xsl:stylesheet>
|
---|
58 |
|
---|