source: trunk/gsdl3/web/interfaces/classic/transform/query.xsl@ 8532

Last change on this file since 8532 was 8532, checked in by kjdon, 19 years ago

tidied up the style stuff - now uses css. pageHead is now defined by style, with pageTitle and pageStyle in each page. got rid of the attribute sets and colors in style - uses css instead.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 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
10 <xsl:include href="style.xsl"/>
11 <xsl:include href="service-params.xsl"/>
12 <xsl:include href="querytools.xsl"/>
13 <xsl:include href="query-common.xsl"/>
14 <xsl:output method="html"/>
15
16 <xsl:template name="pageTitle">
17 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'nzdl')"/>
18 </xsl:template>
19
20 <!-- page specific style goes here -->
21 <xsl:template name="pageStyle"/>
22
23
24 <xsl:template match="pageResponse">
25 <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
26
27 <center>
28 <xsl:call-template name="standardPageBanner">
29 <xsl:with-param name="collName" select="$collName"/>
30 <xsl:with-param name="pageType">search</xsl:with-param>
31 </xsl:call-template>
32 <xsl:call-template name="navigationBar">
33 <xsl:with-param name="collName" select="$collName"/>
34 </xsl:call-template>
35 <xsl:apply-templates select="service">
36 <xsl:with-param name="collName" select="$collName"/>
37 </xsl:apply-templates>
38 </center>
39
40 <xsl:if test="documentNodeList">
41 <xsl:call-template name="query-response">
42 <xsl:with-param name="collName" select="$collName"/>
43 </xsl:call-template>
44 </xsl:if>
45 <center>
46 <xsl:call-template name="dividerBar"/>
47 </center>
48 </xsl:template>
49
50 <xsl:template name="query-response">
51 <xsl:param name="collName"/>
52 <xsl:call-template name="dividerBar">
53 <xsl:with-param name='text'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.results')"/></xsl:with-param></xsl:call-template>
54
55 <!-- If query term information is available, display it -->
56 <xsl:call-template name="termInfo"/>
57 <!-- If the number of matching documents is known, display it -->
58 <xsl:call-template name="matchDocs"/>
59
60 <!-- Display the matching documents -->
61 <xsl:call-template name="resultList">
62 <xsl:with-param name="collName" select="$collName"/>
63 </xsl:call-template>
64 <!-- next and prev links at bottom of page -->
65 <xsl:call-template name="resultNavigation"/>
66 </xsl:template>
67
68</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.