Ignore:
Timestamp:
2021-12-14T13:28:33+13:00 (2 years ago)
Author:
cstephen
Message:

Format classifier.xsl

File:
1 edited

Legend:

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

    r34579 r35812  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <xsl:stylesheet version="1.0"
    3         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    4         xmlns:java="http://xml.apache.org/xslt/java"
    5         xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil"
    6         xmlns:gslib="http://www.greenstone.org/skinning"
    7         xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat"
    8         extension-element-prefixes="java util"
    9         exclude-result-prefixes="java util gsf">
    10  
     2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:java="http://xml.apache.org/xslt/java" xmlns:util="xalan://org.greenstone.gsdl3.util.XSLTUtil" xmlns:gslib="http://www.greenstone.org/skinning" xmlns:gsf="http://www.greenstone.org/greenstone3/schema/ConfigFormat" extension-element-prefixes="java util" exclude-result-prefixes="java util gsf">
     3
    114  <!-- use the 'main' layout -->
    12   <xsl:import href="layouts/main.xsl"/>
    13   <xsl:import href="map-tools.xsl"/>
    14   <xsl:import href="panorama-viewer-tools.xsl"/>
     5  <xsl:import href="layouts/main.xsl" />
     6  <xsl:import href="map-tools.xsl" />
     7  <xsl:import href="panorama-viewer-tools.xsl" />
    158
    169  <!-- set page title -->
    17   <xsl:template name="pageTitle"><gslib:serviceName/></xsl:template>
     10  <xsl:template name="pageTitle">
     11    <gslib:serviceName />
     12  </xsl:template>
    1813
    1914  <!-- set page breadcrumbs -->
    20   <xsl:template name="breadcrumbs"><gslib:siteLink/><gslib:rightArrow/><gslib:collectionNameLinked/><gslib:rightArrow/></xsl:template>
     15  <xsl:template name="breadcrumbs">
     16    <gslib:siteLink />
     17    <gslib:rightArrow />
     18    <gslib:collectionNameLinked />
     19    <gslib:rightArrow />
     20  </xsl:template>
    2121
    2222  <!-- optional cgi-params for links to document pages -->
     
    2525  <!-- the page content -->
    2626  <xsl:template match="/page/pageResponse">
    27     <xsl:call-template name="floatRightSidebar"/>
    28     <xsl:call-template name="classifierPre"/>
    29    
    30     <script type="text/javascript" src="interfaces/{$interface_name}/js/classifier_scripts.js"><xsl:text> </xsl:text></script>
     27    <xsl:call-template name="floatRightSidebar" />
     28    <xsl:call-template name="classifierPre" />
     29
     30    <script type="text/javascript" src="interfaces/{$interface_name}/js/classifier_scripts.js">
     31      <xsl:text></xsl:text>
     32    </script>
    3133    <script type="text/javascript">$(window).load(openStoredClassifiers);</script>
    32    
    33     <!--
    34     show the clasifier results -
    35     you can change the appearance of the results by editing
    36     the two templates at the bottom of this file
     34
     35    <!--
     36      Show the clasifier results - you can change the appearance of the results
     37      by editing the two templates at the bottom of this file
    3738    -->
    3839    <div id="results">
    39       <xsl:variable name="collName"><xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value"/></xsl:variable>
    40       <xsl:variable name="serviceName"><xsl:value-of select="service/@name"/></xsl:variable>
    41 
    42       <xsl:call-template name="classifierResultsPre"/>
    43      
     40      <xsl:variable name="collName">
     41        <xsl:value-of select="/page/pageRequest/paramList/param[@name='c']/@value" />
     42      </xsl:variable>
     43      <xsl:variable name="serviceName">
     44        <xsl:value-of select="service/@name" />
     45      </xsl:variable>
     46
     47      <xsl:call-template name="classifierResultsPre" />
     48
    4449      <xsl:apply-templates select="classifier">
    45     <xsl:with-param name="collName" select="$collName"/>
    46     <xsl:with-param name="serviceName" select="$serviceName"/>
     50        <xsl:with-param name="collName" select="$collName" />
     51        <xsl:with-param name="serviceName" select="$serviceName" />
    4752      </xsl:apply-templates>
    4853    </div>
    4954
    50     <div class="clear"><xsl:text> </xsl:text></div>
     55    <div class="clear">
     56      <xsl:text></xsl:text>
     57    </div>
    5158  </xsl:template>
    5259
     
    5461    <div id="rightSideBar">
    5562      <xsl:comment>Filler to prevent empty div collapse, in event displayBasket empty</xsl:comment>
    56       <gslib:displayBaskets/>
     63      <gslib:displayBaskets />
    5764    </div>
    5865  </xsl:template>
    5966
    6067  <xsl:template match="classifier">
    61     <xsl:param name="collName"/>
    62     <xsl:param name="serviceName"/>
     68    <xsl:param name="collName" />
     69    <xsl:param name="serviceName" />
    6370    <div id="classifiers">
    64       <xsl:variable name="cl_name"><xsl:value-of select="@name"/></xsl:variable>
     71      <xsl:variable name="cl_name">
     72        <xsl:value-of select="@name" />
     73      </xsl:variable>
    6574      <xsl:choose>
    66     <xsl:when test="@childType = 'HList'">
    67       <xsl:call-template name="HList">
    68         <xsl:with-param name='collName' select='$collName'/>
    69         <xsl:with-param name='serviceName' select='$serviceName'/>
    70       </xsl:call-template>
    71     </xsl:when>
    72     <xsl:otherwise>
    73       <table id="classifiernodelist">
    74         <xsl:text> </xsl:text>
    75         <xsl:call-template name="processNodeChildren">
    76           <xsl:with-param name='collName' select='$collName'/>
    77           <xsl:with-param name='serviceName' select='$serviceName'/>
    78         </xsl:call-template>
    79       </table>
    80     </xsl:otherwise>
     75        <xsl:when test="@childType = 'HList'">
     76          <xsl:call-template name="HList">
     77            <xsl:with-param name='collName' select='$collName' />
     78            <xsl:with-param name='serviceName' select='$serviceName' />
     79          </xsl:call-template>
     80        </xsl:when>
     81        <xsl:otherwise>
     82          <table id="classifiernodelist">
     83            <xsl:text></xsl:text>
     84            <xsl:call-template name="processNodeChildren">
     85              <xsl:with-param name='collName' select='$collName' />
     86              <xsl:with-param name='serviceName' select='$serviceName' />
     87            </xsl:call-template>
     88          </table>
     89        </xsl:otherwise>
    8190      </xsl:choose>
    8291    </div>
    8392  </xsl:template>
    84  
     93
    8594  <xsl:template name="HList">
    86     <xsl:param name="collName"/>
    87     <xsl:param name="serviceName"/>
    88     <xsl:variable name="selectedNode"><xsl:value-of select="/page/pageRequest/paramList/param[@name = 'cl']/@value"/></xsl:variable>
     95    <xsl:param name="collName" />
     96    <xsl:param name="serviceName" />
     97    <xsl:variable name="selectedNode">
     98      <xsl:value-of select="/page/pageRequest/paramList/param[@name = 'cl']/@value" />
     99    </xsl:variable>
    89100    <ul class="horizontalContainer">
    90101      <xsl:for-each select='classifierNode'>
    91     <li>
    92       <xsl:attribute name="class">
    93         <xsl:if test="$selectedNode = @nodeID or starts-with($selectedNode, concat(@nodeID, '.')) or (not(contains($selectedNode, '.')) and @nodeID = concat($selectedNode, '.1'))">selectedHorizontalClassifierNode </xsl:if>
    94         <xsl:text>horizontalClassifierNode</xsl:text>
    95       </xsl:attribute>
    96       <xsl:apply-templates select='.'>
    97         <xsl:with-param name='collName' select='$collName'/>
    98         <xsl:with-param name='serviceName' select='$serviceName'/>
    99       </xsl:apply-templates>
    100     </li>
     102        <li>
     103          <xsl:attribute name="class">
     104            <xsl:if test="$selectedNode = @nodeID or starts-with($selectedNode, concat(@nodeID, '.')) or (not(contains($selectedNode, '.')) and @nodeID = concat($selectedNode, '.1'))">selectedHorizontalClassifierNode </xsl:if>
     105            <xsl:text>horizontalClassifierNode</xsl:text>
     106          </xsl:attribute>
     107          <xsl:apply-templates select='.'>
     108            <xsl:with-param name='collName' select='$collName' />
     109            <xsl:with-param name='serviceName' select='$serviceName' />
     110          </xsl:apply-templates>
     111        </li>
    101112      </xsl:for-each>
    102113    </ul>
     
    104115      <!-- if the children are HLists-->
    105116      <xsl:when test="classifierNode[@childType = 'HList']">
    106     <xsl:for-each select='classifierNode'><!-- there should be only one-->
    107       <xsl:call-template name="HList">
    108         <xsl:with-param name='collName' select='$collName'/>
    109         <xsl:with-param name='serviceName' select='$serviceName'/>
    110       </xsl:call-template>
    111     </xsl:for-each>
    112     </xsl:when>
    113     <xsl:otherwise>
    114     <table id="classifiernodelist">
    115       <xsl:for-each select='classifierNode'>
    116         <xsl:call-template name="processNodeChildren">
    117           <xsl:with-param name='collName' select='$collName'/>
    118           <xsl:with-param name='serviceName' select='$serviceName'/>
    119         </xsl:call-template>
    120       </xsl:for-each>
    121     </table>
     117        <xsl:for-each select='classifierNode'>
     118          <!-- there should be only one-->
     119          <xsl:call-template name="HList">
     120            <xsl:with-param name='collName' select='$collName' />
     121            <xsl:with-param name='serviceName' select='$serviceName' />
     122          </xsl:call-template>
     123        </xsl:for-each>
     124      </xsl:when>
     125      <xsl:otherwise>
     126        <table id="classifiernodelist">
     127          <xsl:for-each select='classifierNode'>
     128            <xsl:call-template name="processNodeChildren">
     129              <xsl:with-param name='collName' select='$collName' />
     130              <xsl:with-param name='serviceName' select='$serviceName' />
     131            </xsl:call-template>
     132          </xsl:for-each>
     133        </table>
    122134      </xsl:otherwise>
    123135    </xsl:choose>
    124   </xsl:template>   
     136  </xsl:template>
    125137
    126138  <xsl:template name="processNodeChildren">
    127     <xsl:param name="collName"/>
    128     <xsl:param name="serviceName"/>
     139    <xsl:param name="collName" />
     140    <xsl:param name="serviceName" />
    129141
    130142    <xsl:choose>
    131      
    132       <xsl:when test="@childType = 'VList' or @childType = 'DateList'">
    133       <!-- 
     143
     144      <xsl:when test="@childType = 'VList' or @childType = 'DateList'">
     145        <!--   
    134146          <xsl:when test="@childType = 'VList' or @childType = 'HList' or @childType = 'DateList'"> - - **** mod ???? - -
    135147          -->
    136        
    137     <xsl:value-of select="util:storeString('prevMonth', '')"/>
    138     <xsl:for-each select='classifierNode|documentNode'>
    139       <tr>
    140         <xsl:choose>
    141           <xsl:when test="name()='documentNode'">
    142         <xsl:if test="../@childType = 'DateList'">
    143           <xsl:variable name="prevMonth"><xsl:value-of select="util:getString('prevMonth')"/></xsl:variable>
    144           <xsl:variable name="currentDate"><gsf:metadata name="Date" pos="1"/></xsl:variable> <!-- note pos=1 won't work if a document can be included in a datelist multiple times. currently only the first date is used...-->
    145           <xsl:variable name="currentMonth"><xsl:value-of select="util:getDetailFromDate($currentDate, 'month', /page/@lang)"/></xsl:variable>
    146           <xsl:value-of select="util:storeString('prevMonth', $currentMonth)"/>
    147           <td>
    148             <xsl:if test="not($currentMonth = $prevMonth)">
    149               <xsl:value-of select="$currentMonth"/>
    150             </xsl:if>
    151             <xsl:text> </xsl:text>
    152           </td>
    153         </xsl:if>
    154         <td>
    155           <table id="div{@nodeID}"><tr>
    156             <xsl:call-template name="documentNodeWrapper">
    157               <xsl:with-param name='collName' select='$collName'/>
    158               <xsl:with-param name='serviceName' select='$serviceName'/>
    159             </xsl:call-template>
    160           </tr></table>
    161         </td>
    162           </xsl:when>
    163           <xsl:when test="name()='classifierNode' and (@childType = 'VList' or @childType = 'HList')"><!-- *** mod -->
    164         <td>
    165           <table id="title{@nodeID}"><tr>
    166             <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'">
    167               <td class="headerTD">
    168             <img id="toggle{@nodeID}" onclick="toggleSection('{@nodeID}');" class="icon turnstyleicon">         
    169               <xsl:attribute name="src">
    170                 <xsl:choose>
    171                   <xsl:when test="classifierNode or documentNode">
    172                 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'collapse_image')"/>
    173                   </xsl:when>
    174                   <xsl:otherwise>
    175                 <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'expand_image')"/>
    176                   </xsl:otherwise>
    177                 </xsl:choose>
    178               </xsl:attribute>
    179             </img>
    180               </td>
    181             </xsl:if>
    182             <xsl:apply-templates select='.'>
    183               <xsl:with-param name='collName' select='$collName'/>
    184               <xsl:with-param name='serviceName' select='$serviceName'/>
    185             </xsl:apply-templates>
    186           </tr></table>
    187         </td>
    188         <xsl:if test="child::classifierNode or child::documentNode">
    189           <!--recurse into the children-->
    190           <tr><td><table class="childrenlist" id="div{@nodeID}">
    191             <xsl:apply-templates select='.' mode='process-all-children'>
    192               <xsl:with-param name='collName' select='$collName'/>
    193               <xsl:with-param name='serviceName' select='$serviceName'/>
    194             </xsl:apply-templates>
    195           </table></td></tr>
    196         </xsl:if>
    197           </xsl:when>
    198           <xsl:otherwise><td>Unknown classifier style specified: <xsl:value-of select="name()"/></td></xsl:otherwise>
    199         </xsl:choose>
    200       </tr>
    201     </xsl:for-each>
     148
     149        <xsl:value-of select="util:storeString('prevMonth', '')" />
     150        <xsl:for-each select='classifierNode|documentNode'>
     151          <tr>
     152            <xsl:choose>
     153              <xsl:when test="name()='documentNode'">
     154                <xsl:if test="../@childType = 'DateList'">
     155                  <xsl:variable name="prevMonth">
     156                    <xsl:value-of select="util:getString('prevMonth')" />
     157                  </xsl:variable>
     158                  <xsl:variable name="currentDate">
     159                    <gsf:metadata name="Date" pos="1" />
     160                  </xsl:variable> <!-- note pos=1 won't work if a document can be included in a datelist multiple times. currently only the first date is used...-->
     161                  <xsl:variable name="currentMonth">
     162                    <xsl:value-of select="util:getDetailFromDate($currentDate, 'month', /page/@lang)" />
     163                  </xsl:variable>
     164                  <xsl:value-of select="util:storeString('prevMonth', $currentMonth)" />
     165                  <td>
     166                    <xsl:if test="not($currentMonth = $prevMonth)">
     167                      <xsl:value-of select="$currentMonth" />
     168                    </xsl:if>
     169                    <xsl:text></xsl:text>
     170                  </td>
     171                </xsl:if>
     172                <td>
     173                  <table id="div{@nodeID}">
     174                    <tr>
     175                      <xsl:call-template name="documentNodeWrapper">
     176                        <xsl:with-param name='collName' select='$collName' />
     177                        <xsl:with-param name='serviceName' select='$serviceName' />
     178                      </xsl:call-template>
     179                    </tr>
     180                  </table>
     181                </td>
     182              </xsl:when>
     183              <xsl:when test="name()='classifierNode' and (@childType = 'VList' or @childType = 'HList')">
     184                <!-- *** mod -->
     185                <td>
     186                  <table id="title{@nodeID}">
     187                    <tr>
     188                      <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'">
     189                        <td class="headerTD">
     190                          <img id="toggle{@nodeID}" onclick="toggleSection('{@nodeID}');" class="icon turnstyleicon">
     191                            <xsl:attribute name="src">
     192                              <xsl:choose>
     193                                <xsl:when test="classifierNode or documentNode">
     194                                  <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'collapse_image')" />
     195                                </xsl:when>
     196                                <xsl:otherwise>
     197                                  <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'expand_image')" />
     198                                </xsl:otherwise>
     199                              </xsl:choose>
     200                            </xsl:attribute>
     201                          </img>
     202                        </td>
     203                      </xsl:if>
     204                      <xsl:apply-templates select='.'>
     205                        <xsl:with-param name='collName' select='$collName' />
     206                        <xsl:with-param name='serviceName' select='$serviceName' />
     207                      </xsl:apply-templates>
     208                    </tr>
     209                  </table>
     210                </td>
     211                <xsl:if test="child::classifierNode or child::documentNode">
     212                  <!--recurse into the children-->
     213                  <tr>
     214                    <td>
     215                      <table class="childrenlist" id="div{@nodeID}">
     216                        <xsl:apply-templates select='.' mode='process-all-children'>
     217                          <xsl:with-param name='collName' select='$collName' />
     218                          <xsl:with-param name='serviceName' select='$serviceName' />
     219                        </xsl:apply-templates>
     220                      </table>
     221                    </td>
     222                  </tr>
     223                </xsl:if>
     224              </xsl:when>
     225              <xsl:otherwise>
     226                <td>
     227                  Unknown classifier style specified:
     228                  <xsl:value-of select="name()" />
     229                </td>
     230              </xsl:otherwise>
     231            </xsl:choose>
     232          </tr>
     233        </xsl:for-each>
    202234      </xsl:when>
    203235      <xsl:when test="@childType = 'HTML'">
    204     <xsl:variable name="URL"><xsl:value-of select="documentNode/@nodeID"/></xsl:variable>
    205     <iframe width="100%" height="600" frameborder="0"><xsl:attribute name="src"><xsl:value-of select="$URL"/></xsl:attribute>Frame for <xsl:value-of select="$URL"/></iframe>
     236        <xsl:variable name="URL">
     237          <xsl:value-of select="documentNode/@nodeID" />
     238        </xsl:variable>
     239        <iframe width="100%" height="600" frameborder="0">
     240          <xsl:attribute name="src">
     241            <xsl:value-of select="$URL" />
     242          </xsl:attribute>
     243          Frame for
     244          <xsl:value-of select="$URL" />
     245        </iframe>
    206246      </xsl:when>
    207247      <xsl:otherwise>
    208     we are in the other wise
     248          we are in the other wise
    209249      </xsl:otherwise>
    210250    </xsl:choose>
    211251  </xsl:template>
    212252
    213 
    214253  <!-- processing for the recursive bit -->
    215254  <xsl:template match="classifierNode" mode="process-all-children">
    216     <xsl:param name="collName"/>
    217     <xsl:param name="serviceName"/>
     255    <xsl:param name="collName" />
     256    <xsl:param name="serviceName" />
    218257
    219258    <!--
     
    225264    -->
    226265
    227       <xsl:choose>
    228     <xsl:when test="@childType = 'HList'">
    229         <xsl:call-template name="HList">
    230           <xsl:with-param name='collName' select='$collName'/>
    231           <xsl:with-param name='serviceName' select='$serviceName'/>
    232         </xsl:call-template>
    233     </xsl:when>
    234     <xsl:otherwise>
    235         <xsl:call-template name="processNodeChildren">
    236           <xsl:with-param name='collName' select='$collName'/>
    237           <xsl:with-param name='serviceName' select='$serviceName'/>
    238         </xsl:call-template>
    239     </xsl:otherwise>
    240       </xsl:choose>
    241 
    242    
    243   </xsl:template>
    244 
    245  
     266    <xsl:choose>
     267      <xsl:when test="@childType = 'HList'">
     268        <xsl:call-template name="HList">
     269          <xsl:with-param name='collName' select='$collName' />
     270          <xsl:with-param name='serviceName' select='$serviceName' />
     271        </xsl:call-template>
     272      </xsl:when>
     273      <xsl:otherwise>
     274        <xsl:call-template name="processNodeChildren">
     275          <xsl:with-param name='collName' select='$collName' />
     276          <xsl:with-param name='serviceName' select='$serviceName' />
     277        </xsl:call-template>
     278      </xsl:otherwise>
     279    </xsl:choose>
     280
     281  </xsl:template>
    246282
    247283  <!-- this is a wrapper node, which the interface can use to add stuff into the classifier display that isn't part of and doesn't depend on the documentNode template which may come from the collection -->
    248284  <xsl:template name="documentNodeWrapper">
    249     <xsl:param name="collName"/>
    250     <xsl:param name="serviceName"/>
     285    <xsl:param name="collName" />
     286    <xsl:param name="serviceName" />
    251287    <xsl:apply-templates select=".">
    252       <xsl:with-param name="collName" select="$collName"/>
    253       <xsl:with-param name="serviceName" select="$serviceName"/>
     288      <xsl:with-param name="collName" select="$collName" />
     289      <xsl:with-param name="serviceName" select="$serviceName" />
    254290    </xsl:apply-templates>
    255291    <!-- The berry/favourite (optional) -->
    256292    <td valign="top">
    257293      <xsl:if test="/page/pageResponse/interfaceOptions/option[@name = 'berryBasket']/@value = 'true'">
    258     <xsl:call-template name="documentBerryForClassifierOrSearchPage"/>
     294        <xsl:call-template name="documentBerryForClassifierOrSearchPage" />
    259295      </xsl:if>
    260296      <xsl:if test="/page/pageResponse/interfaceOptions/option[@name = 'favouriteBasket']/@value = 'true'">
    261     <xsl:call-template name="documentFavouriteForClassifierOrSearchPage"/>
     297        <xsl:call-template name="documentFavouriteForClassifierOrSearchPage" />
    262298      </xsl:if>
    263299
    264300    </td>
    265     <xsl:call-template name="documentNodePost"/>
     301    <xsl:call-template name="documentNodePost" />
    266302  </xsl:template>
    267303
     
    272308    <td valign="top">
    273309      <gsf:link type="document">
    274     <gsf:icon type="document"/>
     310        <gsf:icon type="document" />
    275311      </gsf:link>
    276312    </td>
    277313    <td valign="top">
    278314      <gsf:link type="source">
    279     <gsf:choose-metadata>
    280       <gsf:metadata name="thumbicon"/>
    281       <gsf:metadata name="srcicon"/>
    282     </gsf:choose-metadata>
     315        <gsf:choose-metadata>
     316          <gsf:metadata name="thumbicon" />
     317          <gsf:metadata name="srcicon" />
     318        </gsf:choose-metadata>
    283319      </gsf:link>
    284320    </td>
    285321    <td valign="top">
    286322      <gsf:link type="document">
    287     <!-- Defined in header.xsl -->
    288     <xsl:call-template name="choose-title"/>
    289     <gsf:switch>
    290       <gsf:metadata name="Source"/>
    291       <gsf:when test="exists"><br/><i>(<gsf:metadata name="Source"/>)</i></gsf:when>
    292     </gsf:switch>
     323        <!-- Defined in header.xsl -->
     324        <xsl:call-template name="choose-title" />
     325        <gsf:switch>
     326          <gsf:metadata name="Source" />
     327          <gsf:when test="exists">
     328            <br />
     329            <i>
     330              (
     331              <gsf:metadata name="Source" />
     332              )
     333            </i>
     334          </gsf:when>
     335        </gsf:switch>
    293336      </gsf:link>
    294337    </td>
    295338  </xsl:template>
    296 
    297339
    298340  <xsl:template name="documentNodePost">
    299341    <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='mapEnabled']/@value = 'true'">
    300342      <xsl:if test="metadataList/metadata[@name='Latitude' or @name='Longitude' or @name='Coordinate']">
    301     <xsl:call-template name="mapFeaturesIcon"/>
     343        <xsl:call-template name="mapFeaturesIcon" />
    302344      </xsl:if>
    303345    </xsl:if>
     
    305347    <xsl:if test="/page/pageResponse/format/gsf:option[@name='panoramaViewerEnabled']/@value = 'true'">
    306348      <xsl:if test="metadataList/metadata[@name = 'PhotoType']='Panorama' and ( metadataList/metadata[@name = 'Coordinate'] or ( metadataList/metadata[@name = 'Latitude'] and metadataList/metadata[@name = 'Longitude']))">
    307     <xsl:call-template name="panoramaViewerFeaturesIcon"/>
     349        <xsl:call-template name="panoramaViewerFeaturesIcon" />
    308350      </xsl:if>
    309351    </xsl:if>
     
    314356      TEMPLATE FOR GROUPS OF DOCUMENTS
    315357  -->
    316   <xsl:template match="classifierNode[@classifierStyle = 'HList']" >
     358  <xsl:template match="classifierNode[@classifierStyle = 'HList']">
    317359    <gsf:link type="classifier" style="static">
    318       <gsf:metadata name="Title"/>
     360      <gsf:metadata name="Title" />
    319361    </gsf:link>
    320362  </xsl:template>
     
    323365    <td valign="top">
    324366      <gsf:link type="classifier" style="static">
    325     <gsf:icon type="classifier"/>
     367        <gsf:icon type="classifier" />
    326368      </gsf:link>
    327369    </td>
    328370    <td valign="top">
    329371      <gsf:link type="classifier">
    330     <gsf:metadata name="Title"/>
     372        <gsf:metadata name="Title" />
    331373      </gsf:link>
    332374    </td>
    333375  </xsl:template>
    334  
    335376
    336377  <xsl:template name="classifierPre">
    337378    <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='mapEnabled']/@value = 'true'">
    338       <xsl:call-template name="mapFeaturesJSONNodes"/>
    339     </xsl:if>
    340    
     379      <xsl:call-template name="mapFeaturesJSONNodes" />
     380    </xsl:if>
     381
    341382    <xsl:if test="/page/pageResponse/format/gsf:option[@name='panoramaViewerEnabled']/@value = 'true'">
    342       <xsl:call-template name="panoramaViewerFeaturesJSONNodes"/>
    343     </xsl:if>
    344    
    345   </xsl:template>
    346  
     383      <xsl:call-template name="panoramaViewerFeaturesJSONNodes" />
     384    </xsl:if>
     385
     386  </xsl:template>
     387
    347388  <xsl:template name="classifierResultsPre">
    348389    <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='mapEnabled']/@value = 'true'">
    349       <xsl:call-template name="mapFeaturesMap"/>
     390      <xsl:call-template name="mapFeaturesMap" />
    350391    </xsl:if>
    351392    <xsl:if test="/page/pageResponse/format/gsf:option[@name='panoramaViewerEnabled']/@value = 'true'">
    352       <xsl:call-template name="panoramaViewerFeatures"/>
    353     </xsl:if>
    354   </xsl:template>
    355  
     393      <xsl:call-template name="panoramaViewerFeatures" />
     394    </xsl:if>
     395  </xsl:template>
     396
    356397  <xsl:template match="/page/xsltparams">
    357398    <!-- suppress xsltparam block in page -->
     
    359400
    360401</xsl:stylesheet>
    361 
Note: See TracChangeset for help on using the changeset viewer.