This uses evergreen's filter group functionality to add
"Videos", "Maps", and "Music" for limiting searches from the
basic search screen. The link to the jspac is also finally
retired and a "Start Over" link is added.
The filter group uses the following SQL:
INSERT INTO actor.search_filter_group (owner, code, label)
VALUES (106, 'tpac_windsor', 'Windsor''s OPAC Search Filter');
INSERT INTO actor.search_query (label, query_text)
VALUES ('Maps', 'item_type(e,f)');
INSERT INTO actor.search_query (label, query_text)
VALUES ('Music', 'item_type(c,d,j)');
INSERT INTO actor.search_query (label, query_text)
VALUES ('Videos', 'item_type(g)');
INSERT INTO actor.search_filter_group_entry (grp, query, pos)
VALUES (
(SELECT id FROM actor.search_filter_group WHERE code = 'tpac_windsor'),
(SELECT id FROM actor.search_query WHERE label = 'Maps'),
1
);
INSERT INTO actor.search_filter_group_entry (grp, query, pos)
VALUES (
(SELECT id FROM actor.search_filter_group WHERE code = 'tpac_windsor'),
(SELECT id FROM actor.search_query WHERE label = 'Music'),
2
);
INSERT INTO actor.search_filter_group_entry (grp, query, pos)
VALUES (
(SELECT id FROM actor.search_filter_group WHERE code = 'tpac_windsor'),
(SELECT id FROM actor.search_query WHERE label = 'Videos'),
3
);
Signed-off-by: Art Rhyno <art632000@yahoo.ca>
# Holds hiding
##############################################################################
# Hide the ability to place holds at all
-ctx.holds_hide.enabled = 'true';
+ctx.holds_hide.enabled = 'false';
##############################################################################
# Holds blocking
search.default_qtypes = ['keyword','title','author'];
+##############################################################################
+# Basic Search Box definition
+# This allows selection of what, exactly, basic search uses for a selection
+# box. Previously it was hardcoded to use an attr box of mattype or item_type.
+#
+# type can be "attr" or "filter"
+# group is the attr or filter entries you want to check for
+# none_label is the label for the default nothing selected entry.
+
+search.basic_config = {
+ type => 'filter',
+ group => ['tpac_windsor'],
+ none_label => l("All Formats"),
+};
+
+
%]
<a href="http://sfx.scholarsportal.info/windsor/az">[% l('Browse Journals') %]</a> |
<a href="http://reserves.uwindsor.ca/">[% l('Access Course Reserves') %]</a> |
<a href="http://leddy.uwindsor.ca/hours">[% l('Library Hours') %]</a> |
- <a href="http://leddy.uwindsor.ca/contact-us">[% l('Contact Us') %]</a>
+ <a href="http://leddy.uwindsor.ca/contact-us">[% l('Contact Us') %]</a> |
+ <a href="/">[% l('Start Over') %]</a>
[% IF ctx.timing %]
<div id="timing">
[% FOR event IN ctx.timing %]
<div id="homesearch_main_logo">
- <strong>
- <center>
- <h3>
- [% l('Notice anything different? We are trying a new interface to the catalogue but you can still use the previous version') %]
- <a href="http://windsor.concat.ca/opac/en-CA/skin/uwin/xml/index.xml?l=106">[% l('here') %]</a>
- </h3>
- </center>
<center>
<img src="[% ctx.media_prefix %]/images/uwin_logo.png" />
</center>
- </strong>
</div>
<a href="http://reserves.uwindsor.ca/">[% l('Access Course Reserves') %]</a>
<a href="http://leddy.uwindsor.ca/hours">[% l('Library Hours') %]</a>
<a href="http://leddy.uwindsor.ca/contact-us">[% l('Contact Us') %]</a>
+ <a href="/">[% l('Start Over') %]</a>
</div>
</div>
</div>