Add search filters for formats and clean up front page
authorArt Rhyno <art632000@yahoo.ca>
Tue, 4 Dec 2012 02:15:33 +0000 (21:15 -0500)
committerDan Scott <dscott@laurentian.ca>
Tue, 11 Dec 2012 15:48:56 +0000 (10:48 -0500)
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>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates_windsor/opac/parts/config.tt2
Open-ILS/src/templates_windsor/opac/parts/footer.tt2
Open-ILS/src/templates_windsor/opac/parts/homesearch.tt2
Open-ILS/src/templates_windsor/opac/parts/topnav_links.tt2

index 6debf95..fab6b33 100644 (file)
@@ -9,7 +9,7 @@
 # Holds hiding
 ##############################################################################
 # Hide the ability to place holds at all
-ctx.holds_hide.enabled = 'true';
+ctx.holds_hide.enabled = 'false';
 
 ##############################################################################
 # Holds blocking
@@ -136,4 +136,20 @@ search.adv_config = [
 
 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"),
+};
+
+
 %]
index ca61536..744b32d 100644 (file)
@@ -6,7 +6,8 @@
     <a href="http://sfx.scholarsportal.info/windsor/az">[% l('Browse Journals') %]</a> &nbsp;|&nbsp;
     <a href="http://reserves.uwindsor.ca/">[% l('Access Course Reserves') %]</a> &nbsp;|&nbsp;
     <a href="http://leddy.uwindsor.ca/hours">[% l('Library Hours') %]</a> &nbsp;|&nbsp;
-    <a href="http://leddy.uwindsor.ca/contact-us">[% l('Contact Us') %]</a>
+    <a href="http://leddy.uwindsor.ca/contact-us">[% l('Contact Us') %]</a> &nbsp;|&nbsp;
+   <a href="/">[% l('Start Over') %]</a>
     [% IF ctx.timing %]
     <div id="timing">
         [% FOR event IN ctx.timing %]
index 591a61d..a640ba9 100644 (file)
@@ -1,13 +1,5 @@
 <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>
index 6622098..8dad122 100644 (file)
@@ -8,6 +8,7 @@
             <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>