source: greenstone3/trunk/web/interfaces/gs2/transform/query.xsl@ 16977

Last change on this file since 16977 was 16977, checked in by kjdon, 16 years ago

replaced the search and classifier page titles - was nzdl, now gsdl. Note, should make these titles better and related to teh page

  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
RevLine 
[7831]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
[8532]16 <xsl:template name="pageTitle">
[16977]17 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
[7831]18 </xsl:template>
19
[8532]20 <!-- page specific style goes here -->
21 <xsl:template name="pageStyle"/>
22
23
[7831]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 <xsl:call-template name="standardPageBanner">
28 <xsl:with-param name="collName" select="$collName"/>
29 <xsl:with-param name="pageType">search</xsl:with-param>
30 </xsl:call-template>
31 <xsl:call-template name="navigationBar">
32 <xsl:with-param name="collName" select="$collName"/>
33 </xsl:call-template>
[13254]34 <div class="document">
35 <xsl:apply-templates select="service">
[7831]36 <xsl:with-param name="collName" select="$collName"/>
37 </xsl:apply-templates>
38 <xsl:if test="documentNodeList">
39 <xsl:call-template name="query-response">
40 <xsl:with-param name="collName" select="$collName"/>
41 </xsl:call-template>
42 </xsl:if>
[13254]43 </div>
[7831]44 </xsl:template>
45
46 <xsl:template name="query-response">
47 <xsl:param name="collName"/>
48 <xsl:call-template name="dividerBar">
49 <xsl:with-param name='text'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.results')"/></xsl:with-param></xsl:call-template>
50
51 <!-- If query term information is available, display it -->
52 <xsl:call-template name="termInfo"/>
53 <!-- If the number of matching documents is known, display it -->
54 <xsl:call-template name="matchDocs"/>
55
56 <!-- Display the matching documents -->
57 <xsl:call-template name="resultList">
58 <xsl:with-param name="collName" select="$collName"/>
59 </xsl:call-template>
60 <!-- next and prev links at bottom of page -->
[14375]61 <xsl:call-template name="resultNavigation">
62 <xsl:with-param name="collName" select="$collName"/>
63 </xsl:call-template>
[7831]64 </xsl:template>
65
66</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.