From: Dan Scott Date: Wed, 17 Dec 2014 20:42:12 +0000 (-0500) Subject: Merge config.tt2 changes into Algoma skin X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ac47d7d5f40e2897eb7ad60ffbb93d93766605b0;p=contrib%2FConifer.git Merge config.tt2 changes into Algoma skin Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/templates_algoma/opac/parts/config.tt2 b/Open-ILS/src/templates_algoma/opac/parts/config.tt2 index c5b9a47703..5cd7ecdfbd 100644 --- a/Open-ILS/src/templates_algoma/opac/parts/config.tt2 +++ b/Open-ILS/src/templates_algoma/opac/parts/config.tt2 @@ -8,7 +8,10 @@ ############################################################################## # 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'; ############################################################################## @@ -68,6 +71,7 @@ disable_email_change = 'false'; ############################################################################## allow_phone_notifications = 'true'; +############################################################################## # Misc. UI Settings ############################################################################## @@ -77,6 +81,7 @@ allow_phone_notifications = 'true'; # 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 @@ -92,30 +97,40 @@ facet.default_display_count = 5; ############################################################################## # 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 @@ -135,7 +150,7 @@ search.default_qtypes = ['keyword','title','author']; 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"), }; @@ -144,4 +159,29 @@ search.basic_config = { # 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 +############################################################################## + %]