]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/parts/config.tt2
LP#1744385: Allow highlight disabling globally via config.tt2
[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("Publication Year"), adv_special => "pub_year", id => 'adv_selector_pub_year'},
152     {adv_label => l("Sort Results"), adv_special => "sort_selector", id => 'adv_selector_sort_results'},
153 ];
154
155 # Set the default height of the select boxes. Defaults to 4.
156 #search.default_adv_select_height = 4;
157
158 ##############################################################################
159 # For each search box the default "query type" value can be specified here
160 # This is the actual backend value, not the label
161 # Also note that including more than the row count entries won't add rows
162 # The first entry should be used as a default for "basic" search as well
163
164 search.default_qtypes = ['keyword','title','author'];
165
166 ##############################################################################
167 # Basic Search Box definition
168 # This allows selection of what, exactly, basic search uses for a selection
169 # box. Previously it was hardcoded to use an attr box of mattype or item_type.
170 #
171 # type can be "attr" or "filter"
172 # group is the attr or filter entries you want to check for
173 # none_label is the label for the default nothing selected entry.
174
175 search.basic_config = {
176     type => 'attr',
177     group => [ctx.get_cgf('opac.format_selector.attr').value, 'item_type'],
178     none_label => l("All Formats"),
179 };
180
181 # Make metarecord search the default.
182 #search.metarecord_default = 1;
183
184 # Disable search term highlighting
185 #search.no_highlight = 1;
186
187 ##############################################################################
188 # Show Google Book Previews
189 # Set to 1 or 'true' to enable
190 ctx.google_books_preview = 0;
191
192 ##############################################################################
193
194 # Set a maintenance message to display in the catalogue
195 #
196 # ctx.maintenance_message = "The system will not be available February 29, 2104.";
197
198 ##############################################################################
199 # Depth Button/Checkbox
200 # Recommendation: Do not enable button for basic search without enabling the
201 # checkbox for the results page
202 ctx.depth_sel_checkbox = 1; # Results Page Checkbox Toggle
203 ctx.depth_sel_button = 1; # Basic Search Submit Button
204 ctx.depth_sel_depth = 0; # Depth to set to
205 ctx.depth_sel_button_label = l('All Libraries');
206 ctx.depth_sel_button_class = 'opac-button';
207 ctx.depth_sel_checkbox_label = l('Show Results from All Libraries');
208 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.');
209 ctx.depth_sel_resultshint = l('Showing results from all libraries');
210
211 ##############################################################################
212 # Exclude Electronic Resources Checkbox
213 # One setting for both the advanced search page and the results bar.
214 # Off by default; set to 1 to display.
215 ctx.exclude_electronic_checkbox = 0;
216
217 ##############################################################################
218 # Metarecords configuration
219 # metarecords.disabled = 1; # disable all metarecord access points
220 ##############################################################################
221
222 ##############################################################################
223 # Local date format (uses POSIX strftime() formatting)
224 # See http://www.template-toolkit.org/docs/modules/Template/Plugin/Date.html
225 # DATE_FORMAT = '%Y-%m-%d'; # for 2014-06-31 format
226 ##############################################################################
227
228 ##############################################################################
229 # Local time format (uses POSIX strftime() formatting)
230 # See http://www.template-toolkit.org/docs/modules/Template/Plugin/Date.html
231 # TIME_FORMAT = '%H:%M:%S'; # for 16:32:32 (24 hour) format
232 # TIME_FORMAT = '%H:%M'; # for 16:32 (24 hour) format
233 ##############################################################################
234
235 ##############################################################################
236 # Obalkyknih.cz support
237 ##############################################################################
238 # Obalkyknihy.cz is free Czech service providing added content and book covers
239 # Set to 'true' to enable
240 ##############################################################################
241 # obalkyknih_cz.enabled = 'false';
242
243 ##############################################################################
244 # JQuery support
245 ##############################################################################
246 # Include JQuery in the TPAC?
247 # Set to a true value to enable
248 ##############################################################################
249 # ctx.want_jquery = 1;
250
251 ##############################################################################
252 # Browser cache-busting key
253 ##############################################################################
254 # Links to assets like stylesheets, JavaScript, and images will have this
255 # key appended so that browsers will be forced to request a new version.
256 # Enables you to set a cache max-date of years.
257 #
258 # If unset, it falls back to eg_cache_hash (which is set every time you run
259 # "autogen", which may or may not be when you change styles etc)
260 ##############################################################################
261 # ctx.cache_key = '001'
262
263 %]