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)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 5 Feb 2018 22:54:45 +0000 (17:54 -0500)
commit0fb08737e92e57e541fe41ae7fb3eb3d79ebabfc
tree51042eb02bf9c49a0a3dcdc29bdfc092f9e28ce4
parent8410fdace48ceb10f0cb9e84294d15a8f5adff9a
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>
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