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  <barbara.johnson@swbell.net>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Lucas Gass 2022-11-10 21:14:09 +00:00 committed by Tomas Cohen Arazi
parent 509e828fc7
commit 2790faf62e
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -245,6 +245,8 @@
[% IF op == 'view' %]
<h1>Contents of <em>[% shelf.shelfname | html %]</em></h1>
[% IF itemsloop %]
[% SET contents = shelf.get_contents %]
[% IF ( contents.count ) %]<p>This list contains [% contents.count | html %] titles</p>[% END %]
<div class="pages">[% pagination_bar | $raw %]</div>
<form action="/cgi-bin/koha/virtualshelves/shelves.pl" id="listform" method="post">
<input type="hidden" name="op" value="remove_biblios" />