Closed lwrubel closed 1 year ago
Question: Should folio_client's method return marcxml or should the consumer convert the JSON to marcxml? Either way that would be via the ruby-marc gem.
We can return the marc.json for now; it will be read by the ruby-marc gem by the user of the client method.
To get a MARC source record (as JSON) from FOLIO, a method needs to be added to the folio_client gem to look up a record when passed an HRID. This will get used when refreshing descriptive metadata.
From Naomi:
This ticket includes testing that the marc json is parseable by the ruby-marc gem; perhaps as a spec?? (It does not USE the ruby-marc gem, but it might make a good test? If so, include ruby-marc gem as a testing dependency only)_discussed this pairing after standup, was decided we'll revisit if we see a need for validation in folioclient, as it's just passing along the json it gets backGET
/source-storage/source-records?instanceHrid={HRID}
For example:
/source-storage/source-records?instanceHrid=a5617360
Docs on AWS
The MARC JSON is in
sourceRecords['parsedRecord']['content']['fields']
.