LP#1727345 - fix bibsource when importing or overlaying user/cesardv/lp1727345-z3950-import-overlay-bibsource
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Fri, 21 Sep 2018 15:46:59 +0000 (11:46 -0400)
committerCesar Velez <cesar.velez@equinoxinitiative.org>
Fri, 21 Sep 2018 16:04:09 +0000 (12:04 -0400)
commite2f90e9bf1d0a5abcb99a8bef9497c339867570d
treec227ca3e63d2465485a448946174ee45942e9e20
parent1c1bc36222e90f34a94e6ba38c8daf7f90775283
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>
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