]> git.evergreen-ils.org Git - Evergreen.git/commit - Open-ILS/src/sql/Pg/950.data.seed-values.sql
LP1895699: Add an on_reserve search filter
authorJane Sandberg <sandbej@linnbenton.edu>
Sun, 28 Feb 2021 05:47:12 +0000 (21:47 -0800)
committerTerran McCanna <tmccanna@georgialibraries.org>
Mon, 13 Nov 2023 22:29:09 +0000 (17:29 -0500)
commitcb80c1fe9580605cd55ebbbd4b7215f785cbbf22
tree4e74f1bbfacaf6daecb5f00270cbefe06fdf7afc
parente4ae312f58384b727a90b7105680d7c6300946de
LP1895699: Add an on_reserve search filter

This filter allows users to limit their search to records that are
attached to courses at particular libraries, like so:

    biology on_reserve(5, 10)

The filter can also be negated to search for records that are not
attached to a course:

    biology -on_reserve(5)

Also includes some additional bib records and courses to facilitate
testing.

A test using the concerto data set:
1) In the OPAC, run the following search at BR3: type
2) Note that you get 5 results
3) Run this search at BR3: type on_reserve(6)
4) Note that it's down to 2 results
5) Run this search at BR3: type -on_reserve(6)
6) Note that you get 3 results -- the 3 that were included in step 2 but
   not step 5.

Another test using concerto data set:
1) Ensure that your org is opted in to the Course Materials module,
   and that you don't have an old value of that library setting
   cached.
2) Use the advanced search screen to search for `graphic` at BR3
3) Check that the "Limit to course materials" checkbox works as
   expected.

Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
25 files changed:
Open-ILS/src/eg2/src/app/share/catalog/catalog-url.service.ts
Open-ILS/src/eg2/src/app/share/catalog/search-context.spec.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/share/catalog/search-context.ts
Open-ILS/src/eg2/src/app/staff/catalog/prefs.component.html
Open-ILS/src/eg2/src/app/staff/catalog/prefs.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/prefs.spec.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.html
Open-ILS/src/eg2/src/app/staff/catalog/search-form.component.ts
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
Open-ILS/src/perlmods/live_t/35-multiclass-search.t [new file with mode: 0644]
Open-ILS/src/perlmods/t/19-OpenILS-WWW-EGCatLoader.t
Open-ILS/src/perlmods/t/21-QueryParser.t
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.limit-search-to-reserves.sql [new file with mode: 0644]
Open-ILS/src/templates-bootstrap/opac/parts/advanced/search.tt2
Open-ILS/tests/datasets/sql/concerto/bibs_etextbooks.sql [new file with mode: 0644]
Open-ILS/tests/datasets/sql/concerto/course_materials.sql
Open-ILS/tests/datasets/sql/concerto/load_all.sql
docs/RELEASE_NOTES_NEXT/OPAC/on_reserves_filter.adoc [new file with mode: 0644]
docs/antora.yml
docs/modules/course/_attributes.adoc [new file with mode: 0644]
docs/modules/course/nav.adoc [new file with mode: 0644]
docs/modules/course/pages/introduction.adoc [new file with mode: 0644]
docs/modules/course/pages/searching.adoc [new file with mode: 0644]