WorldCat Discovery API searcher for NCSU Quick Search
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.
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') %>
-
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') %>
The searchers return the following additional information about each item:
- "item_format"
- The "world_cat_discovery_api" searcher will return one of the following:
- "audio_book"
- "book"
- "e_book"
- "other" - Default if the type cannot be determined
- The "world_cat_discovery_api_article" searcher always returns "article"
- The "world_cat_discovery_api" searcher will return one of the following: