]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/parts/config.tt2
58d2c09e41e9a8363e8b74fe575e5fc3080d0e40
[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 # Enable "Forgot your password?" prompt at login
55 ##############################################################################
56 reset_password = 'true';
57
58 ##############################################################################
59 # Hide various options from user preferences that you might not want to expose
60 # if you rely on centralized authentication via open-ils.auth_proxy, like LDAP
61 #
62 # Username changes can be disabled by the opac.lock_usernames OU setting.
63 ##############################################################################
64 disable_password_change = 'false';
65 disable_email_change = 'false';
66
67 ##############################################################################
68 # Some libraries do not do notifications by phone; if not true, then this
69 # hides the user preference for phone notifications as well as the phone
70 # notification portion of the hold dialogue
71 ##############################################################################
72 allow_phone_notifications = 'true';
73
74 ##############################################################################
75 # Format of parts selection on Place Holds screen
76 # Set to true to use radio buttons for parts selection on the Place Holds
77 # screen. The default behavior is to to display them in a select menu.
78 #############################################################################
79 enable.radio.parts = 'false';
80
81 ##############################################################################
82 # Misc. UI Settings
83 ##############################################################################
84 # Option for full details as a default, esp. impt. for e-content
85 # that uses resolver plumbing. Valid values are 'true', 'false' and 'hide'.
86 # Setting this to 'true' shows full details by default but allows the link
87 # to appear for 'Show Fewer Details'. The 'hide' option shows full details
88 # and also suppresses the link from displaying at all.
89 show_more_details.default = 'false';
90
91 ##############################################################################
92 # Size of the jacket image to display on the record detail summary.
93 # Sizes vary depending on added content provider.
94 # Options are "small", "medium", and "large"
95 record.summary.jacket_size = 'medium';
96
97 ##############################################################################
98 # Define the order in which facets are displayed.  Only facets listed here
99 # will be displayed.  To show all facets sorted by name, comment out this
100 # setting.
101 # facet.display = [] # show no facets
102 facet.display = [
103     {facet_class => 'author',  facet_order => ['personal', 'corporate']},
104     {facet_class => 'subject', facet_order => ['topic']},
105     {facet_class => 'identifier', facet_order => ['genre']},
106     {facet_class => 'series',  facet_order => ['seriestitle']},
107     {facet_class => 'subject', facet_order => ['name', 'geographic']}
108 ];
109 facet.default_display_count = 5;
110
111 ##############################################################################
112 # Define the advanced search limiters and labels.
113 # Each entry is put into a table cell.
114 # adv_label is the (translated) label for the limiter
115 # adv_attr is an array of possible limiters, the first one that has any
116 #   values will be used
117 # adv_filter is the same as adv_attr, but for search filter groups
118 # adv_size lets you set the height of the adv_attr or adv_filter select box.
119 # if adv_size < 1, the box height is set to the number of options in it.
120 # adv_break will end the current row. If specified with a label/attr it
121 #   will do so *after* that limiter.
122 # adv_special will drop in a special entry:
123 #   lib_selector will put the search library box (with limit to available)
124 #   pub_year will put the publication year box
125 #   sort_selector will put the sort results selector
126 # id DOM id used for linking labels to form controls.  They are pinned
127 #   here instead of auto-generated (from the attr type, for example)
128 #   for consistency.
129
130 search.adv_config = [
131     {adv_label => l("Item Type"), adv_attr => ["mattype", "item_type"], id => 'adv_selector_item_type'},
132     {adv_label => l("Item Form"), adv_attr => "item_form", id => 'adv_selector_item_form'},
133     {adv_label => l("Language"),  adv_attr => "item_lang", id => 'adv_selector_item_lang'},
134     {adv_label => l("Audience"),  adv_attr => ["audience_group", "audience"], id => 'adv_selector_audience', adv_break => 1},
135     {adv_label => l("Video Format"), adv_attr => "vr_format", id => 'adv_selector_video_format'},
136     {adv_label => l("Bib Level"), adv_attr => "bib_level", id => 'adv_selector_bib_level'},
137     {adv_label => l("Literary Form"), adv_attr => "lit_form", id => 'adv_selector_lit_form'},
138     {adv_label => l("Shelving Location"), adv_special => "copy_location", id => 'adv_copy_location_selector', js_only => 1, adv_break => 1},
139     {adv_label => l("Search Library"), adv_special => "lib_selector", id => 'adv_org_selector'},
140     {adv_label => l("Publication Year"), adv_special => "pub_year", id => 'adv_selector_pub_year'},
141     {adv_label => l("Sort Results"), adv_special => "sort_selector", id => 'adv_selector_sort_results'},
142 ];
143
144 # Set the default height of the select boxes. Defaults to 4.
145 #search.default_adv_select_height = 4;
146
147 ##############################################################################
148 # For each search box the default "query type" value can be specified here
149 # This is the actual backend value, not the label
150 # Also note that including more than the row count entries won't add rows
151 # The first entry should be used as a default for "basic" search as well
152
153 search.default_qtypes = ['keyword','title','author'];
154
155 ##############################################################################
156 # Basic Search Box definition
157 # This allows selection of what, exactly, basic search uses for a selection
158 # box. Previously it was hardcoded to use an attr box of mattype or item_type.
159 #
160 # type can be "attr" or "filter"
161 # group is the attr or filter entries you want to check for
162 # none_label is the label for the default nothing selected entry.
163
164 search.basic_config = {
165     type => 'attr',
166     group => [ctx.get_cgf('opac.format_selector.attr').value, 'item_type'],
167     none_label => l("All Formats"),
168 };
169
170 ##############################################################################
171 # Show Google Book Previews
172 # Set to 1 or 'true' to enable
173 ctx.google_books_preview = 0;
174
175 ##############################################################################
176
177 # Set a maintenance message to display in the catalogue
178 #
179 # ctx.maintenance_message = "The system will not be available February 29, 2104.";
180
181 ##############################################################################
182 # Depth Button/Checkbox
183 # Recommendation: Do not enable button for basic search without enabling the
184 # checkbox for the results page
185 ctx.depth_sel_checkbox = 1; # Results Page Checkbox Toggle
186 ctx.depth_sel_button = 1; # Basic Search Submit Button
187 ctx.depth_sel_depth = 0; # Depth to set to
188 ctx.depth_sel_button_label = l('All Libraries');
189 ctx.depth_sel_button_class = 'opac-button';
190 ctx.depth_sel_checkbox_label = l('Show Results from All Libraries');
191 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.');
192 ctx.depth_sel_resultshint = l('Showing results from all libraries');
193
194 ##############################################################################
195 # Exclude Electronic Resources Checkbox
196 # One setting for both the advanced search page and the results bar.
197 # Off by default; set to 1 to display.
198 ctx.exclude_electronic_checkbox = 0;
199
200 ##############################################################################
201 # Metarecords configuration
202 # metarecords.disabled = 1; # disable all metarecord access points
203 ##############################################################################
204
205 ##############################################################################
206 # Local date format (uses POSIX strftime() formatting)
207 # See http://www.template-toolkit.org/docs/modules/Template/Plugin/Date.html
208 # DATE_FORMAT = '%Y-%m-%d'; # for 2014-06-31 format
209 ##############################################################################
210
211 ##############################################################################
212 # Local time format (uses POSIX strftime() formatting)
213 # See http://www.template-toolkit.org/docs/modules/Template/Plugin/Date.html
214 # TIME_FORMAT = '%H:%M:%S'; # for 16:32:32 (24 hour) format
215 # TIME_FORMAT = '%H:%M'; # for 16:32 (24 hour) format
216 ##############################################################################
217
218 %]