-
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
Counted leader elements in marc when encoding to marc #524
Comments
Is this related to #454? |
you can set the leader field, but leader "Character Positions 00-04 - Record length" & "Pos. 12-16 - Base address of data" should actually be generated automatically? It was discussed with @dr0i that we should first check whether the marc records from OERSI are 'valid' even without the correct information in the leader (the positions are currently filled with zeros). |
While inspecting some workaround for #454, I saw that the marc21-encoder seems to have a mechanism for that: Someone more advanced should have a look to confirm. Probably we could reuse the parts of the |
The construction of the |
@dr0i: Isn't |
Functional review @TobiasNx and @maipet . Note that the generated |
Added my review here: #526 (comment) On scenario is still not working otherwise for me this seems to work. But @maipet has more knowledge about the leader. |
It seems that this is not solved for encode-marcxml. The leader position at the beginning and in the middle are still 00000 |
Ahhh I now see what the problem here is, |
We decided with @maipet and @dr0i that marcXML does not need to count but either use the provided leader info if the leader is provided as whole (even if the record itself changed) or set the Leader Pos 00-04 and 12-16 to zero if the leader is only provided in separated elements as it is done by For further info see: |
MarcXmlEncoder acts as a wrapper. It makes use of Marc21Encoder and Marc21Decoder to ensure proper MARCXML, especially regarding the leader. Also - in contrast to MarcXmlEncoder - the record ID (field 001) is mandatory. The outer class is responsible for routing the stream into the appropriate pipe, the inner class contains the actual (previous) implementation. Co-authored-by: Pascal Christoph <[email protected]>
@maipet hinted that encode-marc21 or encode-marcxml cannot create the leader correctly since the elements are not counted.
Could you elaborate the problem
The text was updated successfully, but these errors were encountered: