Bugzilla – Attachment 34139 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]
Z39.50 Clear Search Fields Patch
koha_z3950search.patch (text/plain), 3.94 KB, created by
Tom Misilo
on 2014-12-05 13:53:13 UTC
(
hide
)
Description:
Z39.50 Clear Search Fields Patch
Filename:
MIME Type:
Creator:
Tom Misilo
Created:
2014-12-05 13:53:13 UTC
Size:
3.94 KB
patch
obsolete
>From 92c04e7ebadc2ee7134a6c8a9c3927b559f67b11 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] Added Clearing Capability to the Z39.50 Search fields > >--- > 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 d646d52..1293bc3 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 26724a1..01dd0e2 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 1387cef..0e834e9 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"> >
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