Bugzilla – Attachment 34268 Details for
Bug 7741
Clear search terms in Z3950 search page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7741: Added Clearing Capability to the Z39.50 Search fields
Bug-7741-Added-Clearing-Capability-to-the-Z3950-Se.patch (text/plain), 4.44 KB, created by
Jonathan Druart
on 2014-12-10 08:56:09 UTC
(
hide
)
Description:
Bug 7741: Added Clearing Capability to the Z39.50 Search fields
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-12-10 08:56:09 UTC
Size:
4.44 KB
patch
obsolete
>From f351abb93cdda6dd08b126c74ccb915376cbd40f Mon Sep 17 00:00:00 2001 >From: Thomas Misilo <misilot@users.noreply.github.com> >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 <veron@veron.ch> > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > 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 c755087..2d76d7e 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 : > <div id="doc3" class="yui-t7"> > <div id="bd"> > [% IF ( opsearch ) %] >-<h2>Order from external source</h2> >+<h2>Order from external source <span style="display: inline; font-size: 70%; padding-left: 1em;"><span class="clearsearch"><a id="resetZ3950Search" href="#">Clear Search Form</a></span></span></h2> > <form method="post" action="z3950_search.pl" name="f" class="checkboxed"> > <input type="hidden" name="op" id="op" value="do_search" /> > <div class="yui-g"> >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 5965dcf..5f537c2 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 %] > <div id="bd"> > [% IF ( opsearch ) %] >- <h2>Z39.50 Authority search points</h2> >+ <h2>Z39.50 Authority search points<span style="display: inline; font-size: 70%; padding-left: 1em;"><span class="clearsearch"><a id="resetZ3950Search" href="#">Clear Search Form</a></span></span></h2> > <form method="post" action="z3950_auth_search.pl" name="f" class="checkboxed"> > <input type="hidden" name="op" id="op" value="do_search" /> > <div class="yui-g"> >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 65713b9..983f476 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 %] > <div id="bd"> > [% IF ( opsearch ) %] >-<h2>Z39.50/SRU search</h2> >+<h2>Z39.50/SRU search <span style="display: inline; font-size: 70%; padding-left: 1em;"><span class="clearsearch"><a id="resetZ3950Search" href="#">Clear Search Form</a></span></span></h2> > <form method="post" action="z3950_search.pl" name="f" class="checkboxed"> > <input type="hidden" name="op" id="op" value="do_search" /> > <div class="yui-g"> >-- >2.1.0
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 7741
:
34079
|
34139
|
34141
|
34248
|
34268
|
34269
|
35941
|
35942