[Koha-patches] [PATCH] [SIGNED-OFF] Bug 6380 - Z39.50 Cataloging Search needs a way to try search again, even if results are found

Marcel de Rooy M.de.Rooy at rijksmuseum.nl
Mon May 23 11:52:04 CEST 2011


From: Liz Rea <lrea at nekls.org>

This patch adds a nice button to the results page to "Try Another Search" even if results are found. It also makes the "no results found" try again link a proper button.

To test:
Do a search for something that will give results -- there should now be a button to "Try Another Search"

Do a search for something that returns no results -- The link for "Try Another Search" should now be a proper button.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
[EDIT: Form slightly changed in order to remember biblio and framework. Link is no official html method value btw.]
---
 .../prog/en/modules/cataloguing/z3950_search.tt    |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

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 1ee7823..d73667d 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
@@ -160,6 +160,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
         [% END %]
     [% END %]</tbody>
 </table>
+<p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_search.pl"><input type="hidden" name="biblionumber" value="[% biblionumber %]"/><input type="hidden" name="frameworkcode" value="[% frameworkcode %]"/><input type="submit" value="Try Another Search"/></form></p>
     [% ELSE %]
         [% IF ( emptyserverlist ) %]
             You didn't select any Z39.50 target.
@@ -168,7 +169,8 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
                 Connection failed to [% errcon.server %]
             [% END %]
         [% END %]
-	<p>Nothing found. <a href="/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=[% biblionumber %]">Try another search</a>.</p>
+	<p>Nothing found.</p>
+	<p><form method="get" action="/cgi-bin/koha/cataloguing/z3950_search.pl"><input type="hidden" name="biblionumber" value="[% biblionumber %]"/><input type="hidden" name="frameworkcode" value="[% frameworkcode %]"/><input type="submit" value="Try Another Search"/></form></p>
     [% END %]
 
 
-- 
1.6.0.6



More information about the Koha-patches mailing list