adding ability to make the search to return biblios with no items by using a hidden...
authorbob_lyon <bob_lyon>
Tue, 5 Sep 2006 21:30:58 +0000 (21:30 +0000)
committerbob_lyon <bob_lyon>
Tue, 5 Sep 2006 21:30:58 +0000 (21:30 +0000)
- if this functionality is not needed for ones koha then deleting the 'acq_search' line will let the search behave as before

koha-tmpl/intranet-tmpl/default/en/acqui/basket.tmpl
koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl

index 66e2add..1d68e65 100644 (file)
                        <form action="/cgi-bin/koha/acqui/newbasket2.pl" method="post">
                                <input type="hidden" name="booksellerid" value="<!-- TMPL_VAR NAME="booksellerid" -->">
                                <input type="hidden" name="basketno" value="<!-- TMPL_VAR NAME="basketno" -->">
+                               <input type="hidden" name="acq_search" value="1">
                                <p>from an existing biblio: </b><input type="text"  size="25"   name="search"><input type="submit" class="button acquisition" value="Search"></p>
                                <p>or
                                        <a href="/cgi-bin/koha/acqui/suggestion-select.pl?booksellerid=<!-- TMPL_VAR NAME="booksellerid" -->&amp;basketno=<!-- TMPL_VAR NAME="basketno" -->" class="button acquisition">
index 9a1aff2..fba8bde 100755 (executable)
@@ -9,6 +9,7 @@
        <form action="/cgi-bin/koha/acqui/newbasket2.pl">
        <input type="hidden" name="booksellerid" value=<!-- TMPL_VAR NAME="booksellerid" -->>
        <input type="hidden" name="basketno" value=<!-- TMPL_VAR NAME="basketno" -->>
+       <input type="hidden" name="acq_search" value="1">
        <b>New Search: </b><input="text"  size="25"   name="search">
        <input type="submit" value="Search" class="button acquisition">
        </form>