]> git.evergreen-ils.org Git - working/Evergreen.git/blob - docs/RELEASE_NOTES_NEXT/search-filter-groups.txt
2d2c83d603503cc8da8cb3ea12016d6d2b834a51
[working/Evergreen.git] / docs / RELEASE_NOTES_NEXT / search-filter-groups.txt
1 Search Filter Groups
2 --------------------
3
4 Search filter groups support the collection of free-form search queries into
5 named groups of named filters which can be applied to searches.  The purpose 
6 is to allow systems to fine tune filters in the catalog.
7
8 Editing the groups and their entries is done in the staff client at
9 Admin -> Local Administration -> Search Filter Groups.
10
11 Example
12 ~~~~~~~
13
14 Consider a new filter called "reading_level".  It uses a combination of 
15 MARC audience and shelving location to differentiate items.  It might have
16 entries that look like this:
17
18 Children's Materials => audience(a,b,c) locations(1,2,3,4,5,6,7)
19
20 Young Adult => audience(j,d) locations(5,6,7,8,9,10)
21
22 Adult => audience(e,f,g, ) -locations(1,2,3,4,5,6,7,8,9)
23
24 Using the filter in a template
25 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26
27 [source, html]
28 ---------------------------------------------------
29 <span>[% ctx.filter_groups.reading_level.label %]<span>
30 <span>
31 [%
32     INCLUDE 'opac/parts/filter_group_selector.tt2'
33     filter_group='reading_level'
34     none_ok=1
35     none_label=l('All')
36 %]
37 <span>
38 ---------------------------------------------------