Module: BentoSearch
- Defined in:
- lib/bento_search.rb,
lib/bento_search.rb,
lib/bento_search/engine.rb,
lib/bento_search/routes.rb,
lib/bento_search/version.rb,
app/models/bento_search/link.rb,
app/models/bento_search/author.rb,
app/models/bento_search/results.rb,
app/models/bento_search/result_item.rb,
app/models/bento_search/ris_creator.rb,
app/models/bento_search/search_engine.rb,
app/models/bento_search/openurl_creator.rb,
app/search_engines/bento_search/scopus_engine.rb,
app/search_engines/bento_search/xerxes_engine.rb,
app/controllers/bento_search/search_controller.rb,
app/item_decorators/bento_search/decorator_base.rb,
app/item_decorators/bento_search/standard_decorator.rb,
app/search_engines/bento_search/google_books_engine.rb,
app/controllers/bento_search/bento_search_controller.rb,
app/search_engines/bento_search/doaj_articles_engine.rb,
lib/generators/bento_search/pull_ebsco_dbs_generator.rb,
app/search_engines/bento_search/journal_tocs_for_journal.rb
Defined Under Namespace
Modules: NoLinks, OnlyPremadeOpenurl, OpenurlAddOtherLink, OpenurlMainLink, SearchEngine, Util Classes: Author, BentoSearchController, DecoratorBase, DoajArticlesEngine, EbscoHostEngine, EdsEngine, Engine, Error, FetchError, GoogleBooksEngine, GoogleSiteSearchEngine, JournalTocsForJournal, Link, MockEngine, NoSuchEngine, NotFound, OpenurlCreator, PrimoEngine, PullEbscoDbsGenerator, RISCreator, Registrar, ResultItem, Results, Routes, ScopusEngine, SearchController, StandardDecorator, SummonEngine, TooManyFound, WorldcatSruDcEngine, XerxesEngine
Constant Summary collapse
- RubyTimeoutClass =
Avoid deprecation warnings in ruby 2.3.0
(Timeout::Error) ? Timeout::Error : TimeoutError)
- VERSION =
"1.7.0"
- @@defaults =
Confstruct::Configuration.new( error_partial: 'bento_search/search_error', item_partial: 'bento_search/std_item', no_results_partial: 'bento_search/no_results', ajax_loading_partial: 'bento_search/ajax_loading' )
Class Method Summary collapse
- .defaults ⇒ Object
- .get_engine(id) ⇒ Object
- .global_registrar ⇒ Object
-
.register_engine(id, data = nil, &block) ⇒ Object
See BentoSearch::Registrar#register_engine, this is a default global registrar.
-
.reset_engine_registrations! ⇒ Object
Mostly just used for testing.
- .set_defaults(hash) ⇒ Object
Class Method Details
.defaults ⇒ Object
59 60 61 |
# File 'lib/bento_search.rb', line 59 def self.defaults @@defaults end |
.get_engine(id) ⇒ Object
38 39 40 |
# File 'lib/bento_search.rb', line 38 def self.get_engine(id) global_registrar.get_engine(id) end |
.global_registrar ⇒ Object
28 29 30 |
# File 'lib/bento_search.rb', line 28 def self.global_registrar @@global_registrar ||= BentoSearch::Registrar.new end |
.register_engine(id, data = nil, &block) ⇒ Object
See BentoSearch::Registrar#register_engine, this is a default global registrar.
34 35 36 |
# File 'lib/bento_search.rb', line 34 def self.register_engine(id, data = nil, &block) global_registrar.register_engine(id, data, &block) end |
.reset_engine_registrations! ⇒ Object
Mostly just used for testing
43 44 45 |
# File 'lib/bento_search.rb', line 43 def self.reset_engine_registrations! global_registrar.reset_engine_registrations! end |
.set_defaults(hash) ⇒ Object
56 57 58 |
# File 'lib/bento_search.rb', line 56 def self.set_defaults(hash) @@defaults.merge!(hash) end |