Ignore:
Timestamp:
2011-07-27T20:59:04+12:00 (13 years ago)
Author:
ak19
Message:

Getting a normal hierarchical classifier view to work in oran skin: this will be the look for the the default format statements that are present in collectionconfig.xml. Remove those format statements and Sam's much better interface will be displayed. To get things to work, needed to include some template match statements from default/gs3library as these were missing for dev/oran, including lots of elements from classifiertools.xsl. Dev therefore has a new file now: its own classifiertools.xsl.

File:
1 edited

Legend:

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

    r24339 r24340  
    1010    <!-- use the 'main' layout -->
    1111    <xsl:include href="layouts/main.xsl"/>
     12    <xsl:include href="classifiertools.xsl"/>
    1213
    1314    <!-- set page title -->
     
    3536        -->
    3637        <table id="results">
    37             <xsl:for-each select="classifier/*">
    38                 <tr>
    39                     <xsl:apply-templates select="."/>
    40                 </tr>
    41             </xsl:for-each>
     38            <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
     39            <xsl:variable name="serviceName"><xsl:value-of select="service/@name"/></xsl:variable>
     40
     41            <xsl:apply-templates select="classifier">
     42                <xsl:with-param name="collName" select="$collName"/>
     43                <xsl:with-param name="serviceName" select="$serviceName"/>
     44            </xsl:apply-templates>
    4245        </table>
    4346        <div class="clear"><xsl:text> </xsl:text></div>
     
    5861    </xsl:template>-->
    5962
    60     <xsl:template match="documentNode" priority="3">
     63    <xsl:template match="documentNode"><!-- priority="3"-->
    6164        <!-- The book icon -->
    6265        <td>
     
    8487    TEMPLATE FOR GROUPS OF DOCUMENTS
    8588    -->
    86     <xsl:template match="classifierNode">
     89    <xsl:template match="classifierNode"><!-- priority="3"-->
    8790
    8891        <table id="title{@nodeID}"><tr>
Note: See TracChangeset for help on using the changeset viewer.