Changeset 20477 for greenstone3

Show
Ignore:
Timestamp:
02.09.2009 13:02:00 (11 years ago)
Author:
oranfry
Message:

if there is only one classifier, dont display a list of classifiers

Files:
1 modified

Legend:

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

    r19988 r20477  
    2020    <xsl:template match="/page/pageResponse"> 
    2121 
    22  
    23         <!-- show the classifiers (title, subject, etc.) --> 
    24         <div id="classifierList" class="navList"> 
    25             <ul> 
    26                 <xsl:for-each select="service/classifierList/classifier"> 
    27                     <li><gslib:classifierLink/></li> 
    28                 </xsl:for-each> 
    29             </ul> 
    30             <div class="clear"><xsl:text> </xsl:text></div> 
    31         </div> 
     22        <!-- show the classifiers if more than one (title, subject, etc.) --> 
     23        <xsl:if test="service/classifierList/classifier[2]"> 
     24            <div id="classifierList" class="navList"> 
     25                <ul> 
     26                    <xsl:for-each select="service/classifierList/classifier"> 
     27                        <li><gslib:classifierLink/></li> 
     28                    </xsl:for-each> 
     29                </ul> 
     30                <div class="clear"><xsl:text> </xsl:text></div> 
     31            </div> 
     32        </xsl:if> 
    3233 
    3334        <!-- this right sidebar -->