- Timestamp:
- 2021-12-14T13:28:33+13:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/pages/classifier.xsl
r34579 r35812 1 1 <?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 11 4 <!-- 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" /> 15 8 16 9 <!-- set page title --> 17 <xsl:template name="pageTitle"><gslib:serviceName/></xsl:template> 10 <xsl:template name="pageTitle"> 11 <gslib:serviceName /> 12 </xsl:template> 18 13 19 14 <!-- 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> 21 21 22 22 <!-- optional cgi-params for links to document pages --> … … 25 25 <!-- the page content --> 26 26 <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> 31 33 <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 37 38 --> 38 39 <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 44 49 <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" /> 47 52 </xsl:apply-templates> 48 53 </div> 49 54 50 <div class="clear"><xsl:text> </xsl:text></div> 55 <div class="clear"> 56 <xsl:text></xsl:text> 57 </div> 51 58 </xsl:template> 52 59 … … 54 61 <div id="rightSideBar"> 55 62 <xsl:comment>Filler to prevent empty div collapse, in event displayBasket empty</xsl:comment> 56 <gslib:displayBaskets />63 <gslib:displayBaskets /> 57 64 </div> 58 65 </xsl:template> 59 66 60 67 <xsl:template match="classifier"> 61 <xsl:param name="collName" />62 <xsl:param name="serviceName" />68 <xsl:param name="collName" /> 69 <xsl:param name="serviceName" /> 63 70 <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> 65 74 <xsl:choose> 66 67 68 <xsl:with-param name='collName' select='$collName'/>69 <xsl:with-param name='serviceName' select='$serviceName'/>70 71 72 73 74 <xsl:text></xsl:text>75 76 <xsl:with-param name='collName' select='$collName'/>77 <xsl:with-param name='serviceName' select='$serviceName'/>78 79 80 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> 81 90 </xsl:choose> 82 91 </div> 83 92 </xsl:template> 84 93 85 94 <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> 89 100 <ul class="horizontalContainer"> 90 101 <xsl:for-each select='classifierNode'> 91 92 93 94 95 96 97 <xsl:with-param name='collName' select='$collName'/>98 <xsl:with-param name='serviceName' select='$serviceName'/>99 100 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> 101 112 </xsl:for-each> 102 113 </ul> … … 104 115 <!-- if the children are HLists--> 105 116 <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> 122 134 </xsl:otherwise> 123 135 </xsl:choose> 124 </xsl:template> 136 </xsl:template> 125 137 126 138 <xsl:template name="processNodeChildren"> 127 <xsl:param name="collName" />128 <xsl:param name="serviceName" />139 <xsl:param name="collName" /> 140 <xsl:param name="serviceName" /> 129 141 130 142 <xsl:choose> 131 132 133 143 144 <xsl:when test="@childType = 'VList' or @childType = 'DateList'"> 145 <!-- 134 146 <xsl:when test="@childType = 'VList' or @childType = 'HList' or @childType = 'DateList'"> - - **** mod ???? - - 135 147 --> 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> 202 234 </xsl:when> 203 235 <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> 206 246 </xsl:when> 207 247 <xsl:otherwise> 208 we are in the other wise248 we are in the other wise 209 249 </xsl:otherwise> 210 250 </xsl:choose> 211 251 </xsl:template> 212 252 213 214 253 <!-- processing for the recursive bit --> 215 254 <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" /> 218 257 219 258 <!-- … … 225 264 --> 226 265 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> 246 282 247 283 <!-- 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 --> 248 284 <xsl:template name="documentNodeWrapper"> 249 <xsl:param name="collName" />250 <xsl:param name="serviceName" />285 <xsl:param name="collName" /> 286 <xsl:param name="serviceName" /> 251 287 <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" /> 254 290 </xsl:apply-templates> 255 291 <!-- The berry/favourite (optional) --> 256 292 <td valign="top"> 257 293 <xsl:if test="/page/pageResponse/interfaceOptions/option[@name = 'berryBasket']/@value = 'true'"> 258 <xsl:call-template name="documentBerryForClassifierOrSearchPage"/>294 <xsl:call-template name="documentBerryForClassifierOrSearchPage" /> 259 295 </xsl:if> 260 296 <xsl:if test="/page/pageResponse/interfaceOptions/option[@name = 'favouriteBasket']/@value = 'true'"> 261 <xsl:call-template name="documentFavouriteForClassifierOrSearchPage"/>297 <xsl:call-template name="documentFavouriteForClassifierOrSearchPage" /> 262 298 </xsl:if> 263 299 264 300 </td> 265 <xsl:call-template name="documentNodePost" />301 <xsl:call-template name="documentNodePost" /> 266 302 </xsl:template> 267 303 … … 272 308 <td valign="top"> 273 309 <gsf:link type="document"> 274 <gsf:icon type="document"/>310 <gsf:icon type="document" /> 275 311 </gsf:link> 276 312 </td> 277 313 <td valign="top"> 278 314 <gsf:link type="source"> 279 280 <gsf:metadata name="thumbicon"/>281 <gsf:metadata name="srcicon"/>282 315 <gsf:choose-metadata> 316 <gsf:metadata name="thumbicon" /> 317 <gsf:metadata name="srcicon" /> 318 </gsf:choose-metadata> 283 319 </gsf:link> 284 320 </td> 285 321 <td valign="top"> 286 322 <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> 293 336 </gsf:link> 294 337 </td> 295 338 </xsl:template> 296 297 339 298 340 <xsl:template name="documentNodePost"> 299 341 <xsl:if test="/page/pageResponse/format[@type='display' or @type='browse' or @type='search']/gsf:option[@name='mapEnabled']/@value = 'true'"> 300 342 <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" /> 302 344 </xsl:if> 303 345 </xsl:if> … … 305 347 <xsl:if test="/page/pageResponse/format/gsf:option[@name='panoramaViewerEnabled']/@value = 'true'"> 306 348 <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" /> 308 350 </xsl:if> 309 351 </xsl:if> … … 314 356 TEMPLATE FOR GROUPS OF DOCUMENTS 315 357 --> 316 <xsl:template match="classifierNode[@classifierStyle = 'HList']" 358 <xsl:template match="classifierNode[@classifierStyle = 'HList']"> 317 359 <gsf:link type="classifier" style="static"> 318 <gsf:metadata name="Title" />360 <gsf:metadata name="Title" /> 319 361 </gsf:link> 320 362 </xsl:template> … … 323 365 <td valign="top"> 324 366 <gsf:link type="classifier" style="static"> 325 <gsf:icon type="classifier"/>367 <gsf:icon type="classifier" /> 326 368 </gsf:link> 327 369 </td> 328 370 <td valign="top"> 329 371 <gsf:link type="classifier"> 330 <gsf:metadata name="Title"/>372 <gsf:metadata name="Title" /> 331 373 </gsf:link> 332 374 </td> 333 375 </xsl:template> 334 335 376 336 377 <xsl:template name="classifierPre"> 337 378 <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 341 382 <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 347 388 <xsl:template name="classifierResultsPre"> 348 389 <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" /> 350 391 </xsl:if> 351 392 <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 356 397 <xsl:template match="/page/xsltparams"> 357 398 <!-- suppress xsltparam block in page --> … … 359 400 360 401 </xsl:stylesheet> 361
Note:
See TracChangeset
for help on using the changeset viewer.