Bugzilla – Attachment 144765 Details for
Bug 32173
Add count of total titles in list to staff interface
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32173: Add list count to shelves.tt
Bug-32173-Add-list-count-to-shelvestt.patch (text/plain), 1.54 KB, created by
Fridolin Somers
on 2022-12-21 07:45:56 UTC
(
hide
)
Description:
Bug 32173: Add list count to shelves.tt
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2022-12-21 07:45:56 UTC
Size:
1.54 KB
patch
obsolete
>From 7b46f515a8fd5d854a33d32fdce36f2304fff343 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >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 <barbara.johnson@swbell.net> >Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> >--- > .../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' %] > <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" /> >-- >2.39.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32173
:
143729
|
143731
| 144765