From e5f70d34ca41ef773e78b169791c995feab98c3d 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" --- .../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 4496f8f7c46..605a074f5e2 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