]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1765501: ensure that webstaff MARC editor can deal with short 008s
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 19 Apr 2018 19:11:41 +0000 (15:11 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 9 May 2018 13:37:10 +0000 (09:37 -0400)
commit5ca6ede3099b6c2d11a16d9d5e6051c3eada0799
tree85614f4b0813b61881201f71d886ccc37ace22c9
parent7f6d82980d0d8147f926f6da5a5bfe21223e921c
LP#1765501: ensure that webstaff MARC editor can deal with short 008s

This patch ensures that the 008 field, when maintained by the web staff
MARC editor, is kept at its proper length. In particular, this solves a
problem where input can get messed up if the user selects the entire
contents of the 008 field and replaces it with a shorter string.

To test
------
[1] Create a new bib record. Ensure that the MARC record editor is
    /not/ in flat text mode.
[2] Edit the 008 field by selecting its entire contents and replacing it
    with a subset. For example, this might be done when the first action
    that a cataloger takes is to set the 008/00-05.
[3] Enter value in the individual fixed-field inputs at the top of the
    MARC editor form. For example, enter 'eng' in the Lang field.
[4] Note that the results are wrong; e.g., the text ends up as
    "080419en en eng".
[5] Apply the patch and repeat steps #1-#4. This time, the results
    should be correct.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/staff/marcrecord.js