488f4be865
When ordering from an existing record the 'no budgets and funds defined' error message was shown below the result list. To test: A) No budgets defined for this user and library Basket summary page shows a warning instead of the link for creation of orders. B) Budgets and funds are properly defined for this user and library Basket summary page shows links for order creation. Before patch: A search for an existing record had the alert at the bottom of the search result list. After patch: The links for creation of orders are shown instead. Signed-off-by: Liz Rea <lrea@nekls.org> Verified A and B. Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
18 lines
1.3 KiB
HTML
18 lines
1.3 KiB
HTML
<fieldset id="acqui_basket_add">
|
|
<legend>Add Order To Basket</legend>
|
|
[% IF has_budgets %]
|
|
<form action="/cgi-bin/koha/acqui/neworderbiblio.pl" method="post">
|
|
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
|
|
<input type="hidden" name="basketno" value="[% basketno %]" />
|
|
<ul><li><label for="q">From an existing record: </label><input id="q" type="text" size="25" name="q" />
|
|
<input type="submit" class="submit" value="Search" /></li>
|
|
<li><a href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">From a Suggestion</a></li>
|
|
<li><a href="/cgi-bin/koha/acqui/neworderempty.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">From a new (empty) record</a></li>
|
|
<li><a href="/cgi-bin/koha/acqui/z3950_search.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]">From an external source</a></li>
|
|
<li><a href="/cgi-bin/koha/acqui/addorderiso2709.pl?booksellerid=[% booksellerid %]&basketno=[% basketno %]"> From a staged file</a></li>
|
|
</ul>
|
|
</form>
|
|
[% ELSE %]
|
|
You can't create any orders unless you first <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget and a fund</a>.
|
|
[% END %]
|
|
</fieldset>
|