##############################################################################
# Holds blocking
##############################################################################
-# Block the ability to place holds if item is available
+# Prevent the "Place hold" link from being displayed if a copy is available.
+# This is not perfect, given the umpteen different types of holds that are
+# possible, but addresses the major use case for libraries that don't want
+# to fetch copies from the shelves.
ctx.holds_block.enabled = 'true';
##############################################################################
##############################################################################
allow_phone_notifications = 'true';
+##############################################################################
# Misc. UI Settings
##############################################################################
# Options are "small", "medium", and "large"
record.summary.jacket_size = 'medium';
+
##############################################################################
# Define the order in which facets are displayed. Only facets listed here
# will be displayed. To show all facets sorted by name, comment out this
##############################################################################
# Define the advanced search limiters and labels.
+# Each entry is put into a table cell.
# 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_filter is the same as adv_attr, but for search filter groups
+# adv_size lets you set the height of the adv_attr or adv_filter select box.
+# if adv_size < 1, the box height is set to the number of options in it.
# 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:
# lib_selector will put the search library box (with limit to available)
# pub_year will put the publication year box
# sort_selector will put the sort results selector
+# id DOM id used for linking labels to form controls. They are pinned
+# here instead of auto-generated (from the attr type, for example)
+# for consistency.
search.adv_config = [
- {adv_label => l("Item Type"), adv_attr => ["mattype", "item_type"]},
- {adv_label => l("Item Form"), adv_attr => "item_form"},
- {adv_label => l("Language"), adv_attr => "item_lang"},
- {adv_label => l("Audience"), adv_attr => ["audience_group", "audience"], adv_break => 1},
- {adv_label => l("Video Format"), adv_attr => "vr_format"},
- {adv_label => l("Bib Level"), adv_attr => "bib_level"},
- {adv_label => l("Literary Form"), adv_attr => "lit_form", adv_break => 1},
- {adv_label => l("Search Library"), adv_special => "lib_selector"},
- {adv_label => l("Publication Year"), adv_special => "pub_year"},
- {adv_label => l("Sort Results"), adv_special => "sort_selector"},
+ {adv_label => l("Item Type"), adv_attr => ["mattype", "item_type"], id => 'adv_selector_item_type'},
+ {adv_label => l("Item Form"), adv_attr => "item_form", id => 'adv_selector_item_form'},
+ {adv_label => l("Language"), adv_attr => "item_lang", id => 'adv_selector_item_lang'},
+ {adv_label => l("Audience"), adv_attr => ["audience_group", "audience"], id => 'adv_selector_audience', adv_break => 1},
+ {adv_label => l("Video Format"), adv_attr => "vr_format", id => 'adv_selector_video_format'},
+ {adv_label => l("Bib Level"), adv_attr => "bib_level", id => 'adv_selector_bib_level'},
+ {adv_label => l("Literary Form"), adv_attr => "lit_form", id => 'adv_selector_lit_form'},
+ {adv_label => l("Shelving Location"), adv_special => "copy_location", id => 'adv_copy_location_selector', js_only => 1, adv_break => 1},
+ {adv_label => l("Search Library"), adv_special => "lib_selector", id => 'adv_org_selector'},
+ {adv_label => l("Publication Year"), adv_special => "pub_year", id => 'adv_selector_pub_year'},
+ {adv_label => l("Sort Results"), adv_special => "sort_selector", id => 'adv_selector_sort_results'},
];
+# Set the default height of the select boxes. Defaults to 4.
+#search.default_adv_select_height = 4;
+
##############################################################################
# For each search box the default "query type" value can be specified here
# This is the actual backend value, not the label
search.basic_config = {
type => 'attr',
- group => ['mattype','item_type'],
+ group => [ctx.get_cgf('opac.format_selector.attr').value, 'item_type'],
none_label => l("All Formats"),
};
# Set to 1 or 'true' to enable
ctx.google_books_preview = 1;
+##############################################################################
+
+# Set a maintenance message to display in the catalogue
+#
+# ctx.maintenance_message = "The system will not be available February 29, 2104.";
+
+
+##############################################################################
+# Metarecords configuration
+# metarecords.disabled = 1; # disable all metarecord access points
+##############################################################################
+
+##############################################################################
+# Local date format (uses POSIX strftime() formatting)
+# See http://www.template-toolkit.org/docs/modules/Template/Plugin/Date.html
+# DATE_FORMAT = '%Y-%m-%d'; # for 2014-06-31 format
+##############################################################################
+
+##############################################################################
+# Local time format (uses POSIX strftime() formatting)
+# See http://www.template-toolkit.org/docs/modules/Template/Plugin/Date.html
+# TIME_FORMAT = '%H:%M:%S'; # for 16:32:32 (24 hour) format
+# TIME_FORMAT = '%H:%M'; # for 16:32 (24 hour) format
+##############################################################################
+
%]