Ignore:
Timestamp:
2011-05-09T14:37:04+12:00 (13 years ago)
Author:
sjm84
Message:

Updating this branch to match the latest Greenstone3 changes

Location:
main/branches/64_bit_Greenstone/greenstone3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/branches/64_bit_Greenstone/greenstone3

  • main/branches/64_bit_Greenstone/greenstone3/web/interfaces/oran/transform/pages/query.xsl

    r20465 r24007  
    3636                            <xsl:for-each select="paramList/param">
    3737                                <xsl:choose>
     38                                    <xsl:when test="@name='case' or @name='stem' or @name='accent'">
     39                                    </xsl:when>
    3840                                    <xsl:when test="@type='multi'">
    3941                                        <xsl:apply-templates select="."><xsl:with-param name="ns" select="$ns"/></xsl:apply-templates>
    4042                                    </xsl:when>
     43                                    <xsl:when test="@name = 'sortBy' or @name = 'maxDocs'"></xsl:when>
    4144                                    <xsl:otherwise>
    4245                                        <xsl:variable name="pvalue"><xsl:apply-templates select="." mode="calculate-default"><xsl:with-param name="ns" select="$ns"/></xsl:apply-templates></xsl:variable>
     
    6467
    6568            <xsl:otherwise>
     69                <p class="termList">
     70                    <xsl:choose>
     71                        <xsl:when test="count(/page/pageResponse/termList/term) &lt; 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>
    6683               
    6784                <ul id="results">
     
    6986                        <li class="document">
    7087                            <a>
    71                                 <xsl:attribute name="href"><xsl:value-of select="$library_name"/>?a=d&amp;c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&amp;d=<xsl:value-of select="@nodeID"/>&amp;dt=<xsl:value-of select="@docType"/>&amp;p.a=b&amp;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&amp;c=<xsl:value-of select="/page/pageResponse/collection/@name"/>&amp;d=<xsl:value-of select="@nodeID"/>&amp;dt=<xsl:value-of select="@docType"/>&amp;p.a=q&amp;p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&amp;hl=on&amp;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&amp;c=<xsl:value-of select="@collection"/>&amp;d=<xsl:value-of select="@nodeID"/>&amp;dt=<xsl:value-of select="@docType"/>&amp;p.a=q&amp;p.s=<xsl:value-of select="/page/pageResponse/service/@name"/>&amp;hl=on&amp;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']"/>
    7398                            </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&amp;sa=about&amp;c=<xsl:value-of select="@collection"/>
     105                                    </xsl:attribute>
     106                                    <xsl:value-of select="@collection"/>
     107                                </a>)
     108                            </xsl:if>
    74109                            <xsl:call-template name="documentBerryForClassifierOrSearchPage"/>
    75110                        </li>
     
    115150    </xsl:template>
    116151
    117     <!-- invisible params - used by other stuff. in the query form, we set to teh default -->
     152    <!-- invisible params - used by other stuff. in the query form, we set to the default -->
    118153    <xsl:template match="param[@type='invisible']">
    119154        <xsl:param name="ns">s1.</xsl:param>
Note: See TracChangeset for help on using the changeset viewer.