(sitka) 2.4 tpac - prevent numeric search text from displaying in keyword search...
[sitka/evergreen.git] / Open-ILS / src / templates / opac / parts / searchbar_staff.tt2
index d696ee3..fe3e2f4 100644 (file)
@@ -11,7 +11,9 @@
         %]
         <span class='search_box_wrapper'>
             <input type="text" id="search_box" name="query"
-                value="[% is_advanced ? ctx.naive_query_scrub(ctx.processed_search_query) : CGI.param('query') | html %]"
+               [%- IF CGI.param('qtype') and not is_special  %]
+                       value="[% is_advanced ? ctx.naive_query_scrub(ctx.processed_search_query) : CGI.param('query') | html %]"
+               [% END %]
                 [%- IF use_autosuggest.enabled == "t" %]
                 dojoType="openils.widget.AutoSuggest" type_selector="'qtype'"
                 submitter="this.textbox.form.submit();"