[Koha-bugs] [Bug 35903] In cataloguing authority plugin using autocomplete must set operator exact

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 25 10:34:54 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35903

--- Comment #2 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 161376
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161376&action=edit
Bug 35903: In cataloguing authority plugin using autocomplete must set operator
exact

When cataloguing and using authority plugin, there is auto-completion on inputs
and default operator is "contains".
When using auto-completion and selecting a result it would be logical to set
operator "exact".

See doc https://api.jqueryui.com/autocomplete/#event-select

This patch also adds auto-completion missing on "Search all headings".

Test plan:
1) Create a new authority Topical Term with heading "Cart"
2) Create a new authority Topical Term with heading "Carthage"
3) Create a new biblio record
4) Use authority plugin on field 650
5) You see current operator are "contains"
6) Enter "Car" in "Search main heading ($a only):"
7) You see auto-completion showing "Cart" and "Carthage"
8) Click on "Cart"
9) You see operator changes to "is exactly"
10) Submit form to see the results
11) Clear form and repeat 6-9 for the three other inputs

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list