-
Notifications
You must be signed in to change notification settings - Fork 4
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
Handle cases when subfield 4 is missing #69
Conversation
Thanks! It would be good to have this covered by tests too. Is it ok that I add the test record from #68 (comment) ? Speaking of, I was not able to convert that file on first attempt. I got "Could not find classification scheme or subject vocabulary code", since it has |
Yes, you are welcome to use the test record from #68. Initially, I was getting the same error as you ("Could not find classification scheme or subject vocabulary code"). I worked around it by:
Could you suggest how we should change our MARC records in order for Note: the vocabulary URI added to vocabularies.yml is a test / work-in-progress value and may change in the future. |
I am not a MARC expert but here's information that I got from colleagues:
|
Thanks for the update. Best practice (afaik) is to add a vocabulary code to The code should also be listed at https://www.loc.gov/standards/sourcelist/subject.html . To have a new vocabulary added to that list, you can contact NMDSO. Btw. there's some example MARC records from different vocabularies at https://github.com/scriptotek/mc2skos/tree/master/examples |
Looks like I made a mistake of making this PR from the master branch of my fork. As a result subsequent commits to the master branch unintentionally get included in this PR. I propose to close this PR. The important part of this PR that addresses #69 is in 8b0b515#diff-a8ebb6cae69594050b537bd50ca451ebR691 Please let me know if I should create a new PR with just this change or if you can take it from here without a need for a new PR. |
Thank you! :) I'll advise colleagues that we need to get a code for our authority file and add it to |
…led with the --lang-nll option.
Thanks! I cherry-picked 8101489 , and also published a new release. Sorry it took so long! |
If subfield $4 is missing when mapping 5XX record relations the program crashes with an AttributeError (when sf_4 is None).
This pull request gets rid of this AttributeError by checking for None.
See also: #68