Class: Alexandria::BookProviders::SBNProvider
- Inherits:
-
Z3950Provider
- Object
- AbstractProvider
- Z3950Provider
- Alexandria::BookProviders::SBNProvider
- Includes:
- GetText
- Defined in:
- lib/alexandria/book_providers/sbn_provider.rb
Instance Attribute Summary
Attributes inherited from AbstractProvider
Instance Method Summary collapse
-
#initialize ⇒ SBNProvider
constructor
A new instance of SBNProvider.
- #url(_book) ⇒ Object
Methods inherited from Z3950Provider
#books_from_resultset, #search
Methods included from Logging
Methods inherited from AbstractProvider
#<=>, #abstract?, abstract?, #action_name, #enabled, #reinitialize, #remove, #toggle_enabled, #transport, unabstract, #variable_name
Constructor Details
#initialize ⇒ SBNProvider
Returns a new instance of SBNProvider.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/alexandria/book_providers/sbn_provider.rb', line 20 def initialize super("SBN", "Servizio Bibliotecario Nazionale (Italy)") prefs.variable_named("hostname").default_value = "opac.sbn.it" prefs.variable_named("port").default_value = 3950 prefs.variable_named("database").default_value = "nopac" # supported 'USMARC', 'UNIMARC' , 'SUTRS' prefs.variable_named("record_syntax").default_value = "USMARC" prefs.variable_named("charset").default_value = "ISO-8859-1" prefs.read end |
Instance Method Details
#url(_book) ⇒ Object
31 32 33 |
# File 'lib/alexandria/book_providers/sbn_provider.rb', line 31 def url(_book) nil end |