Bugzilla – Attachment 136582 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.43 KB, created by
Jonathan Druart
on 2022-06-27 13:22:21 UTC
(
hide
)
Description:
Bug 30964: Add 'restricted' and 'has overdues' on curbside pickup
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-06-27 13:22:21 UTC
Size:
9.43 KB
patch
obsolete
>From 725b9977690ac712f27b39b2950a621c76454595 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/ >--- > .../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 79c78f0acf7..e25ba46c13a 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 >@@ -51,6 +51,30 @@ > </ol> > </nav> > >+ >+[% BLOCK waiting_holds %] >+ [% SET waiting_holds = cp.patron.holds.search( found => 'W', branchcode => logged_in_user.branchcode ) %] >+ [% 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-md-10 col-md-offset-1 col-lg-10 col-lg-offset-1"> >@@ -160,17 +184,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 => logged_in_user.branchcode ) %] >- [% 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"> >@@ -230,17 +247,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 => logged_in_user.branchcode ) %] >- [% 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 %] >@@ -312,17 +322,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 => logged_in_user.branchcode ) %] >- [% 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 %] >@@ -392,11 +395,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.25.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 30964
:
136582
|
137096
|
137308
|
138381
|
138382