Bugzilla – Attachment 178604 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: Display quota used at checkout
Bug-38924-Display-quota-used-at-checkout.patch (text/plain), 2.26 KB, created by
Martin Renvoize (ashimema)
on 2025-02-24 16:30:09 UTC
(
hide
)
Description:
Bug 38924: Display quota used at checkout
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-02-24 16:30:09 UTC
Size:
2.26 KB
patch
obsolete
>From ee57d6336c5dc7b81f5ddd5d6f454f12ffb71bb5 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 13 Feb 2025 13:09:49 +0000 >Subject: [PATCH] Bug 38924: Display quota used at checkout > >Use the quota relation added to Koha::Checkout to display an info alert >message that quota allocation has been used by the checkout that just >took place >--- > .../intranet-tmpl/prog/en/modules/circ/circulation.tt | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 30d321b9b3a..d87293f8122 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -117,6 +117,11 @@ > <div class="alert alert-warning">This is the anonymous patron, so circulation is disabled.</div> > [% END %] > >+ [% IF issue && issue.quota %] >+ [% SET quota = issue.quota %] >+ <div class="alert alert-info">Usage recorded against[% IF quota.patron_id != issue.borrowernumber %][% INCLUDE 'patron-title.inc' patron = quota.patron no_cardnumber = 1 %][% END %] [% quota.description | html %] quota.</div> >+ [% END %] >+ > [% IF ( NEEDSCONFIRMATION ) %] > <div id="circ_needsconfirmation" class="alert alert-warning audio-alert-action focus" tabindex="-1"> > [% IF CAN_user_circulate_force_checkout or ADDITIONAL_MATERIALS %] >@@ -135,7 +140,7 @@ > </li> > [% END %] > >- [%IF ( QUOTA_EXCEEDED ) %] >+ [% IF ( QUOTA_EXCEEDED ) %] > <li class="needsconfirm age_restriction"> > Quota Exceeded. Available: [% QUOTA_EXCEEDED.available | html %] / [% QUOTA_EXCEEDED.total | html %]. > [% IF CAN_user_circulate_force_checkout %] >@@ -656,7 +661,7 @@ > <li>Age restriction [% AGE_RESTRICTION | html %].</li> > [% END %] > >- [%IF ( QUOTA_EXCEEDED ) %] >+ [% IF ( QUOTA_EXCEEDED ) %] > <li>Quota Exceeded. Available: [% QUOTA_EXCEEDED.available | html %] / [% QUOTA_EXCEEDED.total | html %].</li> > [% END %] > >-- >2.48.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 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