LP#1731960-preserving book bag entries with new values during bib merge user/cesardv/rogan_lp1731960_replace_bookbags_in_merge_signoff
authorRogan Hamby <rogan.hamby@gmail.com>
Tue, 21 Nov 2017 23:50:34 +0000 (18:50 -0500)
committerCesar Velez <cesar.velez@equinoxinitiative.org>
Mon, 22 Jan 2018 21:08:47 +0000 (16:08 -0500)
commit4d2b94bb03a5b0992cf7a9ccc0955cf250cd54f7
tree6de5cf46724cea7d05e2983ebceb8c1db797bfb3
parentdf6e607db567ecc5270305d351f034176c30c52e
LP#1731960-preserving book bag entries with new values during bib merge

The asset.merge_record_assets() removes bib records from containers when
merging and deleting the record as appropriate but bib containers with
the btype of 'bookbag' (used as reading lists) should instead be updated
to the new bib record. Includes Pgtap test.

Signed-off-by: Rogan Hamby <rhamby@equinoxinitiative.org>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Open-ILS/src/sql/Pg/999.functions.global.sql
Open-ILS/src/sql/Pg/t/lp1731960_test_preserving_bookbag_entries.pg [new file with mode: 0644]