[4869] | 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 | <!-- style includes global params interface_name, library_name -->
|
---|
| 10 | <xsl:include href="style.xsl"/>
|
---|
| 11 | <xsl:include href="service-params.xsl"/>
|
---|
| 12 | <xsl:include href="querytools.xsl"/>
|
---|
| 13 |
|
---|
| 14 | <xsl:output method="html"/>
|
---|
| 15 |
|
---|
[8526] | 16 | <xsl:template name="pageTitle">
|
---|
| 17 | <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/>
|
---|
[4869] | 18 | </xsl:template>
|
---|
| 19 |
|
---|
[8526] | 20 | <!-- page specific style goes here -->
|
---|
| 21 | <xsl:template name="pageStyle"/>
|
---|
| 22 |
|
---|
| 23 |
|
---|
[4869] | 24 | <xsl:template match="pageResponse">
|
---|
| 25 | <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
|
---|
[5119] | 26 | <!-- <center>-->
|
---|
| 27 | <xsl:call-template name="standardPageBanner">
|
---|
| 28 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 29 | </xsl:call-template>
|
---|
| 30 | <xsl:call-template name="navigationBar">
|
---|
| 31 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 32 | </xsl:call-template>
|
---|
| 33 | <!-- <xsl:call-template name="dividerBar">
|
---|
| 34 | <xsl:with-param name="text" select="service/displayItem[@name='name']"/>
|
---|
| 35 | </xsl:call-template>-->
|
---|
| 36 | <xsl:apply-templates select="service">
|
---|
| 37 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 38 | </xsl:apply-templates>
|
---|
| 39 | <!-- </center>-->
|
---|
[4869] | 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>
|
---|
[5119] | 45 | <xsl:call-template name="dividerBar"/>
|
---|
[4869] | 46 | </xsl:template>
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 | <!-- layout the response -->
|
---|
| 50 | <xsl:template name="query-response">
|
---|
| 51 | <xsl:param name="collName"/>
|
---|
[6241] | 52 | <xsl:call-template name="dividerBar"><xsl:with-param name='text'><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'query.results')"/></xsl:with-param></xsl:call-template>
|
---|
[4869] | 53 |
|
---|
| 54 | <!-- If query term information is available, display it -->
|
---|
| 55 | <xsl:call-template name="termInfo"/>
|
---|
| 56 | <xsl:call-template name="matchDocs"/>
|
---|
| 57 |
|
---|
| 58 | <!-- next and prev links at top of results-->
|
---|
[9009] | 59 | <xsl:call-template name="resultNavigation">
|
---|
| 60 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 61 | </xsl:call-template>
|
---|
[4869] | 62 | <!-- Display the matching documents -->
|
---|
| 63 | <xsl:call-template name="resultList">
|
---|
| 64 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 65 | </xsl:call-template>
|
---|
| 66 | <!-- next and prev links at bottom of page -->
|
---|
[9009] | 67 | <xsl:call-template name="resultNavigation">
|
---|
| 68 | <xsl:with-param name="collName" select="$collName"/>
|
---|
| 69 | </xsl:call-template>
|
---|
[4869] | 70 | </xsl:template>
|
---|
| 71 |
|
---|
| 72 |
|
---|
| 73 | <xsl:template match="service">
|
---|
| 74 | <xsl:param name="collName"/>
|
---|
| 75 | <xsl:variable name="subaction" select="../pageRequest/@subaction"/>
|
---|
[5133] | 76 | <form name="QueryForm" method="get" action="{$library_name}">
|
---|
[4869] | 77 | <input type="hidden" name="a" value="q"/>
|
---|
| 78 | <input type="hidden" name="sa" value="{$subaction}"/>
|
---|
| 79 | <input type="hidden" name="rt" value="r"/>
|
---|
| 80 | <input type="hidden" name="s" value="{@name}"/>
|
---|
| 81 | <input type="hidden" name="c" value="{$collName}"/>
|
---|
[5133] | 82 | <xsl:if test="not(paramList/param[@name='startPage'])">
|
---|
| 83 | <input type="hidden" name="startPage" value="1"/>
|
---|
| 84 | </xsl:if>
|
---|
[4869] | 85 | <xsl:apply-templates select="paramList"/>
|
---|
[5119] | 86 | <br/>
|
---|
[4900] | 87 | <input type="submit"><xsl:attribute name="value"><xsl:value-of select="displayItem[@name='submit']"/></xsl:attribute></input>
|
---|
[4869] | 88 | </form>
|
---|
| 89 | </xsl:template>
|
---|
| 90 |
|
---|
| 91 | </xsl:stylesheet>
|
---|
[6241] | 92 |
|
---|
| 93 |
|
---|
| 94 |
|
---|
| 95 |
|
---|
| 96 |
|
---|
| 97 |
|
---|