|
Description
Fridolin Somers
2024-01-25 08:46:22 UTC
Forget about submitting the from it creates strange behavior Created attachment 161376 [details] [review] 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 Created attachment 161447 [details] [review] 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@clamsnet.org> Created attachment 161448 [details] [review] 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@clamsnet.org> Created attachment 165087 [details] [review] 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@clamsnet.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Pushed for 24.05! Well done everyone, thank you! Pushed to 23.11.x for 23.11.06 Enhancement will not be backported to 23.05.x |