Bug 30508: Do not display OPAC message about block from holds when OPACHoldRequests...
authorOwen Leonard <oleonard@myacpl.org>
Thu, 14 Apr 2022 12:39:05 +0000 (12:39 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 8 Jun 2022 14:59:08 +0000 (11:59 -0300)
commit3f47027a574f936f1f95d0bc1860e47524430e95
tree482e511bf97d5fb3f0ad03861544697ff70496f0
parentd491b15c55804500a96ae7065d459d6b84126069
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.

Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt