LP#1309717: Pad out short 00[678] user/miker/ff-pad-datafields
authorMike Rylander <mrylander@gmail.com>
Fri, 18 Apr 2014 19:37:54 +0000 (15:37 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 18 Apr 2014 19:37:54 +0000 (15:37 -0400)
commit6de52e87049e7e6e4e76242a11958cddee2f8953
tree2483c84e7307f0a96296ee1cad25b1af1e7dead3
parent4e42469eb09ce2e6062c0d7ad7405cc089603736
LP#1309717: Pad out short 00[678]

There are ways (many) where the 00X fields of a record may be saved
without trailing spaces to pad out the correct length. This causes
problems for the fixed field editor grid, which uses the substring()
method to read and stitch together the data in the fixed fields.
Specifically, if trailing space is truncated, both read and insertion
can fail in annoying ways.

To fix this, we should always pad out the 00X fields to their
appropriate lengths before reading or modifying them.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/dojo/MARC/FixedFields.js