-
Notifications
You must be signed in to change notification settings - Fork 34
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
Marc-XML-encoder: record-type written as controlfield not as attribut of record-field #402
Comments
Oh, I see, the MARC XML encoder doesn't know how to handle (marked) attributes. Is that it? |
Yep, good catch, that's it! |
=>
type is set as tag in controlfield tag and the attribute value is set in the bracket. Using the attribute marker the output is:
Should be: Neither marked nor not marked works. |
I have a testcase here: https://github.com/TobiasNx/notWorkingFlux/tree/main/leader Testflux: https://github.com/TobiasNx/notWorkingFlux/blob/main/leader/misplacedLeader.flux Testfile: https://github.com/TobiasNx/notWorkingFlux/blob/main/leader/1196308691_marcxml.mrcx |
Should be fixed by #404. Could you check? |
if the attributeMarker is explicitly set like this
result is: it works, if not the option is not set explicitly it doesn't. Is there anyway that we do not need this explicit marking. Since all other attributes of marcXML e.g.
are recognized directly and ecoded properly. In this it differs from a generic XML decoder/encoder since the possible attributes are limited. Is this what you mean by dirty vs clean solution @blackwinter ? |
No, this is just for backward compatibility. Although, if we consider it a bugfix, we can justify changing the default behaviour. Thoughts? |
But then the new |
Exactly. This was a bugfix. |
And to be clear: I'm sure we can make a case for this to be a bug, too. I was probably still too much in the mindset of the previous attribute work ;) |
Proposing #405 as bugfix. WDYT? |
Nice. Bugfix seems fine. +1. input:
was:
now:
Also don't be confused about the namespace refrences in Also the namespace-prefixes in the output are okay since |
So I think we agree on having this fixed :) |
But the pull request isn't merged, yet? |
Sorry, thought I had, but forgot to push. Done now. |
While reviewing #336 I saw that the optional attribute type of the record field is also wrongly outputted as
controlledfield
:in:
out:
Never mind the namespaces in this ticket.
The text was updated successfully, but these errors were encountered: