Bugzilla – Attachment 143729 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.43 KB, created by
Lucas Gass (lukeg)
on 2022-11-10 21:18:57 UTC
(
hide
)
Description:
Bug 32173: Add list count to shelves.tt
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-11-10 21:18:57 UTC
Size:
1.43 KB
patch
obsolete
>From e5f70d34ca41ef773e78b169791c995feab98c3d 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" >--- > .../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' %] > <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.30.2
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