Bugzilla – Attachment 133308 Details for
Bug 30508
Do not display OPAC message about block from holds when OPACHoldRequests is disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30508: Do not display OPAC message about block from holds when OPACHoldRequests is disabled
Bug-30508-Do-not-display-OPAC-message-about-block-.patch (text/plain), 1.83 KB, created by
Owen Leonard
on 2022-04-14 12:47:11 UTC
(
hide
)
Description:
Bug 30508: Do not display OPAC message about block from holds when OPACHoldRequests is disabled
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-04-14 12:47:11 UTC
Size:
1.83 KB
patch
obsolete
>From c5457f95b2d69e5aa717de4f4cae5e2d2a1190f0 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 14 Apr 2022 12:39:05 +0000 >Subject: [PATCH] Bug 30508: Do not display OPAC message about block from holds > when OPACHoldRequests is disabled > >This patch adds a check for the OPACHoldRequests to determine whether a >message should be shown to patrons whose account is over the >maxoutstanding limit. > >To test, apply the patch and set the "maxoutstanding" system preference >to a low value. Set OPACHoldRequests to "Allow." > >- Log in to the OPAC as a patron who has outstanding fines or charges > which exceed the maxoutstanding value you set. >- You should see a message on the "Your summary" page, "Holds are > blocked because your fine balance is over the limit." >- Set OPACHoldRequests to "Don't allow" and refresh the "Your summary" > page in the OPAC. The message should disappear. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >index 45f1432659..4b319bd13f 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -71,7 +71,7 @@ > </div> > [% END %] > >- [% IF ( borrower.blockedonfines ) %] >+ [% IF ( borrower.blockedonfines && Koha.Preference('OPACHoldRequests') ) %] > <div class="alert alert-warning" id="blockedonfines"> > <strong>Please note:</strong><span> Your account has outstanding fees & charges of [% amountoutstanding | $Price %]. Holds are blocked because your fine balance is over the limit.</span> > </div> >-- >2.20.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 30508
:
133308
|
133721
|
133722
|
133740