From 82f62dc9c6d0a608c3667e67b935c9f1e8522042 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=utf8 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 Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/acqui/z3950_search.tt | 5 ++++- .../prog/en/modules/cataloguing/z3950_auth_search.tt | 5 ++++- .../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 ff95b4a0c0..92b1f866b6 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 c3d9dbf1bd..187857847c 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 ab3ef2e663..cc16e9a24f 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.39.5