<table cellpadding='10' cellspacing='0' border='0'>
[%
in_row = 0;
- FOR adv_chunk IN search.bool_config;
+ FOR adv_chunk IN search.adv_config;
NEXT IF adv_chunk.adv_hide;
IF in_row == 0;
in_row = 1; %]
</span>
<a href="[% mkurl(ctx.opac_root _ '/advanced', {$loc_name => loc_value, pane => 'boolean'}, 1) %]"
class="pointer opac-button">[% l('Clear Form') %]</a>
-</form>
\ No newline at end of file
+</form>
# Set the default height of the select boxes. Defaults to 4.
#search.default_adv_select_height = 4;
-##############################################################################
-# Define the boolean search limiters and labels.
-# adv_label is the (translated) label for the limiter
-# adv_attr is an array of possible limiters, the first one that has any
-# values will be used
-# adv_break will end the current row. If specified with a label/attr it
-# will do so *after* that limiter.
-# adv_special will drop in a special entry:
-# sort_selector will put the sort results selector
-# lib_selector will put the search library box (with limit to available)
-# pub_year will put the publication year box
-
-search.bool_config = [
- {adv_label => l("Item Type"), adv_attr => ["mattype", "item_type"]},
- {adv_label => l("Language"), adv_attr => "item_lang"},
- {adv_label => l("Sort Results"), adv_special => "sort_selector", adv_break => 1},
- {adv_label => l("Search Library"), adv_special => "lib_selector"},
- {adv_label => l("Publication Year"), adv_special => "pub_year"},
-];
##############################################################################
# Define if the boolean search tab is enabled on the
--- /dev/null
+Free-form Boolean search tab
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+The advanced search screen now has a _Boolean Search_ tab where users can enter a free-form Boolean search. In this interface, the words _and_, _or_, and _not_ are treated as Boolean search operators instead of search terms.
+
+There is a search.boolean_enabled setting in config.tt2 that allows sites to
+enable/disable the Boolean Search tab.