Method: Worldcat#initialize
- Defined in:
- app/service_adaptors/worldcat.rb
#initialize(config) ⇒ Worldcat
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/service_adaptors/worldcat.rb', line 14 def initialize(config) # defaults @suppress_precheck = false # it seems unneccesary to pre-check worldcat, it's mostly ALWAYS a positive hit. And pre-checking against worldcat is running into Worldcat's rate limiting defenses. If neccesary, you can turn this off. Really, we should be using the Worldcat API anyway. @base_url = 'http://www.worldcat.org/' @display_text = 'Find in other libraries' @display_text_i18n = 'display_text' @display_name = 'OCLC WorldCat.org' @credits = { "OCLC WorldCat.org" => "http://www.worldcat.org/" } super(config) end |