sul-dlss / SearchWorks

SearchWorks (Stanford University Libraries)
http://searchworks.stanford.edu
Other
48 stars 10 forks source link

Switch to OCLC Discovery API Citation service (from WorldCat Citation service) #4415

Closed corylown closed 2 months ago

corylown commented 2 months ago

The currently configured OCLC citation API is broken and OCLC isn't going to fix it. This adds the new OCLC Discovery Citation API and some refactoring to clarify the various citation services (EDS, MODS and now OCLC Discovery). This will turn off the "Cite" button for items that would only have an OCLC citation until the new Discovery Citation API is enabled via a config.

Related shared config PR to configure this on stage: https://github.com/sul-dlss/shared_configs/pull/2242

OCLC Discovery credentials are in vault if you want them for testing:

puppet/application/searchworks/stage/oclc-discovery-client-key 
puppet/application/searchworks/stage/oclc-discovery-client-secret 

Single Citation

Screenshot 2024-09-16 at 11 20 26 AM

Multiple Citations

Screenshot 2024-09-16 at 11 20 51 AM Screenshot 2024-09-16 at 11 20 58 AM