Bugzilla – Attachment 152356 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.50 KB, created by
Sam Lau
on 2023-06-14 18:18:03 UTC
(
hide
)
Description:
Bug 34013: Recalls awaiting pickup doesn't show count on each tab
Filename:
MIME Type:
Creator:
Sam Lau
Created:
2023-06-14 18:18:03 UTC
Size:
2.50 KB
patch
obsolete
>From 427f8ec9ed48b69df04f0e39faca44e3df50b457 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. > >Signed-off-by: Sam Lau <samalau@gmail.com> >--- > .../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