Changeset 24007 for main/branches/64_bit_Greenstone/greenstone3/web/interfaces/oran/transform/pages/query.xsl
- Timestamp:
- 2011-05-09T14:37:04+12:00 (13 years ago)
- Location:
- main/branches/64_bit_Greenstone/greenstone3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/branches/64_bit_Greenstone/greenstone3
- Property svn:mergeinfo changed
-
main/branches/64_bit_Greenstone/greenstone3/web/interfaces/oran/transform/pages/query.xsl
r20465 r24007 36 36 <xsl:for-each select="paramList/param"> 37 37 <xsl:choose> 38 <xsl:when test="@name='case' or @name='stem' or @name='accent'"> 39 </xsl:when> 38 40 <xsl:when test="@type='multi'"> 39 41 <xsl:apply-templates select="."><xsl:with-param name="ns" select="$ns"/></xsl:apply-templates> 40 42 </xsl:when> 43 <xsl:when test="@name = 'sortBy' or @name = 'maxDocs'"></xsl:when> 41 44 <xsl:otherwise> 42 45 <xsl:variable name="pvalue"><xsl:apply-templates select="." mode="calculate-default"><xsl:with-param name="ns" select="$ns"/></xsl:apply-templates></xsl:variable> … … 64 67 65 68 <xsl:otherwise> 69 <p class="termList"> 70 <xsl:choose> 71 <xsl:when test="count(/page/pageResponse/termList/term) < 3"> 72 <xsl:for-each select="/page/pageResponse/termList/term"> 73 <span style="font-style:italic;"><xsl:value-of select="@name"/></span> occurs <xsl:value-of select="@freq"/> times in <xsl:value-of select="@numDocsMatch"/> document(s) <br /> 74 </xsl:for-each> 75 </xsl:when> 76 <xsl:otherwise> 77 <xsl:for-each select="/page/pageResponse/termList/term"> 78 <span style="font-style:italic;"><xsl:value-of select="@name"/></span> (<xsl:value-of select="@freq"/>); 79 </xsl:for-each> 80 </xsl:otherwise> 81 </xsl:choose> 82 </p> 66 83 67 84 <ul id="results"> … … 69 86 <li class="document"> 70 87 <a> 71 <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&d=<xsl:value-of select="@nodeID"/>&dt=<xsl:value-of select="@docType"/>&p.a=b&p.s=<xsl:value-of select="/page/pageResponse/service/@name"/></xsl:attribute> 72 <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/> 88 <xsl:choose> 89 <xsl:when test="/page/pageResponse/collection/@name"> 90 <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&d=<xsl:value-of select="@nodeID"/>&dt=<xsl:value-of select="@docType"/>&p.a=q&p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&hl=on&ed=1#<xsl:value-of select="@nodeID"/></xsl:attribute> 91 </xsl:when> 92 <xsl:when test="@collection"> 93 <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&c=<xsl:value-of select="@collection"/>&d=<xsl:value-of select="@nodeID"/>&dt=<xsl:value-of select="@docType"/>&p.a=q&p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&hl=on&ed=1#<xsl:value-of select="@nodeID"/></xsl:attribute> 94 </xsl:when> 95 </xsl:choose> 96 97 <xsl:value-of disable-output-escaping="yes" select="metadataList/metadata[@name='Title']"/> 73 98 </a> 99 100 <!-- If this is results from a cross collection search then add a link to the collection that it is from --> 101 <xsl:if test="@collection"> 102 (<a style="background-image:none; padding:3px;"> 103 <xsl:attribute name="href"> 104 <xsl:value-of select="$library_name"/>?a=p&sa=about&c=<xsl:value-of select="@collection"/> 105 </xsl:attribute> 106 <xsl:value-of select="@collection"/> 107 </a>) 108 </xsl:if> 74 109 <xsl:call-template name="documentBerryForClassifierOrSearchPage"/> 75 110 </li> … … 115 150 </xsl:template> 116 151 117 <!-- invisible params - used by other stuff. in the query form, we set to t ehdefault -->152 <!-- invisible params - used by other stuff. in the query form, we set to the default --> 118 153 <xsl:template match="param[@type='invisible']"> 119 154 <xsl:param name="ns">s1.</xsl:param>
Note:
See TracChangeset
for help on using the changeset viewer.