[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 17:53:49 CET 2024


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

ByWater Sandboxes <bws.sandboxes at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #161447|0                           |1
        is obsolete|                            |

--- Comment #4 from ByWater Sandboxes <bws.sandboxes at gmail.com> ---
Created attachment 161448
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161448&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

Signed-off-by: Michelle Spinney <mspinney at clamsnet.org>

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


More information about the Koha-bugs mailing list