Skip to content

Adds ability to query WorldCat API and display count on "zero results" page.

Compare
Choose a tag to compare
@adjam adjam released this 01 Oct 17:31
f8c2718

Adds ability to query WorldCat API and display count on "zero results" page.

Usage:

Set WORLDCAT_URL, WORLDCAT_API_KEY, and WORLDCAT_API_URL environment variables in your application; the first two are institution-specific, the appropriate value for the last is commented in config/local_env.yml. The service will only work if all three values are set (they are not set by default).

Customize results display by editing trln_argon.search.zero_results.worldcat_* keys in locales/en.yml and app/views/_zero_results.html.erb template.