Koha/misc/cronjobs
Jonathan Druart aa8ee99fb7 Bug 25624: Add --where option to update_patrons_category.pl
The script did not allow to find empty fields or use wildcards

With this new option we will now have the ability to filter patrons by
some of their attributes.

Test plan:
1 - Run the script with no parameters and verify the help explains the parameters
2 - Try the script with one or more --where parameters, like:
  --where "firstname='koha'"
3 - Test null values
  --where "firstname IS NULL"
4 - Test like values with wildcards
  --where "firstname LIKE '%a%'
5 - Test like with the word null to find fields containing the word rather than being unset

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-28 16:09:10 +02:00
..
holds
rss
social_data
thirdparty
advance_notices.pl
archive_purchase_suggestions.pl
automatic_item_modification_by_age.pl
automatic_renewals.pl Bug 25758: Return on_reserve over too_soon when not calling from automatic_renewals cron 2020-09-28 11:08:03 +02:00
backup.sh
batch_anonymise.pl
build_browser_and_cloud.pl
cart_to_shelf.pl
check-url-quick.pl
check-url.pl
cleanup_database.pl
cloud-kw.pl
cloud-sample.conf
CONFIGURE.gmail
create_koc_db.pl
crontab.example
delete_items.pl
delete_patrons.pl
delete_records_via_leader.pl
edi_cron.pl Bug 23682: Fix use Koha::Plugins::Handler statements 2020-09-03 15:00:48 +02:00
fines.pl
gather_print_notices.pl
import_webservice_batch.pl
longoverdue.pl Bug 25958: (QA follow-up) Implement filter in database query instead of in loop 2020-08-25 12:01:43 +02:00
membership_expiry.pl
merge_authorities.pl
notice_unprocessed_suggestions.pl
overdue_notices.pl Bug 26420: Use translated notices for overdue_notices.pl 2020-09-18 10:38:05 +02:00
patron_emailer.pl
printoverdues.sh
process_message_queue.pl
purge_suggestions.pl
reconcile_balances.pl
remove_temporary_edifiles.pl
runreport.pl
serialsUpdate.pl
share_usage_with_koha_community.pl
sitemap.pl
staticfines.pl
stockrotation.pl
update_patrons_category.pl Bug 25624: Add --where option to update_patrons_category.pl 2020-09-28 16:09:10 +02:00
update_totalissues.pl