]> git.koha-community.org Git - koha.git/commit
Bug 23719: [19.05.x] Allow searching specific fields for matching authorities in ES
authorNick <nick@bywatersolutions.com>
Wed, 2 Oct 2019 11:17:13 +0000 (11:17 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 4 Mar 2020 22:06:30 +0000 (22:06 +0000)
commit444a9b435d5ac571ff4147382594369f20bee479
tree42ae9621f3d95b396cc57c0cf2247c2545b80486
parent4b6a201074135f6c964f408bdef1c4a6a1d7c685
Bug 23719: [19.05.x] Allow searching specific fields for matching authorities in ES

To test:
1 - Export your authorities via Tools->Export data
2 - Define a record matching rule in Admin->Record matchign rules
    Use index: LC-card-number
    field: 010$a
3 - Stage the exported records for import and use the rule created above for matching
4 - The process does not complete
5 - Check intranet error logs - exception on unknown marclist
6 - Apply patch
7 - Repeat
8 - Success!
9 - prove -v t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Bug 23719: (follow-up) Add warn when passed invalid search field in marclist

Note: I also remove warnings for undefined operation in this patch, is a trivial fix

To test:
prove -v t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t