Changeset 33593
- Timestamp:
- 2019-10-22T13:59:53+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/pages/query.xsl
r33592 r33593 49 49 <xsl:call-template name="displayMatchDocs"/> 50 50 <xsl:call-template name="displayTermInfo"/> 51 < xsl:call-template name="displayBaskets"/>51 <gslib:displayBaskets/> 52 52 <xsl:call-template name="displayResults"/> 53 53 <xsl:call-template name="resultsPagePost"/> … … 58 58 </xsl:variable> 59 59 60 <xsl:template name="displayBaskets">61 <xsl:if test="$berryBasketOn or $favouriteBasketOn or ($documentBasketOn and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor)))">62 <div id="rightSidebar">63 <xsl:if test="$berryBasketOn">64 <!-- show the berry basket if it's turned on -->65 <gslib:berryBasket/>66 <xsl:text> </xsl:text>67 </xsl:if>68 69 <xsl:if test="$favouriteBasketOn">70 <!-- show the favourites 'basket' if it's turned on -->71 <gslib:gotoFavourites/>72 <xsl:text> </xsl:text>73 </xsl:if>74 75 <xsl:if test="$documentBasketOn and (util:contains(/page/pageRequest/userInformation/@groups, 'administrator') or util:contains(/page/pageRequest/userInformation/@groups, 'all-collections-editor') or util:contains(/page/pageRequest/userInformation/@groups, $thisCollectionEditor))">76 <gslib:documentBasket/>77 <xsl:text> </xsl:text>78 </xsl:if>79 </div>80 </xsl:if>81 </xsl:template>82 60 83 61 <xsl:template name="displayResults"> 84 <xsl:if test="/page/pageResponse/facetList/facet ">62 <xsl:if test="/page/pageResponse/facetList/facet/count"> 85 63 <xsl:call-template name="displayFacets"/> 86 64 </xsl:if> 87 65 <div id="resultsArea"> 88 66 <xsl:attribute name="class"> 89 <xsl:if test="/page/pageResponse/facetList/facet ">facetedResults</xsl:if>67 <xsl:if test="/page/pageResponse/facetList/facet/count">facetedResults</xsl:if> 90 68 </xsl:attribute> 91 69 <table id="resultsTable"> … … 118 96 <xsl:call-template name="prevNextButtons"/> 119 97 </div> 120 <xsl:if test="/page/pageResponse/facetList/facet ">98 <xsl:if test="/page/pageResponse/facetList/facet/count"> 121 99 <div style="clear:both;"> 122 100 <xsl:text> </xsl:text> … … 130 108 <xsl:text> </xsl:text> 131 109 </script> 132 <div id="facetSelector" >110 <div id="facetSelector" style="position: relative; top: 100px;" > 133 111 <xsl:for-each select="/page/pageResponse/facetList/facet"> 134 112 <xsl:if test="count(count) > 0"> … … 148 126 </xsl:choose> 149 127 </xsl:variable> 150 128 151 129 <li class="ui-widget-header" style="text-transform:capitalize; text-align:center;"> 152 130 <xsl:value-of select="displayItem[@name='name']"/> … … 176 154 </xsl:for-each> 177 155 </div> 178 179 </xsl:template> 156 </xsl:template> 157 180 158 <!-- this usually gets overriden in collectionConfig.xml --> 181 159 <gsf:template match="documentNode"> … … 227 205 <xsl:when test="/page/pageResponse/hierarchy and paramList/param[@name ='collection']"> 228 206 <xsl:call-template name="CCSParams"> <!-- cross coll search --> 229 230 207 <xsl:with-param name="ns" select="$ns" /> 208 </xsl:call-template> 231 209 </xsl:when> 232 210 <xsl:otherwise> … … 259 237 260 238 <xsl:template name="CCSParams"> 239 261 240 <xsl:param name="ns" /> 262 241 <xsl:variable name="currentSelection"><xsl:value-of select="util:getFormattedCCSSelection(/page/pageRequest/paramList/param[@name='s1.collection']/@value,/page/pageRequest/paramList/param[@name='s1.group']/@value)"/></xsl:variable>
Note:
See TracChangeset
for help on using the changeset viewer.