LP#1727345 - fix bibsource when importing or overlaying user/sandbergja/lp1727345-z3950-import-overlay-bibsource-signedoff
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Fri, 21 Sep 2018 15:46:59 +0000 (11:46 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Fri, 7 Dec 2018 03:38:59 +0000 (19:38 -0800)
commit1de8dfade4bf5fbba7f015f00009f71116cee0f9
treeb5d6cba63fe72fc2d8a98aa95f3fbdd28da1ccb5
parentdfd2dd5943407d52cccf8bb82d22bdfc957241d1
LP#1727345 - fix bibsource when importing or overlaying

This addresses several issues that were causing the
bib source to either not display correctly on the record page
or not save correctly when editing z3950 imports/overlays
Refactors passing around of bib source into eg-marc-edit and it's
child directive egMarcEditBibsource.

Two paths to test:
Path A)
    1. Import a new bib record from z3950, but via "Edit then Import"
    2. Bring up marc editor and choose save w/ bib source.
    3. Verify chosen bib source saved correctly on record page.
Path B)
    1. Mark a record as target for Overlay, go to z3950 import.
    2. Make a search, select item for Overlay.
    3. Choose Edit z3950 record to bring up marceditor, save with a bib source.
    4. Verify chosen bib source saved correctly on record page.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/templates/staff/cat/z3950/t_edit_overlay_record.tt2
Open-ILS/src/templates/staff/cat/z3950/t_marc_edit.tt2
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js
Open-ILS/web/js/ui/default/staff/cat/z3950/app.js