LP#957466: Update editor/edit_date/source on overlay user/rsteed/lp957466_vl_update_edit_date
authorRemington Steed <rjs7@calvin.edu>
Mon, 13 Oct 2014 16:22:32 +0000 (12:22 -0400)
committerRemington Steed <rjs7@calvin.edu>
Mon, 13 Oct 2014 21:28:13 +0000 (17:28 -0400)
commit378b6b9148842aa4393a02c2990959dbee83539e
treebfc8f6be98f28d1e6fa7674db37e35d56177c339
parent18ef1cef2adb0beffe1758690bc8afc8e1189917
LP#957466: Update editor/edit_date/source on overlay

This commit does three things.

1. It removes some declared variables that are never used in this
function.

2. It updates the bib record edit_date field (along with the editor) if
an editor is found in the MARC. If an editor is not found (or doesn't
match an Evergreen user), it seems best to leave the edit_date
unchanged so as not to imply that the previous editor is responsible for
the newest edit.

3. If a bib source is chosen in the vandelay importer UI, it updates the
bib record with the source. To access this field, the reference to table
"queued_record" is replaced by its child table "queued_bib_record".
Since the new table is a child of the other, all of the other needed
values are still available.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Open-ILS/src/sql/Pg/012.schema.vandelay.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.function.vandelay-overlay_bib_record.sql [new file with mode: 0644]