Changeset 28558 for main


Ignore:
Timestamp:
2013-10-30T16:52:29+13:00 (10 years ago)
Author:
jlwhisler
Message:

Fixed an idiosyncrasy so that when there is only one search index, the index field name will appear in the quick search box -- demonstrated in the Simple Image Collection. This looks better when the index is listed before the search box, so this was fixed too. Now the index label (or index drop box with 2+ indexes) appears before the search box.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/header.xsl

    r28278 r28558  
    498498                            <input type="hidden" name="s1.maxDocs" value="100"/>
    499499                        </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:apply-templates>
     509                            </span>
     510                        </xsl:if>
    500511                        <!-- The query text box -->
    501512                        <span class="querybox">
     
    509520                            </nobr>
    510521                        </span>
    511                         <!-- The index selection list -->
    512                         <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']/@type = 'enum_single'">
    513                             <span class="textselect">
    514                                 <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']">
    515                                     <xsl:with-param name="default">
    516                                         <xsl:apply-templates select="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']/paramList/param[@name='index']" mode="calculate-default"/>
    517                                     </xsl:with-param>
    518                                     <xsl:with-param name="hideSingle">true</xsl:with-param>
    519                                 </xsl:apply-templates>
    520                             </span>
    521                         </xsl:if>
     522                       
    522523                        <!-- The submit button (for TextQuery) -->
    523524                        <xsl:if test="/page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
Note: See TracChangeset for help on using the changeset viewer.