[Koha-patches] [PATCH] Bug 8820 [3.8.x] Don't show orders table if there are no orders
Owen Leonard
oleonard at myacpl.org
Wed Nov 21 20:47:50 CET 2012
Reworkd for 3.8.x: Patch removes the "basket empty" message in
favor of hiding the orders table altogether when a basket has
no orders.
Other textual changes:
- Correcting capitalization according to coding guidelines
- Replacing the "Order Details" heading with the more
succinct "Orders"
---
.../intranet-tmpl/prog/en/modules/acqui/basket.tt | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
index f6bdcf2..94b0bad 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
@@ -215,8 +215,8 @@
[% UNLESS ( delete_confirm ) %]
<div id="acqui_basket_content" class="yui-g">
- <h2>Order Details</h2>
[% IF ( books_loop ) %]
+ <h2>Orders</h2>
<table id="orders">
<thead>
<tr>
@@ -339,10 +339,6 @@
[% END %]
</tbody>
</table>
- [% ELSE %]
- <table>
- <tr><td>Basket empty</td></tr>
- </table>
[% END %]
[% IF ( listincgst ) %]<small class="highlight">** Vendor's listings already include tax.</small>
[% END %]
@@ -413,8 +409,8 @@
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
<input type="hidden" name="confirm" value="1" />
<input type="hidden" name="basketgroupname" value="[% basketgroupname %]" />
- <input type="submit" class="approve" value="Yes, Close (Y)" accesskey="y" />
- <input type="submit" class="deny" value="No, Don't Close (N)" accesskey="n" onclick="javascript:window.location='/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]';return false;" />
+ <input type="submit" class="approve" value="Yes, close (Y)" accesskey="y" />
+ <input type="submit" class="deny" value="No, don't close (N)" accesskey="n" onclick="javascript:window.location='/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno %]';return false;" />
</form>
</div>
[% END %]
--
1.7.9.5
More information about the Koha-patches
mailing list