]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/parts/config.tt2
TPAC: Google Books preview loader
[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 # Misc. UI Settings
60 ##############################################################################
61
62 ##############################################################################
63 # Size of the jacket image to display on the record detail summary.
64 # Sizes vary depending on added content provider.
65 # Options are "small", "medium", and "large"
66 record.summary.jacket_size = 'medium';
67
68
69 ##############################################################################
70 # Define the order in which facets are displayed.  Only facets listed here 
71 # will be displayed.  To show all facets sorted by name, comment out this 
72 # setting.  
73 # facet.display = [] # show no facets
74 facet.display = [
75     {facet_class => 'author',  facet_order => ['personal', 'corporate']},
76     {facet_class => 'subject', facet_order => ['topic']},
77     {facet_class => 'series',  facet_order => ['seriestitle']},
78     {facet_class => 'subject', facet_order => ['name', 'geographic']}
79 ];
80 facet.default_display_count = 5;
81
82 ##############################################################################
83 # Define the advanced search limiters and labels.
84 # adv_label is the (translated) label for the limiter
85 # adv_attr is an array of possible limiters, the first one that has any
86 #   values will be used
87 # adv_filter is the same as adv_attr, but for search filter groups
88 # adv_break will end the current row. If specified with a label/attr it
89 #   will do so *after* that limiter.
90 # adv_special will drop in a special entry:
91 #   lib_selector will put the search library box (with limit to available)
92 #   pub_year will put the publication year box
93 #   sort_selector will put the sort results selector
94
95 search.adv_config = [
96     {adv_label => l("Item Type"), adv_attr => ["mattype", "item_type"]},
97     {adv_label => l("Item Form"), adv_attr => "item_form"},
98     {adv_label => l("Language"),  adv_attr => "item_lang"},
99     {adv_label => l("Audience"),  adv_attr => ["audience_group", "audience"], adv_break => 1},
100     {adv_label => l("Video Format"), adv_attr => "vr_format"},
101     {adv_label => l("Bib Level"), adv_attr => "bib_level"},
102     {adv_label => l("Literary Form"), adv_attr => "lit_form", adv_break => 1},
103     {adv_label => l("Search Library"), adv_special => "lib_selector"},
104     {adv_label => l("Publication Year"), adv_special => "pub_year"},
105     {adv_label => l("Sort Results"), adv_special => "sort_selector"},
106 ];
107
108 ##############################################################################
109 # For each search box the default "query type" value can be specified here
110 # This is the actual backend value, not the label
111 # Also note that including more than the row count entries won't add rows
112 # The first entry should be used as a default for "basic" search as well
113
114 search.default_qtypes = ['keyword','title','author'];
115
116 ##############################################################################
117 # Basic Search Box definition
118 # This allows selection of what, exactly, basic search uses for a selection
119 # box. Previously it was hardcoded to use an attr box of mattype or item_type.
120 #
121 # type can be "attr" or "filter"
122 # group is the attr or filter entries you want to check for
123 # none_label is the label for the default nothing selected entry.
124
125 search.basic_config = {
126     type => 'attr',
127     group => ['mattype','item_type'],
128     none_label => l("All Formats"),
129 };
130
131 ##############################################################################
132 # Show Google Book Previews
133 # Set to 1 or 'true' to enable
134 ctx.google_books_preview = 0;
135
136 %]