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

Conversation

Freso
Copy link
Contributor

@Freso Freso commented Aug 27, 2024

Closes #9791

feature

Technical

Adds Library of Congress Name Authority File (LC NAF) as an Author identifier in author/identifiers.yml.

The label has been shortened to just “Library of Congress” to avoid having an obscenely long label in the drop-down lists and also avoid obscure acronyms (“NAF”) in it that are likely to cause more confusion than clarity.

The URI identifiers given by LoC themselves start with “http://” but I have opted to use “https://” for the url so patrons etc. won’t need a redirect or similar to get to the page.

Update: Also added an entry for autoselection of LoC when added the ID on the author editing page.

Testing

  1. Apply patch
  2. Restart app
  3. Check that “Library of Congress” appears in the Author identifier dropdown
  4. Copy an identifier into the field (e.g., no97027235) and verify that the LoC entry gets selected
  5. Check that an added loc_naf identifier gets shown on the Author page

Stakeholders

@mekarpeles

Freso added 2 commits August 27, 2024 10:07
Adds Library of Congress Name Authority File (LC NAF) as an Author identifier.

The `label` has been shortened to just “Library of Congress” to
avoid having an obscenely long label in the drop-down lists and
also avoid obscure acronyms (“NAF”) in it that are likely to
cause more confusion than clarity.

The URI identifiers given by LoC themselves start with “http://” but I
have opted to use “https://” for the `url` so patrons etc. won’t need a
redirect or similar to get to the page.

Closes internetarchive#9791
Adds an entry for `loc_naf` (Library of Congress Name Authority File)
identifiers to the `identifierPatterns` lookup table to enable
autoselection when entering the identifiers.
@codecov-commenter
Copy link

codecov-commenter commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.45%. Comparing base (ce16a79) to head (fabb1b0).
Report is 287 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9812      +/-   ##
==========================================
+ Coverage   16.06%   16.45%   +0.39%     
==========================================
  Files          90       91       +1     
  Lines        4769     4897     +128     
  Branches      832      853      +21     
==========================================
+ Hits          766      806      +40     
- Misses       3480     3557      +77     
- Partials      523      534      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@tfmorris tfmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tackling this! Just a couple of small suggestions...

Freso and others added 2 commits August 28, 2024 09:43
Per internetarchive#9812 (comment)

Co-authored-by: Tom Morris <tfmorris@gmail.com>
Per internetarchive#9812 (comment)

Co-authored-by: Tom Morris <tfmorris@gmail.com>
@mekarpeles mekarpeles merged commit e7c202d into internetarchive:master Aug 28, 2024
5 checks passed
@mekarpeles
Copy link
Member

Thank you @Freso and @tfmorris!

@Freso Freso deleted the feat/9791/loc-naf-author-id branch August 28, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Library of Congress Name Authority File (LC NAF) as identifier type
4 participants