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:09:18 +0000 (12:09 -0400)
commit2a6fae73b7cbeb483885eb108867c2360da5ab28
tree5899420bd92f1f54eddee83caba9b8fe58e265ba
parentcf26a4ac1ec8a171f7ee70894f9163bb9c2f02e8
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