Class: AllBooksDotCom

Inherits:
IsbnLink show all
Defined in:
app/service_adaptors/all_books_dot_com.rb

Overview

Blind (not pre-checked for hits) link to compare prices at AllBookstores.com – because that site seemed good, includes shipping prices, has decent UX, and includes independent bookstores like Powell's and The Strand.

subclasses IsbnLink

Constant Summary

Constants inherited from Service

Service::LinkOutFilterTask, Service::StandardTask

Instance Attribute Summary

Attributes inherited from Service

#group, #name, #priority, #request, #service_id, #status, #task, #url

Instance Method Summary collapse

Methods inherited from IsbnLink

#handle, #service_types_generated

Methods included from MetadataHelper

#get_doi, #get_epage, #get_gpo_item_nums, #get_identifier, #get_isbn, #get_issn, #get_lccn, #get_month, #get_oclcnum, #get_pmid, #get_search_creator, #get_search_terms, #get_search_title, #get_spage, #get_sudoc, #get_top_level_creator, #get_year, #normalize_lccn, #normalize_title, #raw_search_title, title_is_serial?

Methods included from MarcHelper

#add_856_links, #edition_statement, #get_title, #get_years, #gmd_values, #service_type_for_856, #should_skip_856_link?, #strip_gmd

Methods inherited from Service

#credits, #display_name, #handle, #handle_wrapper, #link_out_filter, #preempted_by, required_config_params, #response_url, #service_types_generated, #translate

Constructor Details

#initialize(config) ⇒ AllBooksDotCom

Returns a new instance of AllBooksDotCom


10
11
12
13
14
15
16
# File 'app/service_adaptors/all_books_dot_com.rb', line 10

def initialize(config)    
  super(config)

  @display_text   ||= "Compare online prices"
  @display_name   ||= "AllBookstores.com"
  @link_template  ||= "http://www.allbookstores.com/book/compare/%s"
end