Bugzilla – Attachment 150696 Details for
Bug 31132
Add button to clear the cataloguing authority plugin form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31132: Add button to clear the cataloguing auth finder form
Bug-31132-Add-button-to-clear-the-cataloguing-auth.patch (text/plain), 2.44 KB, created by
Nicolas Giraud
on 2023-05-04 20:47:38 UTC
(
hide
)
Description:
Bug 31132: Add button to clear the cataloguing auth finder form
Filename:
MIME Type:
Creator:
Nicolas Giraud
Created:
2023-05-04 20:47:38 UTC
Size:
2.44 KB
patch
obsolete
>From 8f126e7ad3f85c7dea5b4046e55e41a18e1b2378 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 12 Jul 2022 11:04:03 +1200 >Subject: [PATCH] Bug 31132: Add button to clear the cataloguing auth finder > form > >This enhancement adds a 'Clear form' link to empty all of the input >fields on the authority finder plugin form when cataloguing >bibliographic records. > >To test: >1) Search for a bibliographic record in the staff interface >2) Edit a record >3) Go to tabs 1, 6 or 7 to find a tag linked to the authority finder >plugin >4) Launch the authority finder plugin by clicking the Tag editor icon at >the end of the field >5) If the fields are empty, add some text in the text fields >6) Click the 'Clear form' link at the bottom of the form >7) Confirm the text is cleared from the input fields and the form is >empty > >Sponsored-by: Education Services Australia SCIS > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: nicolas <nicolas@inlibro.com> >--- > .../intranet-tmpl/prog/en/includes/auth-finder-search.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js | 3 +++ > 2 files changed, 4 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >index 4f742e2b92..36415537d5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc >@@ -179,6 +179,6 @@ > </ol> > </fieldset> > [% END %] >- <fieldset class="action"> <input type="submit" value="Search" class="submit" id="search" /> <a id="cancel" class="cancel close" href="#">Cancel</a> >+ <fieldset class="action"> <input type="submit" value="Search" class="submit" id="search" /> <a id="clear-form" href="#" class="btn btn-link">Clear form</a> <a id="cancel" class="cancel close" href="#">Cancel</a> > </fieldset> > </form> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js b/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js >index 2f47c29f86..9144b979bf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/auth-finder-search.js >@@ -93,6 +93,9 @@ $(document).ready(function(){ > }, > minLength: 3, > }); >+ $("#clear-form").click(function(){ >+ $(":input[type='text']").val(''); >+ }); > }); > > function finderjump(page, full){ >-- >2.34.1
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 31132
:
137595
|
137596
|
137601
|
138069
|
150696
|
150697
|
150814
|
150815