From 69e7ec147f9897de4673240555eff868acbd6d08 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 --- .../intranet-tmpl/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.11.0
Title