]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates-bootstrap/opac/parts/config.tt2
LP1908298 Bootstrap OPAC: Type filter missing from advanced search
[Evergreen.git] / Open-ILS / src / templates-bootstrap / opac / parts / config.tt2
1 [%
2
3 ##############################################################################
4 # This file contains skin-level configuration settings.
5 # Many of these settings will probably migrate into actor.org_unit_settings.
6 ##############################################################################
7
8
9 ##############################################################################
10 # Holds blocking
11 ##############################################################################
12 # Prevent the "Place hold" link from being displayed if a copy is available.
13 # This is not perfect, given the umpteen different types of holds that are
14 # possible, but addresses the major use case for libraries that don't want
15 # to fetch copies from the shelves.
16 ctx.holds_block.enabled = 'false';
17
18 ##############################################################################
19 # RefWorks configuration
20 ##############################################################################
21 # RefWorks is a Web-based citation manager
22 ctx.refworks.enabled = 'false';
23
24 # Base URL for RefWorks
25 ctx.refworks.url = 'http://www.refworks.com';
26
27 # Some sites have a hosted RefWorks instance at a different URL;
28 # in addition, you might want to proxy access to RefWorks - for example:
29 # ctx.refworks.url = 'http://librweb.laurentian.ca/login?url=http://refworks.scholarsportal.info';
30
31 ##############################################################################
32 # OpenURL resolution
33 ##############################################################################
34 # Evergreen provides the ability to point at an OpenURL resolver to find
35 # electronic resources for a given ISSN or ISBN. Currently, only the SFX
36 # resolver is supported.
37 #
38 # You must enable the open-ils.resolver instance in opensrf.xml to use
39 # this feature.
40 ##############################################################################
41
42 openurl.enabled = 'false';
43 openurl.baseurl = 'http://sfx.example.com/instance';
44
45 ##############################################################################
46 # Google Analytics support
47 ##############################################################################
48 # You can enable Google Analytics support in Evergreen by entering a
49 # valid Google Analytics code and changing 'false' to 'true'
50 ##############################################################################
51 google_analytics.enabled = 'false';
52 google_analytics.code = 'UA-9999999-99';
53
54 ##############################################################################
55 # Ebook API integration
56 ##############################################################################
57 ebook_api.enabled = 'true';
58 ebook_api.ebook_test.enabled = 'true';
59 ebook_api.ebook_test.base_uris = [ 'http://example.com/ebookapi/t/' ];
60 ebook_api.oneclickdigital.enabled = 'false';
61 ebook_api.oneclickdigital.base_uris = [ 'http://example.oneclickdigital.com/Products/ProductDetail.aspx' ];
62 ebook_api.overdrive.enabled = 'false';
63 ebook_api.overdrive.base_uris = [ 'http://elm.lib.overdrive.com/' ];
64
65 ##############################################################################
66 # Enable "Forgot your password?" prompt at login
67 ##############################################################################
68 reset_password = 'true';
69
70 ##############################################################################
71 # Hide various options from user preferences that you might not want to expose
72 # if you rely on centralized authentication via open-ils.auth_proxy, like LDAP
73 #
74 # Username changes can be disabled by the opac.lock_usernames OU setting.
75 ##############################################################################
76 disable_password_change = 'false';
77 disable_email_change = 'false';
78
79 ##############################################################################
80 # Some libraries do not do notifications by phone; if not true, then this
81 # hides the user preference for phone notifications as well as the phone
82 # notification portion of the hold dialogue
83 ##############################################################################
84 allow_phone_notifications = 'true';
85
86 ##############################################################################
87 # Format of parts selection on Place Holds screen
88 # Set to true to use radio buttons for parts selection on the Place Holds
89 # screen. The default behavior is to to display them in a select menu.
90 #############################################################################
91 enable.radio.parts = 'false';
92
93 ##############################################################################
94 # Misc. UI Settings
95 ##############################################################################
96 # Option for full details as a default, esp. impt. for e-content
97 # that uses resolver plumbing. Valid values are 'true', 'false' and 'hide'.
98 # Setting this to 'true' shows full details by default but allows the link
99 # to appear for 'Show Fewer Details'. The 'hide' option shows full details
100 # and also suppresses the link from displaying at all.
101 show_more_details.default = 'false';
102
103 ##############################################################################
104 # Size of the jacket image to display on the record detail summary.
105 # Sizes vary depending on added content provider.
106 # Options are "small", "medium", and "large"
107 record.summary.jacket_size = 'medium';
108
109 ##############################################################################
110 # Define the order in which facets are displayed.  Only facets listed here
111 # will be displayed.  To show all facets sorted by name, comment out this
112 # setting.
113 # facet.display = [] # show no facets
114 facet.display = [
115     {facet_class => 'author',  facet_order => ['personal']},
116     {facet_class => 'subject', facet_order => ['topic']},
117     #{facet_class => 'identifier', facet_order => ['genre']},
118     {facet_class => 'series',  facet_order => ['seriestitle']},
119     {facet_class => 'subject', facet_order => ['name']}
120 ];
121 facet.default_display_count = 4;
122
123 ##############################################################################
124 # Define the advanced search limiters and labels.
125 # Each entry is put into a table cell.
126 # adv_label is the (translated) label for the limiter
127 # adv_attr is an array of possible limiters, the first one that has any
128 #   values will be used
129 # adv_filter is the same as adv_attr, but for search filter groups
130 # adv_size lets you set the height of the adv_attr or adv_filter select box.
131 # if adv_size < 1, the box height is set to the number of options in it.
132 # adv_break will end the current row. If specified with a label/attr it
133 #   will do so *after* that limiter.
134 # adv_special will drop in a special entry:
135 #   lib_selector will put the search library box (with limit to available)
136 #   pub_year will put the publication year box
137 #   sort_selector will put the sort results selector
138 # id DOM id used for linking labels to form controls.  They are pinned
139 #   here instead of auto-generated (from the attr type, for example)
140 #   for consistency.
141
142 search.adv_config = [
143     {adv_label => l("Item Type"), adv_attr => ["mattype", "item_type"], id => 'adv_selector_item_type'},
144     {adv_label => l("Item Form"), adv_attr => "item_form", id => 'adv_selector_item_form'},
145     {adv_label => l("Language"),  adv_attr => "item_lang", id => 'adv_selector_item_lang'},
146     {adv_label => l("Audience"),  adv_attr => ["audience_group", "audience"], id => 'adv_selector_audience', adv_break => 1},
147     {adv_label => l("Video Format"), adv_attr => "vr_format", id => 'adv_selector_video_format'},
148     {adv_label => l("Bib Level"), adv_attr => "bib_level", id => 'adv_selector_bib_level'},
149     {adv_label => l("Literary Form"), adv_attr => "lit_form", id => 'adv_selector_lit_form'},
150     {adv_label => l("Shelving Location"), adv_special => "copy_location", id => 'adv_copy_location_selector', js_only => 101, adv_break => 1},
151     {adv_label => l("Search Library"), adv_special => "lib_selector", id => 'adv_org_selector'},
152     {adv_label => l("Publication Year"), adv_special => "pub_year", id => 'adv_selector_pub_year'},
153     {adv_label => l("Sort Results"), adv_special => "sort_selector", id => 'adv_selector_sort_results'},
154 ];
155
156 # Set the default height of the select boxes. Defaults to 4.
157 #search.default_adv_select_height = 4;
158
159 ##############################################################################
160 # For each search box the default "query type" value can be specified here
161 # This is the actual backend value, not the label
162 # Also note that including more than the row count entries won't add rows
163 # The first entry should be used as a default for "basic" search as well
164
165 search.default_qtypes = ['keyword','title','author'];
166
167 ##############################################################################
168 # Basic Search Box definition
169 # This allows selection of what, exactly, basic search uses for a selection
170 # box. Previously it was hardcoded to use an attr box of mattype or item_type.
171 #
172 # type can be "attr" or "filter"
173 # group is the attr or filter entries you want to check for
174 # none_label is the label for the default nothing selected entry.
175
176 search.basic_config = {
177     type => 'attr',
178     group => [ctx.get_cgf('opac.format_selector.attr').value, 'item_type'],
179     none_label => l("All Formats"),
180 };
181
182 # Make metarecord search the default.
183 #search.metarecord_default = 1;
184
185 # Disable search term highlighting
186 #search.no_highlight = 1;
187
188 ##############################################################################
189 # Show Google Book Previews
190 # Set to 1 or 'true' to enable
191 ctx.google_books_preview = 0;
192
193 ##############################################################################
194
195 # Set a maintenance message to display in the catalogue
196 #ctx.maintenance_message = "<b>This OPAC will be unavailable part of March 15, 2019 for planned upgrades.</b>";
197 # Maintenance types follow Bootstrap4 alert options as follows
198 # success = green; info = blue; warning = yellow; danger = red
199 # Other colors would require re-coding the alert
200 #ctx.maintenance_type = l('warning');
201
202 ##############################################################################
203 # Depth Button/Checkbox
204 # Recommendation: Do not enable button for basic search without enabling the
205 # checkbox for the results page
206 ctx.depth_sel_checkbox = 1; # Results Page Checkbox Toggle
207 ctx.depth_sel_button = 1; # Basic Search Submit Button
208 ctx.depth_sel_depth = 0; # Depth to set to
209 ctx.depth_sel_button_label = l('All Libraries');
210 ctx.depth_sel_button_class = 'opac-button';
211 ctx.depth_sel_checkbox_label = l('Show Results from All Libraries');
212 ctx.depth_sel_tooltip = l('Select this option to expand your results to all libraries while retaining the priority of your selected librarys holdings.');
213 ctx.depth_sel_resultshint = l('Showing results from all libraries');
214
215 ##############################################################################
216 # Exclude Electronic Resources Checkbox
217 # One setting for both the advanced search page and the results bar.
218 # Off by default; set to 1 to display.
219 ctx.exclude_electronic_checkbox = 1;
220
221 ##############################################################################
222 # Metarecords configuration
223 # metarecords.disabled = 1; # disable all metarecord access points
224 ##############################################################################
225
226 ##############################################################################
227 # Local date format (uses POSIX strftime() formatting)
228 # See http://www.template-toolkit.org/docs/modules/Template/Plugin/Date.html
229 # DATE_FORMAT = '%Y-%m-%d'; # for 2014-06-31 format
230 ##############################################################################
231
232 ##############################################################################
233 # Local time format (uses POSIX strftime() formatting)
234 # See http://www.template-toolkit.org/docs/modules/Template/Plugin/Date.html
235 # TIME_FORMAT = '%H:%M:%S'; # for 16:32:32 (24 hour) format
236 # TIME_FORMAT = '%H:%M'; # for 16:32 (24 hour) format
237 ##############################################################################
238
239 ##############################################################################
240 # Obalkyknih.cz support
241 ##############################################################################
242 # Obalkyknihy.cz is free Czech service providing added content and book covers
243 # Set to 'true' to enable
244 ##############################################################################
245 # obalkyknih_cz.enabled = 'false';
246
247 ##############################################################################
248 # JQuery support
249 ##############################################################################
250 # Include JQuery in the TPAC?
251 # Set to a true value to enable
252 ##############################################################################
253 # ctx.want_jquery = 1;
254
255 ##############################################################################
256 # Browser cache-busting key
257 ##############################################################################
258 # Links to assets like stylesheets, JavaScript, and images will have this
259 # key appended so that browsers will be forced to request a new version.
260 # Enables you to set a cache max-date of years.
261 #
262 # If unset, it falls back to eg_cache_hash (which is set every time you run
263 # "autogen", which may or may not be when you change styles etc)
264 ##############################################################################
265 #ctx.cache_key = '001'
266
267 ##############################################################################
268 # Display of badge scores
269 ##############################################################################
270 ctx.hide_badge_scores = 'false';
271
272 ##############################################################################
273 # Maximum number of items allowed to be stored in a basket
274 ##############################################################################
275 ctx.max_cart_size = 500;
276
277 ##############################################################################
278 # Display booking reservations tab in myopac
279 ##############################################################################
280 ctx.show_reservations_tab = 'false';
281
282 %]