Method: HathiTrust#initialize

Defined in:
app/service_adaptors/hathi_trust.rb

#initialize(config) ⇒ HathiTrust

Returns a new instance of HathiTrust.



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'app/service_adaptors/hathi_trust.rb', line 50

def initialize(config)
  @api_url = 'http://catalog.hathitrust.org/api/volumes'
  # Set to 'https://babel.hathitrust.org/shcgi/' to force
  # Shibboleth login, possibly in concert with EZProxy providing
  # WAYFLess login. 
  @direct_link_base = 'http://babel.hathitrust.org/cgi/'
  @display_name = 'HathiTrust'
  @num_full_views = 1 # max num full view links to include
  @note =  '' #'Fulltext books from the University of Michigan'
  @show_search_inside = true
  @show_multi_volume = true
  
  @credits = {
    "HathiTrust" => "http://www.hathitrust.org"
  }
  
  super(config)
end