Ignore:
Timestamp:
09/05/11 11:00:50 (9 years ago)
Author:
sjm84
Message:

The ajax classifiers can now be disabled by adding a gsf:option that sets turnstyleClassifiers to false.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/classifiertools.xsl

    r24520 r24557  
    44  xmlns:java="http://xml.apache.org/xslt/java"
    55  xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
     6  xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
    67  extension-element-prefixes="java util"
    7   exclude-result-prefixes="java util">
     8  exclude-result-prefixes="java util gsf">
    89
    910 
     
    9192    <xsl:otherwise>
    9293      <td><table id="title{@nodeID}"><tr>
    93         <td class="headerTD">
     94        <xsl:if test="not(/page/pageResponse/format[@type='browse']/gsf:option[@name='turnstyleClassifiers']) or /page/pageResponse/format[@type='browse']/gsf:option[@name='turnstyleClassifiers']/@value='true'">
     95          <td class="headerTD">
    9496            <img id="toggle{@nodeID}" onclick="toggleSection('{@nodeID}');" class="icon">           
    95                 <xsl:attribute name="src">
    96                     <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'expand_image')"/>
    97                 </xsl:attribute>
     97              <xsl:attribute name="src">
     98                <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'expand_image')"/>
     99              </xsl:attribute>
    98100            </img>
    99         </td>
     101          </td>
     102        </xsl:if>
    100103        <xsl:apply-templates select='.'>
    101104          <xsl:with-param name='collName' select='$collName'/>
Note: See TracChangeset for help on using the changeset viewer.