Skip to content
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

Add Library of Congress NAF as Author identifier #9812

Merged
merged 4 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions openlibrary/components/AuthorIdentifiers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
const identifierPatterns = {
wikidata: /^Q[1-9]\d*$/i,
isni: /^[0]{4} ?[0-9]{4} ?[0-9]{4} ?[0-9]{3}[0-9X]$/i,
loc_naf: /^n[a-z]?[1-9][0-9]+$/,
amazon: /^B[0-9A-Za-z]{9}$/,
youtube: /^@[A-Za-z0-9_\-.]{3,30}/,
}
Expand Down
5 changes: 5 additions & 0 deletions openlibrary/plugins/openlibrary/config/author/identifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ identifiers:
notes: two formats depending on if the author exists in wikidata, wd:Q42 or inv:914ad8068b8711ead0cc2efbed56e53c
url: https://inventaire.io/entity/@@@
website: https://inventaire.io/
- label: Library of Congress
name: loc_naf
notes: Should be something like nr92001540, no97027235, etc. (/^n[a-z]?[0-9]+$/)
url: https://id.loc.gov/authorities/names/@@@
website: https://id.loc.gov/authorities/names.html
- label: LibraryThing
name: librarything
notes: Should be something like kingstephen-1
Expand Down
Loading