From 7b46f515a8fd5d854a33d32fdce36f2304fff343 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 10 Nov 2022 21:14:09 +0000 Subject: [PATCH] Bug 32173: Add list count to shelves.tt To test: 1. Build a list and look at it in the staff client. 2. No indication of how many items are in the list. 3. Apply patch and look again 4. You should see "This list contains x titles" Signed-off-by: Barbara Johnson Signed-off-by: Fridolin Somers --- .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 4496f8f7c4..605a074f5e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -245,6 +245,8 @@ [% IF op == 'view' %]

Contents of [% shelf.shelfname | html %]

[% IF itemsloop %] + [% SET contents = shelf.get_contents %] + [% IF ( contents.count ) %]

This list contains [% contents.count | html %] titles

[% END %]
[% pagination_bar | $raw %]
-- 2.39.0