Entering a search term for 'title' or 'vendor' at the top search
form in acq (tab 'Orders search') did redirect to the advanced
search form, but didn't start the search.
After applying the patch the search will bring back results immediately
or redirect to the form, when there are no results.
To test:
- Check all searches still work as expected by searching for title,
vendor, order name and invoice number
- Check advanced search still has the search terms prepopulated
- Check searches with and without results are ok
---
.../prog/en/includes/acquisitions-search.inc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-search.inc
b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-search.inc
index 32c76a2..8ccfe84 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-search.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-search.inc
@@ -11,7 +11,9 @@
<p class="tip">Search orders:</p>
<form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
- <label for="title">Title: </label><input type="text" id="title"
name="title" size="15" value="[% title %]" /> <label
for="searchsupplier">Vendor:</label> <input type="text" id="searchsupplier"
name="name" size="15" value="[% name|html %]" />
+ <label for="title">Title: </label> <input type="text" id="title"
name="title" size="15" value="[% title %]" />
+ <label for="searchsupplier">Vendor:</label> <input type="text"
id="searchsupplier" name="name" size="15" value="[% name|html %]" />
+ <input type="hidden" id="do_search" name="do_search" value="do" />
<span class="filteraction" id="filteraction_off" style="display:none">
<a href="#"
onclick="$('#filters').toggle();$('.filteraction').hide();">[-]</a></span>
<span class="filteraction" id="filteraction_on"> <a href="#"
onclick="$('#filters').show();$('.filteraction').toggle();">[+]</a></span>
<input value="Submit" class="submit" type="submit" /> <a
href="/cgi-bin/koha/acqui/histsearch.pl">Advanced search</a>
--
1.7.5.4
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/