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