From 71279181b2bf864bdee8166181a91adc03d14ad4 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 9 Jan 2020 17:07:59 +0000 Subject: [PATCH] Bug 24390: Add item total to rotating collections Displays the number of items in a rotating collection. TEST PLAN: 1. Set up some rotating collections and add some items to them. 2. No good way to see how many total items are in a given collection. 3. Apply patch 4. Look at collections again and you should see 'Total Items: X' 5. Make sure it is counting the total number of items correctly. Signed-off-by: Jessica Zairo Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- .../prog/en/modules/rotating_collections/addItems.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt index bc11009ddc..d25b4cc2f0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/addItems.tt @@ -94,6 +94,10 @@

Items in [% colTitle | html %]

[% IF ( collectionItemsLoop ) %] + [% FOREACH collectionItemsLoo IN collectionItemsLoop %] + [% totalItems = loop.size %] + [% END %] +

Total Items: [% totalItems | html%]

-- 2.39.5
Title