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)
commita37b1c4e8df0340ada4b08a759afd5203321be01
treea721487b0091929adac4f67212c8107eaf228b0e
parentb0c17f85e253d5e8f8d749db34edf18fdd42e297
Add search filters for formats and clean up front page

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