Lp 1862652: pingest.pl reingest record attributes fix
authorJason Stephenson <jason@sigio.com>
Mon, 10 Feb 2020 16:09:37 +0000 (11:09 -0500)
committerJane Sandberg <sandbergja@gmail.com>
Thu, 9 Dec 2021 23:42:16 +0000 (15:42 -0800)
Use the rdeleted parameter when reingesting record attributes in
pingest.pl support script so that passing argument values to the
--attr option makes sense.

Prior to this patch, arguments of the --attr option would be ignored,
and all record attribute fields were reingested for all records,
deleted and not deleted alike.

With this patch, the arguments of the --attr option are respected for
not deleted records.  Deleted records still have all attributes
reingested.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>

Open-ILS/src/support-scripts/pingest.pl

index efdb2ed..8fd2cc9 100755 (executable)
@@ -316,7 +316,7 @@ sub reingest_attributes {
     my $dbh = shift;
     my $list = shift;
     my $sth = $dbh->prepare(<<END_OF_INGEST
-SELECT metabib.reingest_record_attributes(rid := id, prmarc := marc, pattr_list := ?)
+SELECT metabib.reingest_record_attributes(rid := id, prmarc := marc, pattr_list := ?, rdeleted := deleted)
 FROM biblio.record_entry
 WHERE id = ?
 END_OF_INGEST