]> git.koha-community.org Git - koha.git/commit
Bug 7110: Renewal messages no longer displays in OPAC if OpacRenewalAllowed is disabled
authorOwen Leonard <oleonard@myacpl.org>
Tue, 27 Nov 2012 16:16:14 +0000 (11:16 -0500)
committerBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Tue, 16 Jul 2013 11:47:36 +0000 (08:47 -0300)
commit0c09391f197e2c40745c0a52177c554ab5e29504
treed436d151abeea312aad4b18de51202c686046c1f
parentf5ee81028dda33027daf3c921b38bf06218f9dfa
Bug 7110: Renewal messages no longer displays in OPAC if OpacRenewalAllowed is disabled

Prior to this patch, if a patron has fines which exceed the limit set by
OPACFineNoRenewals but OPAC renewals are disallowed by OpacRenewalAllowed,
a message was displayed in their OPAC summary like this:

"Please note: You currently owe XXX in fines. Please pay your fines if you wish
to renew your books."

Information about outstanding fines in this case has no bearing on
how the user sees his summary of checkouts; since the user cannot
renew the loans from the OPAC regardless of their fine balance if
OpacRenewalAllowed is not enabled, this patch removes the message.

To test, try various combinations of OpacRenewalAllowed and
OPACFineNoRenewals with a patron who has outstanding fines:

- OpacRenewalAllowed ON and OPACFineNoRenewals ON (set to be triggered
  by the test patron's fines): Logging in to the OPAC the patron should
  see a warning on opac-user.pl about not being able to renew items
  because of fines.

- OpacRenewalAllowed ON and OPACFineNoRenewals OFF (threshold high
  enough not to trigger a block): No warning appears.

- OpacRenewalAllowed OFF and OPACFineNoRenewals ON: No warning appears.

- OpacRenewalAllowed OFF and OPACFineNoRenewals OFF: No warning appears.

If OpacRenewalAllowed is diabled and a patron's fines exceed the limit
set by OPACFineNoRenewals they should see no message.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passes koha-ql.pl and perlcritic

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 29edd3797a7c950664ebc3be272ad4dca2575a80)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit dceefcfac1e54dbfa3e13174cc8a5d73acbf07fe)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit dceefcfac1e54dbfa3e13174cc8a5d73acbf07fe)
koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt
opac/opac-user.pl