Bugzilla – Attachment 137870 Details for
Bug 30905
Show waiting recalls in patron account on checkouts tab
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30905: (follow-up) Get logged in branch once
Bug-30905-follow-up-Get-logged-in-branch-once.patch (text/plain), 4.49 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-07-19 12:51:57 UTC
(
hide
)
Description:
Bug 30905: (follow-up) Get logged in branch once
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-07-19 12:51:57 UTC
Size:
4.49 KB
patch
obsolete
>From fc919fc796df42c29e73cd527d3c425377fcc27a Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 19 Jul 2022 09:51:16 -0300 >Subject: [PATCH] Bug 30905: (follow-up) Get logged in branch once > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../prog/en/includes/patron_messages.inc | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >index ecd297c744..6f6f6704c9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >@@ -1,5 +1,6 @@ > [% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %] > [% SET return_claims = patron.return_claims %] >+[% SET logged_in_branchcode = Branches.GetLoggedInBranchcode() %] > > [% IF ( has_modifications || warndeparture || returnbeforeexpiry || expired || patron.gonenoaddress || patron.lost || userdebarred || odues || ( return_claims.count > ClaimReturnedWarningThreshold ) || age_limitations || charges || charges_guarantors_guarantees || charges_guarantees || credits ) %] > <h3>Attention</h3> >@@ -134,7 +135,7 @@ > [% SET waiting_here = 0 %] > [% SET waiting_elsewhere = 0 %] > [% FOREACH w IN waiting_recalls %] >- [% IF ( w.pickup_library_id == Branches.GetLoggedInBranchcode() ) %] >+ [% IF ( w.pickup_library_id == logged_in_branchcode ) %] > [% waiting_here = waiting_here + 1 %] > [% ELSE %] > [% waiting_elsewhere = waiting_elsewhere + 1 %] >@@ -145,7 +146,7 @@ > <h4>Recalls waiting here ([% waiting_here | html %])</h4> > <ul> > [% FOREACH w IN waiting_recalls %] >- [% IF ( w.pickup_library_id == Branches.GetLoggedInBranchcode() ) %] >+ [% IF ( w.pickup_library_id == logged_in_branchcode ) %] > <li> > <a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a> > ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), >@@ -167,7 +168,7 @@ > <h4>Recalls waiting at other libraries ([% waiting_elsewhere | html %])</h4> > <ul> > [% FOREACH w IN waiting_recalls %] >- [% IF ( w.pickup_library_id != Branches.GetLoggedInBranchcode() ) %] >+ [% IF ( w.pickup_library_id != logged_in_branchcode ) %] > <li> > <a href="/cgi-bin/koha/recalls/request.pl?biblionumber=[% w.biblio_id | uri %]">[% w.biblio.title | html %]</a> > ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), >@@ -192,7 +193,7 @@ > [% SET waiting_here = 0 %] > [% SET waiting_elsewhere = 0 %] > [% FOREACH w IN WaitingHolds %] >- [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %] >+ [% IF ( w.branch.branchcode == logged_in_branchcode ) %] > [% waiting_here = waiting_here + 1 %] > [% ELSE %] > [% waiting_elsewhere = waiting_elsewhere + 1 %] >@@ -203,7 +204,7 @@ > <h4>Holds waiting here ([% waiting_here | html %])</h4> > <ul> > [% FOREACH w IN WaitingHolds %] >- [% IF ( w.branch.branchcode == Branches.GetLoggedInBranchcode() ) %] >+ [% IF ( w.branch.branchcode == logged_in_branchcode ) %] > <li> > <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> > ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), >@@ -225,7 +226,7 @@ > <h4>Holds waiting at other libraries ([% waiting_elsewhere | html %])</h4> > <ul> > [% FOREACH w IN WaitingHolds %] >- [% IF ( w.branch.branchcode != Branches.GetLoggedInBranchcode() ) %] >+ [% IF ( w.branch.branchcode != logged_in_branchcode ) %] > <li> > <a href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% w.biblio.biblionumber | uri %]">[% w.biblio.title | html %]</a> > ([% ItemTypes.GetDescription( w.item.effective_itemtype ) | html %]), >-- >2.37.1
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 30905
:
135740
|
135752
|
136549
| 137870