Bug 6380 - Z39.50 Cataloging Search needs a way to try search again, even if results are found

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>
This commit is contained in:
Liz Rea 2011-05-20 10:29:00 -05:00 committed by Chris Cormack
parent c779f2b380
commit d816d6fc5b
1 changed files with 3 additions and 1 deletions

View 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 %]