From be74bc897ae89be5963f8c70b58bbadbca26732f Mon Sep 17 00:00:00 2001 From: Thomas Misilo Date: Tue, 2 Dec 2014 20:15:07 -0500 Subject: [PATCH] Bug 7741: Added Clearing Capability to the Z39.50 Search fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tested in: /koha/cataloguing/z3950_auth_search.pl (Home:Authorities:New from Z39.50) /koha/cataloguing/z3950_search.pl (Home:Cataloging:New from Z39.50/SRU) /koha/acqui/z3950_search.pl (Home:Acquisitions:[Bookshop]:[Basket]:Order from external source) All three forms can now be cleared. Signed-off-by: Marc VĂ©ron Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt | 5 ++++- .../intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt | 5 ++++- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt index ff95b4a..92b1f86 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt @@ -32,6 +32,9 @@ $(".linktools").hide(); $("tr").removeClass("selected"); }); + $("#resetZ3950Search").click(function() { + $("form[name='f']").find("input[type=text]").val(""); + }); /* Inline edit/delete links */ $("td").click(function(event){ @@ -86,7 +89,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
[% IF ( opsearch ) %] -

Order from external source

+

Order from external source Clear Search Form

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt index c3d9dbf..1878578 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt @@ -58,6 +58,9 @@ $(document).ready(function(){ } else return true; }); + $("#resetZ3950Search").click(function() { + $("form[name='f']").find("input[type=text]").val(""); + }); }); [% IF ( total_pages ) %] @@ -100,7 +103,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : [% END %]
[% IF ( opsearch ) %] -

Z39.50 Authority search points

+

Z39.50 Authority search pointsClear Search Form

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt index ab3ef2e..cc16e9a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt @@ -59,6 +59,9 @@ $(document).ready(function(){ } else return true; }); + $("#resetZ3950Search").click(function() { + $("form[name='f']").find("input[type=text]").val(""); + }); }); [% IF ( total_pages ) %] @@ -101,7 +104,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : [% END %]
[% IF ( opsearch ) %] -

Z39.50/SRU search

+

Z39.50/SRU search Clear Search Form

-- 2.1.0