Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode top-level MARC record leader as proper XML element instead of control field. #401

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

blackwinter
Copy link
Member

The XML decoder (not knowing anything about MARC) emits the leader element as a top-level literal. This is in contrast to the MARC21 decoder which wraps it in an entity.

The latter seems to be a historical artifact, originating from the removal of the splitLeader setting in Marc21Decoder (6d04d69) and the subsequent introduction of the emitLeaderAsWhole setting (76eb9fd).

Fixes #336.

…control field.

The XML decoder (not knowing anything about MARC) emits the leader element as a top-level literal. This is in contrast to the MARC21 decoder which wraps it in an entity.

The latter seems to be a historical artifact, originating from the removal of the `splitLeader` setting in `Marc21Decoder` (6d04d69) and the subsequent introduction of the `emitLeaderAsWhole` setting (76eb9fd).

Fixes #336.
@dr0i dr0i merged commit f048c33 into master Oct 4, 2021
@dr0i
Copy link
Member

dr0i commented Oct 4, 2021

Thx!
Merged into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MarcXmlEncoder ouputs "leader" wrongly
2 participants