uoregon-libraries / oregonnews

!!Defunct!! University of Oregon fork of Chronicling America
1 stars 0 forks source link

pull attribution from metadata as opposed to batch name #27

Closed srabun closed 7 years ago

srabun commented 9 years ago

screen shot 2014-12-05 at 9 36 38 am

See attribution tag circled in red - currently this data is being pulled from the marc org code in the batch name, for example "batch_oru_apple" - where "oru" is the org code for "University of Oregon Libraries"

Ideally we would like this tag to pull from the metadata field "SourceRepository" which can be found in the reel xml AND in the issue xmls as physicalLocation:

Reel xml: screen shot 2014-12-05 at 9 44 33 am

Issue xml: screen shot 2014-12-05 at 9 45 30 am

srabun commented 9 years ago

I already know that it is possible to use a string and not an org code in this metadata field and it will still validate

srabun commented 9 years ago

FYI in a test batch I changed the batch name to "batch_confederatedtribesofthegrandronde_test" and it validated and verified!

srabun commented 8 years ago

I don't think we need to do this since we figured out the hack already?

jechols commented 8 years ago

I believe we hacked it in, but I don't know if it's the way forward. Adding fake database records seems like a bad idea long-term, as opposed to coming up with a way to separate institution from attribution.

That said, this is good for our needs for now, and probably for a long time. Doing it right might be something to worry about in open oni.