Bugzilla – Attachment 138381 Details for
Bug 30964
Add information about overdues and restrictions on the curbside pickup list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30964: Add 'restricted' and 'has overdues' on curbside pickup
Bug-30964-Add-restricted-and-has-overdues-on-curbs.patch (text/plain), 9.52 KB, created by
Katrin Fischer
on 2022-07-30 13:42:18 UTC
(
hide
)
Description:
Bug 30964: Add 'restricted' and 'has overdues' on curbside pickup
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-07-30 13:42:18 UTC
Size:
9.52 KB
patch
obsolete
>From 8a31265888785b1f6c615cd50daf06b1bfa7c176 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 27 Jun 2022 15:20:03 +0200 >Subject: [PATCH] Bug 30964: Add 'restricted' and 'has overdues' on curbside > pickup > >This patch adds more information about the patron's account on the >curbside pickup list view. >"Patron's account is restricted" if the patron is restricted >"Patron has items overdue" if the patron has overdues > >Sponsored-by: Association KohaLa - https://koha-fr.org/ > >Signed-off-by: Koha Team University Lyon 3 <koha@univ-lyon3.fr> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/circ/curbside_pickups.tt | 63 +++++++++---------- > 1 file changed, 31 insertions(+), 32 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt >index cc7ba2df2c..97a208d1a2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/curbside_pickups.tt >@@ -52,6 +52,30 @@ > </ol> > </nav> > >+ >+[% BLOCK waiting_holds %] >+ [% SET waiting_holds = cp.patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] >+ [% FOREACH h IN waiting_holds %] >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% h.biblionumber | uri %]">[% h.biblio.title | html %]</a> ([% h.biblio.author | html %], <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% h.itemnumber | html %]&biblionumber=[% h.biblionumber | html %]#item[% h.itemnumber | html %]">[% h.item.barcode | html %]</a>)<br/> >+ [% END %] >+[% END %] >+ >+[% BLOCK patron_info %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% cp.borrowernumber | uri %]">[% cp.patron.firstname | html %] [% cp.patron.surname | html %] ([% cp.patron.cardnumber | html %])</a> >+ [% IF cp.notes %] >+ <br/> >+ <span>Notes: </span>[% cp.notes | html %] >+ [% END %] >+ [% IF cp.patron.debarred %] >+ <br/> >+ <span>Patron's account is restricted</span> >+ [% END %] >+ [% IF cp.patron.has_overdues %] >+ <br /> >+ <span>Patron has items overdue</span> >+ [% END %] >+[% END %] >+ > <div class="main container-fluid"> > <div class="row"> > <div class="col-sm-12"> >@@ -169,17 +193,10 @@ > <tr class="[% class | html %]"> > <td>[% cp.scheduled_pickup_datetime | $KohaDates with_hours = 1 %]</td> > <td> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% cp.borrowernumber | uri %]">[% cp.patron.firstname | html %] [% cp.patron.surname | html %] ([% cp.patron.cardnumber | html %])</a> >- [% IF cp.notes %] >- <br/> >- Notes: [% cp.notes | html %] >- [% END %] >+ [% PROCESS patron_info %] > </td> > <td> >- [% SET waiting_holds = cp.patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] >- [% FOREACH h IN waiting_holds %] >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% h.biblionumber | uri %]">[% h.biblio.title | html %]</a> ([% h.biblio.author | html %], <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% h.itemnumber | html %]&biblionumber=[% h.biblionumber | html %]#item[% h.itemnumber | html %]">[% h.item.barcode | html %]</a>)<br/> >- [% END %] >+ [% PROCESS waiting_holds %] > </td> > <td> > <form method="post" class="form"> >@@ -239,17 +256,10 @@ > <tr class="[% class | html %]"> > <td>[% cp.scheduled_pickup_datetime | $KohaDates with_hours = 1 %]</td> > <td> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% cp.borrowernumber | uri %]">[% cp.patron.firstname | html %] [% cp.patron.surname | html %] ([% cp.patron.cardnumber | html %])</a> >- [% IF cp.notes %] >- <br/> >- Notes: [% cp.notes | html %] >- [% END %] >+ [% PROCESS patron_info %] > </td> > <td> >- [% SET waiting_holds = cp.patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] >- [% FOREACH h IN waiting_holds %] >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% h.biblionumber | uri %]">[% h.biblio.title | html %]</a> ([% h.biblio.author | html %], <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% h.itemnumber | html %]&biblionumber=[% h.biblionumber | html %]#item[% h.itemnumber | html %]">[% h.item.barcode | html %]</a>)<br/> >- [% END %] >+ [% PROCESS waiting_holds %] > </td> > <td> > [% cp.staged_by_staff.firstname | html %] [% cp.staged_by_staff.surname | html %] >@@ -321,17 +331,10 @@ > <tr class="[% class | html %]"> > <td>[% cp.scheduled_pickup_datetime | $KohaDates with_hours = 1 %]</td> > <td> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% cp.borrowernumber | uri %]">[% cp.patron.firstname | html %] [% cp.patron.surname | html %] ([% cp.patron.cardnumber | html %])</a> >- [% IF cp.notes %] >- <br/> >- Notes: [% cp.notes | html %] >- [% END %] >+ [% PROCESS patron_info %] > </td> > <td> >- [% SET waiting_holds = cp.patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] >- [% FOREACH h IN waiting_holds %] >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% h.biblionumber | uri %]">[% h.biblio.title | html %]</a> ([% h.biblio.author | html %], <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% h.itemnumber | html %]&biblionumber=[% h.biblionumber | html %]#item[% h.itemnumber | html %]">[% h.item.barcode | html %]</a>)<br/> >- [% END %] >+ [% PROCESS waiting_holds %] > </td> > <td> > [% cp.staged_by_staff.firstname | html %] [% cp.staged_by_staff.surname | html %] >@@ -401,11 +404,7 @@ > <tr class="[% class | html %]"> > <td>[% cp.delivered_datetime | $KohaDates with_hours = 1 %]</td> > <td> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% cp.borrowernumber | uri %]">[% cp.patron.firstname | html %] [% cp.patron.surname | html %] ([% cp.patron.cardnumber | html %])</a> >- [% IF cp.notes %] >- <br/> >- Notes: [% cp.notes | html %] >- [% END %] >+ [% PROCESS patron_info %] > </td> > <td> > [% FOREACH c IN cp.checkouts %] >-- >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 30964
:
136582
|
137096
|
137308
| 138381 |
138382