[Koha-bugs] [Bug 22572] New: Garbled content of MARC control fields in MARC view
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Mar 24 22:04:34 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22572
Bug ID: 22572
Summary: Garbled content of MARC control fields in MARC view
Change sponsored?: ---
Product: Koha
Version: 18.11
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: OPAC
Assignee: oleonard at myacpl.org
Reporter: mik at adminkuhn.ch
QA Contact: testopia at bugs.koha-community.org
Target Milestone: ---
MARC control fields consist of a fix number of positions that can contain
blanks. The "MARC view" in the Koha staff client and the Koha OPAC garbles the
content of such fields when the field contains more than one consecutive blank
- in this case more than one consecutive blank is automatically collapsed down
by the webbrowser to just one. Additionally blanks may be trimmed at the end of
the content of a field.
For example MARC 008 does and must consist of exactly 40 positions, thus a line
like the following (as shown via webbrowser in the MARC view) is always wrong:
800422s1978 sz a 1 ger
In fact the correct content of MARC 008 would look like the following
800422s1978 sz a 1 ger
Or better visible, when using # instead of blanks:
800422s1978####sz########a#####1###ger##
Seemingly, this applies to all MARC control fields: 006 (fix length 18
positions), 007 (variable length of up to 23 positions), 008 (fix length of 40
positions).
In the database the content of these fields is correct.
Maybe before showing the blank character in the "MARC view" it should be coded
as HTML entity so the webbrowser doesn't collapse it. Also it may be a
good idea to show the beginning and the end of such fields because otherwise
(like in the above example) it is not visible that the field does contain two
positions with blanks at the end.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list