I'm working with Unimarc, using the marc4j library. In my system, I'm already able to get an instance of org.marc4j.marc.Record
. Now I'm having a hard time figuring out how to calculate the record length and base address of data. that are used in the record leader.
I've been trying to find how to do this using the marc4j library or outside of it and couldn't find it so far.
How can I get these two pieces of information?
I couldn't find anything in the documentation but I managed to do it. Functions below: