]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1691263: make webstaff MARC editor wrap long fields
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Mon, 4 Dec 2017 17:45:35 +0000 (12:45 -0500)
committerKathy Lussier <klussier@masslnc.org>
Wed, 14 Mar 2018 20:47:54 +0000 (16:47 -0400)
commite0e1d9a79f7fde04f73ee6a8ca798c08b72f5192
treeeec5d10fbce2662115bc89db8253c8fdbdf5924b
parentcc7e229d1570df89983dd55885fbbb5b705a6fef
LP#1691263: make webstaff MARC editor wrap long fields

This patch makes the MARC editor wrap long fields (e.g.,
bibliographic 505 fields) so that they fit the width of the enclosing
window or modal. The approach taken is replacing the text input
elements with contenteditable divs, which in turn can be better
styled.

To test
-------
[1] Apply the patch.
[2] Locate a record with a long 505 field and open it in the
    MARC editor. Verify that the contents of the field wrap.
[3] Verify that record editing and saving work as expected.

Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/staff/cat/share/t_marcedit_editable.tt2 [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js