Changeset 28623
- Timestamp:
- 2013-11-14T12:59:41+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl
r28581 r28623 468 468 <div id="quicksearcharea"> 469 469 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']"> 470 <xsl:choose> 471 <xsl:when test="not(page/pageRequest[@action='q']) or /page/pageRequest/paramList/param[@name='qs']/@value = '1'"> 470 472 <form action="{$library_name}/collection/{$collNameChecked}/search/TextQuery"> 471 473 <!-- This parameter says that we have come from the quick search area --> … … 474 476 <input type="hidden" name="s1.level"> 475 477 <xsl:attribute name="value"> 476 <xsl:choose>477 <xsl:when test="/page/pageRequest/paramList/param[@name = 's1.level']">478 <xsl:value-of select="/page/pageRequest/paramList/param[@name = 's1.level']/@value"/>479 </xsl:when>480 <xsl:otherwise>481 478 <xsl:value-of select="/page/pageResponse/collection/serviceList/service[@name='TextQuery']/paramList/param[@name = 'level']/@default"/> 482 </xsl:otherwise>483 </xsl:choose>484 479 </xsl:attribute> 485 480 </input> … … 498 493 <input type="hidden" name="s1.maxDocs" value="100"/> 499 494 </xsl:if> 500 <!-- The index selection list -->501 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']/@type = 'enum_single'">502 <span class="textselect">503 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']">504 <xsl:with-param name="default">505 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']" mode="calculate-default"/>506 </xsl:with-param>507 <xsl:with-param name="hideSingle">false</xsl:with-param>508 <xsl:with-param name="quickSearch">true</xsl:with-param>509 </xsl:apply-templates>510 </span>511 </xsl:if>512 495 <!-- The query text box --> 513 496 <span class="querybox"> … … 521 504 </nobr> 522 505 </span> 523 506 <!-- The index selection list --> 507 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']/@type = 'enum_single'"> 508 <span class="textselect"> 509 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']"> 510 <xsl:with-param name="default"> 511 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']" mode="calculate-default"/> 512 </xsl:with-param> 513 <xsl:with-param name="hideSingle">true</xsl:with-param> 514 <xsl:with-param name="quickSearch">true</xsl:with-param> 515 </xsl:apply-templates> 516 </span> 517 </xsl:if> 518 <!-- The partition selection list --> 519 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexSubcollection']/@type = 'enum_single'"> 520 <span class="textselect"> 521 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexSubcollection']"> 522 <xsl:with-param name="default"> 523 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='indexSubcollection']" mode="calculate-default"/> 524 </xsl:with-param> 525 <xsl:with-param name="hideSingle">true</xsl:with-param> 526 <xsl:with-param name="quickSearch">true</xsl:with-param> 527 </xsl:apply-templates> 528 </span> 529 </xsl:if> 524 530 <!-- The submit button (for TextQuery) --> 525 531 <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']"> … … 532 538 </xsl:if> 533 539 </form> 540 </xsl:when> 541 <xsl:otherwise><br/></xsl:otherwise> 542 </xsl:choose> 534 543 </xsl:if> 535 544 <!-- The list of other search types --> 536 545 <ul> 537 546 <xsl:for-each select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@type='query']"> 538 <li class="ui-state-default ui-corner-all"> 547 <li> 548 <xsl:choose> 549 <xsl:when test="@name = /page/pageRequest/paramList/param[@name='s']/@value"> 550 <xsl:attribute name="class">ui-state-default ui-corner-all ui-state-active</xsl:attribute> 551 </xsl:when> 552 <xsl:otherwise> 553 <xsl:attribute name="class">ui-state-default ui-corner-all</xsl:attribute> 554 </xsl:otherwise> 555 </xsl:choose> 539 556 <a> 540 557 <xsl:attribute name="href">
Note:
See TracChangeset
for help on using the changeset viewer.