quick_search-world_cat_discovery_api_searcher
WorldCat Discovery API searcher for NCSU Quick Search
Installation
Include the searcher gem in your Gemfile:
gem 'quick_search-world_cat_discovery_api_searcher'
Run bundle install:
bundle install
This gem provides two separate WorldCat Discovery searchers:
- world_cat_discovery_api_searcher: A searcher that queries WorldCat Discovery for all item types
- world_cat_discovery_api_article_searcher: A searcher that limits the WorldCat Discovery query to articles and book chapters
The world_cat_discovery_api_article_searcher has special handling to return a direct link to the article (instead of to the WorldCat catalog entry), where possible.
Searcher Configuration
world_cat_discovery_api_searcher
In your search application:
-
Add the "world_cat_discovery_api" searcher to config/quick_search_config.yml
-
Copy the config/world_cat_discovery_api_config.yml file into the config/searchers/ directory and fill out the values are appropriate.
-
Include in your Search Results page
<%= render_module(@world_cat_discovery_api, 'world_cat_discovery_api') %>
world_cat_discovery_api_article
-
Add the "world_cat_discovery_api_article" searcher to config/quick_search_config.yml
-
Copy the config/world_cat_discovery_api_article_config.yml file into the config/searchers/ directory and fill out the values are appropriate.
-
Include in your Search Results page
<%= render_module(@world_cat_discovery_api_article, 'world_cat_discovery_api_article') %>