Bugzilla – Attachment 152354 Details for
Bug 34013
Recalls awaiting pickup doesn't show count on each tab
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34013: Recalls awaiting pickup doesn't show count on each tab
Bug-34013-Recalls-awaiting-pickup-doesnt-show-coun.patch (text/plain), 2.46 KB, created by
Owen Leonard
on 2023-06-14 17:29:22 UTC
(
hide
)
Description:
Bug 34013: Recalls awaiting pickup doesn't show count on each tab
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2023-06-14 17:29:22 UTC
Size:
2.46 KB
patch
obsolete
>From deb2b79a3bc3087a56f5f2ed0592b11b0706cf59 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Wed, 14 Jun 2023 17:23:40 +0000 >Subject: [PATCH] Bug 34013: Recalls awaiting pickup doesn't show count on each > tab > >This patch modifies recalls_waiting.pl so that it defines template >variables for 'recalls waiting' and 'recalls waiting over x days' >counts in the same way that waitingreserves.pl handles it. > >To test you must have UseRecalls enabled, and some recalls data that >will allow you to see content under each tab. > >Go to Circulation -> Recalls awaiting pickup and confirm that both tabs >show the correct count. >--- > .../intranet-tmpl/prog/en/modules/recalls/recalls_waiting.tt | 4 ++-- > recalls/recalls_waiting.pl | 2 ++ > 2 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_waiting.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_waiting.tt >index 508f9005c1..105ea93e0e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_waiting.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/recalls/recalls_waiting.tt >@@ -37,8 +37,8 @@ > > [% WRAPPER tabs id= "results" %] > [% WRAPPER tabs_nav %] >- [% WRAPPER tab_item tabname= "recallswaiting" bt_active= 1 %] <span>Recalls waiting: [% recalls.count | html %]</span> [% END %] >- [% WRAPPER tab_item tabname= "recallsover" %] <span>Recalls waiting over [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days: [% over.count | html %]</span> [% END %] >+ [% WRAPPER tab_item tabname= "recallswaiting" bt_active= 1 %] <span>Recalls waiting: [% recallscount | html %]</span> [% END %] >+ [% WRAPPER tab_item tabname= "recallsover" %] <span>Recalls waiting over [% Koha.Preference('RecallsMaxPickUpDelay') | html %] days: [% overcount | html %]</span> [% END %] > [% END # /WRAPPER tabs_nav %] > > [% WRAPPER tab_panels %] >diff --git a/recalls/recalls_waiting.pl b/recalls/recalls_waiting.pl >index 4ded9584e8..a485e3a8c2 100755 >--- a/recalls/recalls_waiting.pl >+++ b/recalls/recalls_waiting.pl >@@ -64,7 +64,9 @@ if ( $op eq 'list' ) { > } > $template->param( > recalls => \@recalls, >+ recallscount => scalar @recalls, > over => \@over, >+ overcount => scalar @over, > ); > } > >-- >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 34013
:
152354
|
152356
|
152597