Adds ability to query WorldCat API and display count on "zero results" page.
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.