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