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:
parent
509e828fc7
commit
2790faf62e
1 changed files with 2 additions and 0 deletions
|
@ -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" />
|
||||
|
|
Loading…
Reference in a new issue