- Timestamp:
- 2020-06-20T03:59:05+12:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/opotiki/transform/layouts/main.xsl
r34148 r34212 281 281 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='query']"> 282 282 <xsl:variable name="subaction" select="/page/pageRequest/@subaction"/> 283 283 284 <div id="quicksearcharea"> 284 285 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']"> … … 290 291 <input type="hidden" name="qs" value="1"/> 291 292 <input type="hidden" name="rt" value="rd"/> 292 <input type="hidden" name="s1.level"> 293 <!-- don't hide indexing levels: code further down will hide it if there's only 1 indexing level. 294 and display a dropdown if the collection's configured with more than 1 index level available --> 295 <!--<input type="hidden" name="s1.level"> 293 296 <xsl:attribute name="value"> 294 297 <xsl:value-of select="/page/pageResponse/collection/serviceList/service[@name='TextQuery']/paramList/param[@name = 'level']/@default"/> 295 298 </xsl:attribute> 296 299 </input> 300 --> 297 301 <xsl:choose> 298 302 <xsl:when test="/page/pageResponse/service[@name = 'TextQuery']/paramList/param[@name = 'startPage']"> … … 342 346 </xsl:apply-templates> 343 347 </span> 344 </xsl:if> 348 </xsl:if> 349 350 <!-- The index level selection list. hideSingle=true to hide the dropdown if there's only 1 level (the default). --> 351 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='level']/@type = 'enum_single'"> 352 <span class="textselect"> 353 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='level']"> 354 <xsl:with-param name="default"> 355 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='level']" mode="calculate-default"/> 356 </xsl:with-param> 357 <xsl:with-param name="hideSingle">true</xsl:with-param> 358 <xsl:with-param name="quickSearch">true</xsl:with-param> 359 </xsl:apply-templates> 360 </span> 361 </xsl:if> 362 345 363 <!-- The language selection list --> 346 364 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexLanguage']/@type = 'enum_single'"> … … 369 387 </xsl:choose> 370 388 </xsl:if> 371 <!-- The list of other search types --> 372 <!-- 389 390 </div> 391 <!--<br class="clear" />--> 392 <!--<span id="advanced">--> 393 394 <!-- The list of other search types --> 395 <div class="query-form-links"> 373 396 <ul> 374 397 <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='query']"> 375 398 <xsl:if test="/page/pageRequest/paramList/param[@name='qs']/@value = 1 or not(@name = /page/pageRequest/paramList/param[@name='s']/@value)"> 376 399 <li class="ui-state-default ui-corner-all"> 377 <a >400 <a class="query-form-links"> 378 401 <xsl:attribute name="href"> 379 402 <xsl:value-of select="$library_name"/>/collection/<xsl:value-of select="$collNameChecked"/>/search/<xsl:value-of select="@name"/> … … 385 408 </xsl:for-each> 386 409 </ul> 387 -->388 410 </div> 389 411 </xsl:if> 412 <!--<br class="clear" /> 413 <div id="advanced"><a href="{$library_name}/collection/{$collNameChecked}/search/TextQuery">form search</a></div> 414 <div id="advanced"><a href="{$library_name}/collection/{$collNameChecked}/search/AdvancedFieldQuery">advanced search</a></div> 415 --> 390 416 </xsl:template> 391 417
Note:
See TracChangeset
for help on using the changeset viewer.