Koha-clms/installer/data/mysql
Jonathan Druart 23ed6dd88f Bug 9942: Make Koha fail if privacy is not respected
If a patron has requested anonymity on returning items and the system is
not correctly configured (AnonymousPatron no set or set to an inexistent
patron), the application should take it into account and not fail
quietly.

This patch is quite radical: the script will die loudly if the privacy
is not respected.

To be care of the bad "Software error", some checks are done in the
updatedatabase to be sure the admin will be warned is something is wrong
in the configuration.

Test plan:
1/ Test the updatedatabase entry:
a. Turn on OPACPrivacy and set AnonymousPatron to an existing patron
=> You will get a warning
b. Turn on OPACPrivacy and set AnonymousPatron to 0 or ''
=> You will get a warning
c. Turn on OPACPrivacy and set the privacy to 2 (Never) for at least 1 patron
Turn off OPACPrivacy
=> You will get a warning
d. In all other cases you will get no error

2/ Test the interface
a. Turn on OPACPrivacy and set the privacy to 2 (Never) for a patron
b. Now you can turn off OPACPrivacy or keep it on, behavior should be
the same
c. check an item out the patron
d. Check the item in using the check out table
=> fail
e. Check the item in using the Check in tab
=> fail (not gracefully).

Note that the software error could appear on other pages too.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Updatedatabase works as described
On staff, if don't have correct settings for anonymity it's
impossible to check-in (with OPACPrivacy on)
No errors

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit 94315f663b)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2015-07-14 11:53:12 +12:00
..
atomicupdate Updating version to 3.20.00.001 2015-06-04 13:58:17 +12:00
de-DE Bug 4925: Remove Smithsonian as a delivered z39.50 target 2015-07-07 09:28:31 +12:00
en Bug 4925: Remove Smithsonian as a delivered z39.50 target 2015-07-07 09:28:31 +12:00
es-ES Bug 4925: Remove Smithsonian as a delivered z39.50 target 2015-07-07 09:28:31 +12:00
fr-FR Bug 5010: Fix OPACBaseURL to include protocol 2015-06-07 19:47:49 +12:00
it-IT Bug 5010: Fix OPACBaseURL to include protocol 2015-06-07 19:47:49 +12:00
mandatory Bug 14285: Bengali locale needs to be re-defined 2015-06-04 13:53:38 +12:00
nb-NO Bug 5010: Fix OPACBaseURL to include protocol 2015-06-07 19:47:49 +12:00
pl-PL Bug 4925: Remove Smithsonian as a delivered z39.50 target 2015-07-07 09:28:31 +12:00
ru-RU Bug 5010: Fix OPACBaseURL to include protocol 2015-06-07 19:47:49 +12:00
uk-UA Bug 5010: Fix OPACBaseURL to include protocol 2015-06-07 19:47:49 +12:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 14350: Missing statement in kohastructure.sql - DROP TABLE IF EXISTS borrower_sync 2015-06-18 10:13:34 +12:00
labels_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
patroncards_upgrade.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
sysprefs.sql Bug 5010: Fix OPACBaseURL to include protocol 2015-06-07 19:47:49 +12:00
update22to30.pl Bug 11398: A typo occurred with occured 2014-01-02 15:12:48 +00:00
updatedatabase.pl Bug 9942: Make Koha fail if privacy is not respected 2015-07-14 11:53:12 +12:00