[% l('Catalog Search') %]

[% PROCESS "opac/parts/org_selector.tt2"; # We need to ignore some filters in our count fignore = ['location_groups','site','core_limit','limit','badge_orgs','badges','estimation_strategy','depth']; fcount = 0; FOR f IN ctx.query_struct.filters; IF fignore.grep('^' _ f.name _ '$').size; NEXT; END; fcount = fcount + 1; END; %]
[% UNLESS took_care_of_form -%]
[%- END %] [% IF ctx.bookbag %]
[% END %] [% IF is_advanced || is_special %]
[% IF ctx.processed_search_query OR (NOT is_advanced AND NOT is_special) %] [% END %] [% IF is_advanced; FOR p IN CGI.params.keys; NEXT UNLESS p.match('^fi:'); FOR pv IN CGI.params.$p; %][% END; END; END %] [% IF is_special %] [% number_of_expert_rows = CGI.param('tag').list.size; index = 0; WHILE index < number_of_expert_rows %] [% index = index + 1; %] [% END %] [% END %]
[%- END %] [% UNLESS took_care_of_form %] [% IF ctx.default_sort %] [% END %]
[% END %] [% IF (is_advanced AND NOT is_special) AND CGI.param('qtype') %] [% END %]