]> git.koha-community.org Git - koha.git/commit
Bug 23045: TextMarc errors on blank lines
authorNick Clemens <nick@bywatersolutions.com>
Tue, 4 Jun 2019 14:25:53 +0000 (14:25 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 26 Jul 2019 03:03:54 +0000 (03:03 +0000)
commit8b3e00174b2ef5643e559873fb4215b9e3fec29a
tree4379770439e5a5c662ad039600a4c581ce45e45b
parent0995e70bb6bcbd02821c9113353d7ce20e3d93ba
Bug 23045: TextMarc errors on blank lines

Since bug 16251 we use TextMarc to get some record fields, however, it throws an error when
processing blank lines.

We should just pass on these rather then erroring

To test:
1 - Define a new macro that delete more fields than it adds
  delete 245
2 - Run it
3 - Note an error in JS console, and helpers will not load
4 - Apply patch
5 - Reload, try again
6 - No error

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 545f38d13c210e4cb173e67d2578d825a9ffeb47)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 2340df6f7c85c48a2ae68292204e9f16d485e7b9)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/lib/koha/cateditor/text-marc.js
koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-widgets-marc21.inc