Bugzilla – Attachment 189281 Details for
Bug 38924
Introduce an organization level loan 'Quota' system for Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38924: Add quotas available on circuation screen
Bug-38924-Add-quotas-available-on-circuation-scree.patch (text/plain), 3.11 KB, created by
Jacob O'Mara
on 2025-11-07 12:13:28 UTC
(
hide
)
Description:
Bug 38924: Add quotas available on circuation screen
Filename:
MIME Type:
Creator:
Jacob O'Mara
Created:
2025-11-07 12:13:28 UTC
Size:
3.11 KB
patch
obsolete
>From 34b4a00712413142d77b1c84dd8673c959d16abd Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 10 Feb 2025 10:50:27 +0000 >Subject: [PATCH] Bug 38924: Add quotas available on circuation screen > >--- > circ/circulation.pl | 16 ++++++++++------ > .../prog/en/includes/patron_messages.inc | 14 ++++++++++++++ > 2 files changed, 24 insertions(+), 6 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index a37abf63a96..ed4831fc1c8 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -49,6 +49,7 @@ use Koha::CsvProfiles; > use Koha::Patrons; > use Koha::DateUtils qw( dt_from_string ); > use Koha::Patron::Restriction::Types; >+use Koha::Patron::Quotas; > use Koha::Plugins; > use Koha::Database; > use Koha::BiblioFrameworks; >@@ -184,13 +185,13 @@ my $restoreduedatespec = $query->param('restoreduedatespec') || $duedatespec || > if ( $restoreduedatespec && $restoreduedatespec eq "highholds_empty" ) { > undef $restoreduedatespec; > } >-my $issueconfirmed = $query->param('issueconfirmed'); >-my $cancelreserve = $query->param('cancelreserve'); >-my $cancel_recall = $query->param('cancel_recall'); >+my $issueconfirmed = $query->param('issueconfirmed'); >+my $cancelreserve = $query->param('cancelreserve'); >+my $cancel_recall = $query->param('cancel_recall'); > my $selected_quota_id = $query->param('selected_quota_id'); >-my $recall_id = $query->param('recall_id'); >-my $debt_confirmed = $query->param('debt_confirmed') || 0; # Don't show the debt error dialog twice >-my $charges = $query->param('charges') || q{}; >+my $recall_id = $query->param('recall_id'); >+my $debt_confirmed = $query->param('debt_confirmed') || 0; # Don't show the debt error dialog twice >+my $charges = $query->param('charges') || q{}; > > # Check if stickyduedate is turned off > if (@$barcodes) { >@@ -322,6 +323,9 @@ if ($patron) { > $template->param( limited_category => 1 ); > } > >+ # Add quota details >+ my $quotas = $patron->all_quotas; >+ $template->param( quotas => $quotas ); > } > > # >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 25e05462e93..ee060c89473 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >@@ -179,6 +179,20 @@ > </ul> > [% END # /F ( has_modifications || warndeparture... %] > >+[% IF quotas %] >+ <div id="quota" class="circmessage"> >+ <h4>Quota details</h4> >+ <ul> >+ [% FOREACH quota IN quotas %] >+ <li >+ >[% IF quota.patron_id != issue.borrowernumber %][% INCLUDE 'patron-title.inc' patron = quota.patron no_cardnumber = 1 %] -[% END %][% quota.description | html %] : [% quota.used | html %] / >+ [% quota.allocation | html %]</li >+ > >+ [% END %] >+ </ul> >+ </div> >+[% END %] >+ > [% IF waiting_recalls.count %] > <div id="recallswaiting" class="circmessage"> > [% SET waiting_here = 0 %] >-- >2.39.5
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 38924
:
178582
|
178583
|
178584
|
178585
|
178586
|
178587
|
178588
|
178589
|
178590
|
178591
|
178592
|
178593
|
178594
|
178595
|
178596
|
178597
|
178598
|
178599
|
178600
|
178601
|
178602
|
178603
|
178604
|
178605
|
178606
|
178607
|
178608
|
185631
|
185632
|
185633
|
185634
|
185635
|
185636
|
185637
|
185638
|
185639
|
185640
|
185641
|
185642
|
185643
|
185644
|
185645
|
185646
|
185647
|
185648
|
185649
|
185650
|
185651
|
185652
|
185653
|
185654
|
185655
|
185656
|
185657
|
185675
|
185676
|
185677
|
185678
|
185679
|
185680
|
185681
|
185682
|
185683
|
185684
|
185685
|
185686
|
185687
|
185688
|
185689
|
185690
|
185691
|
185692
|
185693
|
185694
|
185695
|
185696
|
185697
|
185698
|
185699
|
185700
|
185701
|
185702
|
189266
|
189267
|
189268
|
189269
|
189270
|
189271
|
189272
|
189273
|
189274
|
189275
|
189276
|
189277
|
189278
|
189279
|
189280
| 189281 |
189282
|
189283
|
189284
|
189285
|
189286
|
189287
|
189288
|
189289
|
189290
|
189291
|
189292