- Timestamp:
- 2009-01-06T14:26:10+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/interfaces/default/transform/query.xsl
r17017 r18316 15 15 <xsl:output method="html"/> 16 16 17 17 <!-- the main page layout template is here --> 18 18 <xsl:template match="page"> 19 20 <head>21 22 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->23 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>24 25 26 27 </head>28 29 30 31 32 33 34 19 <html> 20 <head> 21 <title> 22 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 23 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 24 </title> 25 <xsl:call-template name="globalStyle"/> 26 <xsl:call-template name="pageStyle"/> 27 </head> 28 <body> 29 <div id="globalwrapper"> 30 <xsl:call-template name="response" /> 31 <xsl:call-template name="greenstoneFooter"/> 32 </div> 33 </body> 34 </html> 35 35 </xsl:template> 36 36 37 37 <xsl:variable name="berrybasketswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='berrybasket']/@value"/></xsl:variable> 38 38 39 39 <xsl:template name="pageTitle"> … … 43 43 <!-- page specific style goes here --> 44 44 <xsl:template name="pageStyle"> 45 <!--<xsl:if test="$berryBaskets = 'true'">-->46 45 <xsl:if test="$berrybasketswitch = 'on'"> 47 46 <xsl:call-template name="berryStyleSheet"/> … … 61 60 </xsl:call-template> 62 61 <div id="content"> 63 <xsl:apply-templates select="service"> 64 <xsl:with-param name="collName" select="$collName"/> 65 </xsl:apply-templates> 66 67 <!--<xsl:if test="$berryBaskets = 'true'">--> 68 <xsl:if test="$berrybasketswitch = 'on'"> 69 <xsl:call-template name="berrybasket"/> 70 </xsl:if> 62 <xsl:apply-templates select="service"> 63 <xsl:with-param name="collName" select="$collName"/> 64 </xsl:apply-templates> 65 66 <xsl:if test="$berrybasketswitch = 'on'"> 67 <xsl:call-template name="berrybasket"/> 68 </xsl:if> 71 69 <xsl:if test="contains($requesttype, 'r')"> 72 73 <xsl:with-param name="collName" select="$collName"/>74 70 <xsl:call-template name="query-response"> 71 <xsl:with-param name="collName" select="$collName"/> 72 </xsl:call-template> 75 73 </xsl:if> 76 74 77 75 </div> 78 76 </xsl:template> 79 77 80 78 … … 90 88 <xsl:if test="documentNodeList"> 91 89 92 <!-- next and prev links at top of results--> 93 90 <!-- next and prev links at top of results--> 94 91 <xsl:call-template name="resultNavigation"> 95 92 <xsl:with-param name="collName" select="$collName"/> 96 93 </xsl:call-template> 97 98 <!-- Display the matching documents -->99 94 95 <!-- Display the matching documents --> 100 96 <xsl:call-template name="resultList"> 101 97 <xsl:with-param name="collName" select="$collName"/> 102 98 </xsl:call-template> 103 99 104 100 <!-- next and prev links at bottom of page --> 105 101 <xsl:call-template name="resultNavigation"> … … 114 110 <xsl:variable name="subaction" select="../pageRequest/@subaction"/> 115 111 <div id="queryform"> 116 <form name="QueryForm" method="get" action="{$library_name}">117 118 119 120 121 122 123 <input type="hidden" name="startPage" value="1"/>124 125 126 127 </form>112 <form name="QueryForm" method="get" action="{$library_name}"> 113 <input type="hidden" name="a" value="q"/> 114 <input type="hidden" name="sa" value="{$subaction}"/> 115 <input type="hidden" name="rt" value="rd"/> 116 <input type="hidden" name="s" value="{@name}"/> 117 <input type="hidden" name="c" value="{$collName}"/> 118 <xsl:if test="not(paramList/param[@name='startPage'])"> 119 <input type="hidden" name="startPage" value="1"/> 120 </xsl:if> 121 <xsl:apply-templates select="paramList"/> 122 <input type="submit"><xsl:attribute name="value"><xsl:value-of select="displayItem[@name='submit']"/></xsl:attribute></input> 123 </form> 128 124 </div> 129 125 </xsl:template> 130 126 131 127 </xsl:stylesheet> 132 128
Note:
See TracChangeset
for help on using the changeset viewer.