]> 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:46:02 +0000 (16:46 -0400)
commitf987c1ade801d0102c46ada465448d873413a634
treee9c1677061353b3fe23765dc75e06c66bc47bf8b
parentad4802eedb3c2d05f4d0136c1724883968c34b6f
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