]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1745207: tie together copy_tag() and site() search filters
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 22 Jan 2018 23:01:00 +0000 (18:01 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 11 Jul 2018 16:35:36 +0000 (12:35 -0400)
commit26b4105f4c688bceefa9eb595503ec89547aade1
treebbcd7736d4d54dc26a9df9ae4f09a2ec0e0a36a4
parent4fdd7e0fe6b4d79f8b18256c483dccc6a06c1f49
LP#1745207: tie together copy_tag() and site() search filters

The copy_tag() filter will now restrict itself to records that
have copies that both have matching copy tags and a circ_lib
within the site() scope.

To test
-------
[1] Define two digital bookplate copy tags at two difference org units, e.g.,
    "BR1 Smith" at BR1 and "BR4 Smith" at "BR4".
[2] Arrange that a record has items in both BR1 and BR4, and assign the "BR4 Smith"
    copy tag to one of the BR4 items.
[3] On a separate record, set up a similar situation, but use BR1 instead.
[4] Enable the digital bookplate search option and do a bookplate search
    for "Smith" with the scope limited to BR1.
[5] Note that both of the records set up in #2 and #3 are included in the results
    set.
[6] Apply the patch and repeat step 5. This time, only the record set up in #3
    should be included.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm