]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/opac/parts/config.tt2
LP#1326149 Use a TPAC-settable TIME_FORMAT for local time formats
[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 # 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 # Misc. UI Settings
76 ##############################################################################
77
78 ##############################################################################
79 # Size of the jacket image to display on the record detail summary.
80 # Sizes vary depending on added content provider.
81 # Options are "small", "medium", and "large"
82 record.summary.jacket_size = 'medium';
83
84
85 ##############################################################################
86 # Define the order in which facets are displayed.  Only facets listed here 
87 # will be displayed.  To show all facets sorted by name, comment out this 
88 # setting.  
89 # facet.display = [] # show no facets
90 facet.display = [
91     {facet_class => 'author',  facet_order => ['personal', 'corporate']},
92     {facet_class => 'subject', facet_order => ['topic']},
93     {facet_class => 'series',  facet_order => ['seriestitle']},
94     {facet_class => 'subject', facet_order => ['name', 'geographic']}
95 ];
96 facet.default_display_count = 5;
97
98 ##############################################################################
99 # Define the advanced search limiters and labels.
100 # Each entry is put into a table cell.
101 # adv_label is the (translated) label for the limiter
102 # adv_attr is an array of possible limiters, the first one that has any
103 #   values will be used
104 # adv_filter is the same as adv_attr, but for search filter groups
105 # adv_size lets you set the height of the adv_attr or adv_filter select box.
106 # if adv_size < 1, the box height is set to the number of options in it.
107 # adv_break will end the current row. If specified with a label/attr it
108 #   will do so *after* that limiter.
109 # adv_special will drop in a special entry:
110 #   lib_selector will put the search library box (with limit to available)
111 #   pub_year will put the publication year box
112 #   sort_selector will put the sort results selector
113 # id DOM id used for linking labels to form controls.  They are pinned 
114 #   here instead of auto-generated (from the attr type, for example) 
115 #   for consistency.
116
117 search.adv_config = [
118     {adv_label => l("Item Type"), adv_attr => ["mattype", "item_type"], id => 'adv_selector_item_type'},
119     {adv_label => l("Item Form"), adv_attr => "item_form", id => 'adv_selector_item_form'},
120     {adv_label => l("Language"),  adv_attr => "item_lang", id => 'adv_selector_item_lang'},
121     {adv_label => l("Audience"),  adv_attr => ["audience_group", "audience"], id => 'adv_selector_audience', adv_break => 1},
122     {adv_label => l("Video Format"), adv_attr => "vr_format", id => 'adv_selector_video_format'},
123     {adv_label => l("Bib Level"), adv_attr => "bib_level", id => 'adv_selector_bib_level'},
124     {adv_label => l("Literary Form"), adv_attr => "lit_form", id => 'adv_selector_lit_form'},
125     {adv_label => l("Shelving Location"), adv_special => "copy_location", id => 'adv_copy_location_selector', js_only => 1, adv_break => 1},
126     {adv_label => l("Search Library"), adv_special => "lib_selector", id => 'adv_org_selector'},
127     {adv_label => l("Publication Year"), adv_special => "pub_year", id => 'adv_selector_pub_year'},
128     {adv_label => l("Sort Results"), adv_special => "sort_selector", id => 'adv_selector_sort_results'},
129 ];
130
131 # Set the default height of the select boxes. Defaults to 4.
132 #search.default_adv_select_height = 4;
133
134 ##############################################################################
135 # For each search box the default "query type" value can be specified here
136 # This is the actual backend value, not the label
137 # Also note that including more than the row count entries won't add rows
138 # The first entry should be used as a default for "basic" search as well
139
140 search.default_qtypes = ['keyword','title','author'];
141
142 ##############################################################################
143 # Basic Search Box definition
144 # This allows selection of what, exactly, basic search uses for a selection
145 # box. Previously it was hardcoded to use an attr box of mattype or item_type.
146 #
147 # type can be "attr" or "filter"
148 # group is the attr or filter entries you want to check for
149 # none_label is the label for the default nothing selected entry.
150
151 search.basic_config = {
152     type => 'attr',
153     group => [ctx.get_cgf('opac.format_selector.attr').value, 'item_type'],
154     none_label => l("All Formats"),
155 };
156
157 ##############################################################################
158 # Show Google Book Previews
159 # Set to 1 or 'true' to enable
160 ctx.google_books_preview = 0;
161
162 ##############################################################################
163
164 # Set a maintenance message to display in the catalogue
165 #
166 # ctx.maintenance_message = "The system will not be available February 29, 2104.";
167
168
169 ##############################################################################
170 # Metarecords configuration
171 # metarecords.disabled = 1; # disable all metarecord access points
172 ##############################################################################
173
174 ##############################################################################
175 # Local date format (uses POSIX strftime() formatting)
176 # See http://www.template-toolkit.org/docs/modules/Template/Plugin/Date.html
177 # DATE_FORMAT = '%Y-%m-%d'; # for 2014-06-31 format
178 ##############################################################################
179
180 ##############################################################################
181 # Local time format (uses POSIX strftime() formatting)
182 # See http://www.template-toolkit.org/docs/modules/Template/Plugin/Date.html
183 # TIME_FORMAT = '%H:%M:%S'; # for 16:32:32 (24 hour) format
184 # TIME_FORMAT = '%H:%M'; # for 16:32 (24 hour) format
185 ##############################################################################
186
187 %]