Koha/misc/cronjobs
Peter Crellan Kelly 571dab9c7c Bug 6506: When AnonymousPatron not set, deletion of issue history silently failed.
Remedied by:
- in Circulation.pm changing AnonymiseIssueHistory so that it returns ($rows, $err_history_not_deleted) instead of $rows
- consequential change to misc/cronjobs/batch_anonymise.pl to handle updated return value, and fail if there is an error
- consequential change to tools/cleanborrowers.pl although this still fails silently (raised as bug 9944)
- update of opac-privacy.pl to check return value and pass on error
- update of opac-privacy.tt to display error if appropriate

Note bug 9942 remains unfixed, which is a similar issue upon issue return.

To test:
1. OPAC
- enable privacy mode (preference OpacPrivacy)
- leave anonymous patron set to zero (preference AnonymousPatron)
- attempt to delete user history
- observe error
- check history - still there
- change anonymous patron to a valid user
- attempt to delete user history
- observe success message
- check history - gone

2. cleanborrowers.pl
- test it functions as before.  bug 9944 has been raised for it continuing to silently fail.

3. batch_anonymise.pl
- enable privacy mode (preference OpacPrivacy)
- leave anonymous patron set to zero (preference AnonymousPatron)
- run script (I use --days -1 for testing)
- script should fail with a Carp message
- change anonymous patron to a valid user
- run script as before
- script returns quietly
- check history - gone

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2013-05-01 08:44:11 -04:00
..
holds bug_5911: Transport Cost Matrix 2012-09-12 14:49:25 +02:00
rss
social_data Bug 7470: Babeltheque integration 2012-03-26 14:24:04 +02:00
stats
thirdparty Bug 8606 - Talking Tech broken by Bug 7001 2012-09-20 14:12:41 +02:00
advance_notices.pl Bug 9499 - --itemscontent= option is undocumented in advanced-notice.pl cronjob + default date should be date_due, not issuedate 2013-02-07 19:44:50 -05:00
backup.sh Bug 9235 - Hardcoded values in cronjobs/backup.sh 2012-12-21 07:20:50 -05:00
batch_anonymise.pl Bug 6506: When AnonymousPatron not set, deletion of issue history silently failed. 2013-05-01 08:44:11 -04:00
build_browser_and_cloud.pl
cart_to_shelf.pl 7368 Typo in cart_to_shelf 2012-03-16 11:50:29 +01:00
check-url-quick.pl Bug 7963 follow-up: die nicely if AnyEvent libraries not installed 2012-10-05 11:44:56 +02:00
check-url.pl Bug 7963 Parallel HTTP requests when checking URLs 2012-10-05 11:44:52 +02:00
cleanup_database.pl Bug 7240: Cleaning up import tables and action_logs 2012-01-13 12:20:51 +01:00
cloud-kw.pl
cloud-sample.conf
CONFIGURE.gmail
create_koc_db.pl
crontab.example Bug 8741 - crontab.example missing username, fails in some systems 2012-10-09 17:55:12 +02:00
delete_expired_opac_registrations.pl Bug 7067: Followup FIX QA fails 2012-12-14 08:09:00 -05:00
delete_unverified_opac_registrations.pl Bug 7067: Followup FIX QA fails 2012-12-14 08:09:00 -05:00
fines.pl Bug 9671: Make fines.pl help text more accurate 2013-04-26 18:35:40 -04:00
gather_print_notices.pl Bug 8063 - Followup - Bug fix 2012-07-16 14:54:02 +02:00
import_webservice_batch.pl Bug 7475: Teach matching rules to handle authorities 2012-09-19 17:15:56 +02:00
j2a.pl Bug 7157 follow-up: j2a.pl executable again 2012-01-27 12:18:25 +01:00
longoverdue.pl Bug 7526 - longoverdue.pl leaves items marked as lost as still checked out to patron 2012-03-20 11:22:52 +01:00
MARC21_parse_test.pl Bug 6752: Be stricter with utf-8 encoding of output 2012-01-27 12:11:06 +01:00
overdue_notices.pl Bug 8378 - <fine> in overdues changed to <<items.fine>> 2013-03-21 21:53:05 -04:00
printoverdues.sh Bug 8977:replace unitialized directory var in printoverdues 2012-11-13 09:55:18 -05:00
process_message_queue.pl
purge_suggestions.pl
runreport.pl Bug 9033: Wide character error in runreport.pl 2012-12-12 07:26:52 -05:00
serialsUpdate.pl Bug 8782: Close a subscription 2012-11-30 08:14:24 -05:00
services_throttle.pl
staticfines.pl Bug 8420: tool statisticfines.pl and hourly loan 2012-09-14 16:19:25 +02:00
update_totalissues.pl Bug 6557: Record bib popularity in totalissues 2012-06-29 14:29:22 +02:00