Bugzilla – Attachment 173009 Details for
Bug 38056
Search term after deleting an authority shouldn't be URI encoded
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38056: Search term after deleting an authority shouldn't be URI encoded
Bug-38056-Search-term-after-deleting-an-authority-.patch (text/plain), 2.78 KB, created by
David Nind
on 2024-10-19 18:50:49 UTC
(
hide
)
Description:
Bug 38056: Search term after deleting an authority shouldn't be URI encoded
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-10-19 18:50:49 UTC
Size:
2.78 KB
patch
obsolete
>From 93399aa2f2618a55a3b9f6a63c465786e4ee56e5 Mon Sep 17 00:00:00 2001 >From: Phil Ringnalda <phil@chetcolibrary.org> >Date: Tue, 1 Oct 2024 19:01:39 -0700 >Subject: [PATCH] Bug 38056: Search term after deleting an authority shouldn't > be URI encoded > >Now that deleting an authority record uses a form, rather than building up a >URL in JavaScript, using the filter | uri on the value (confusingly named >value) which passes along the search terms to reload after deleting results >in a bad search. It should instead use the filter | html. > >Test plan: > 1. Without the patch, top menu - Authorities > 2. The default search, Main heading ($a only), Authority type Default, > Operator contains, Order by Heading A-Z will work fine. You need to a > search which will return more than one of the same thing (not hard in > ktd) - for MARC21 search for a professional > 3. You should get five results. For one of them, Actions - Delete - Confirm > that you meant to click it > 4. You now have a%20professional in the search box, and search results for > whatever ElasticSearch thinks a% means. It's certainly not professional - > you can change that term to any random string and get the same results > 5. Apply patch, top menu - Authorities > 6. Repeat steps 2 and 3, but this time after deleting another result, > you will get a professional without the %20 in the search box, and > your results will be the remaining Addison-Wesley professional computing > series authorities > >Sponsored-by: Chetco Community Public Library >Signed-off-by: David Nind <david@davidnind.com> >--- > .../prog/en/modules/authorities/searchresultlist.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt >index ec06c0d065..2461371da0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt >@@ -121,7 +121,7 @@ > <input type="hidden" name="excluding" value="[% excluding | html %]" /> > <input type="hidden" name="operator" value="[% operator | html %]" /> > <input type="hidden" name="orderby" value="[% orderby | html %]" /> >- <input type="hidden" name="value" value="[% value | uri %]" /> >+ <input type="hidden" name="value" value="[% value | html %]" /> > <input type="hidden" name="startfrom" value="[% startfrom | html %]" /> > <input type="hidden" name="resultsperpage" value="[% resultsperpage | html %]" /> > <button type="submit" class="dropdown-item"><i class="fa fa-trash"></i> Delete</button> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 38056
:
172292
|
173009
|
173017