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

Revision 16977, 2.4 KB (checked in by kjdon, 12 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
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, 'gsdl')"/>
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      <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>     
34    <div class="document">
35     <xsl:apply-templates select="service">
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>
43   </div>
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 -->
61    <xsl:call-template name="resultNavigation">
62        <xsl:with-param name="collName" select="$collName"/>
63    </xsl:call-template>   
64  </xsl:template>
65
66</xsl:stylesheet> 
Note: See TracBrowser for help on using the browser.