psu-libraries / psulib_blacklight

Penn State University Libraries' Blacklight Catalog
Apache License 2.0
10 stars 3 forks source link

Downloading large MARC records #797

Open awead opened 3 years ago

awead commented 3 years ago

When downloading the marc file for https://catalog.libraries.psu.edu/catalog/71529, we're getting:

MARC::Exception: Can't write MARC record in binary format, as a length/offset value of 100082 is too long for a 5-byte slot.

nicktiberi commented 2 years ago

This is handled in the ruby-marc gem here: https://github.com/ruby-marc/ruby-marc/blob/335a02065136440c8fb57c8f18e99dcd6e23791a/lib/marc/writer.rb#L113-L133