From 270e88ff9def02b92cbaa4400d1d0734b4db42a7 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 --- .../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 7ec5e03807..e567cb9666 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.30.2