LP#1650409: improve authority_control_fields.pl's --all and --days_back processing
authorRogan Hamby <rogan.hamby@gmail.com>
Fri, 9 Mar 2018 13:38:06 +0000 (08:38 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 2 Aug 2019 16:10:45 +0000 (12:10 -0400)
commit21ac925f95716c9f301b75e94bc5f69b1d695e91
tree87c8d08ae50176b89a20efe202b1dc5c654b6a5a
parente714feca20eeea64e49a2092293ab991430f5d73
LP#1650409: improve authority_control_fields.pl's --all and --days_back processing

When --all is used, the list of bibliographic records to process is now
retrieved via a direct database query instead of using open-ils.storage,
avoiding a potential timeout.

The query used to fetch records when --days_back is used now fetches
all records that were edited up to the specified number of days
ago. Prior to this patch, --days_back ended up fetching records
created on the current day and records edited on the --days_back
day, skipping any that were updated in between.

Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/support-scripts/authority_control_fields.pl.in