Bug 6380 - Z39.50 Cataloging Search needs a way to try search again, even if results...
authorLiz Rea <lrea@nekls.org>
Fri, 20 May 2011 15:29:00 +0000 (10:29 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 2 Jun 2011 23:11:34 +0000 (11:11 +1200)
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@rijksmuseum.nl>
[EDIT: Form slightly changed in order to remember biblio and framework. Link is no official html method value btw.]

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tt

index 4a0e323..5adc074 100644 (file)
@@ -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 %]