Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enables internetarchive/openlibrary-bots#29
Adds the ability to import Deutsche Nationalbibliothek (DNB) identifiers into Open Library from library MARC records (such as those made available to the public directly by DNB themselves, under a CC0 license).
Technical
This takes the DNB identifier from MARC field
016$a
(National Bibliographic Agency Control Number) if the016$2
(source) isDE-101
016
field description: https://www.loc.gov/marc/bibliographic/bd016.htmlSource data for importing / testing: https://archive.org/details/marc_dnb_202006
Testing
Tested locally using the /api/import/ia endpoint -- newly imported DNB MARC record has the identifier as shown in the screenshot below, importing from this record: https://openlibrary.org/show-records/marc_dnb_202006/dnb_all_dnbmarc_20200615-2.mrc:0:953
Screenshot:
Links to http://d-nb.info/810887746
Update to the history sources list to display the import source:
Stakeholders
@GLBW
@mekarpeles