Class: Qa::LDF::LCNames
- Defined in:
- lib/qa/ldf/authorities/lc_names.rb
Overview
Note:
This uses the search logic from the basic Loc authority that ships
with QA: Qa::Authorities::Loc::GenericAuthority.
A caching LCSH authority.
Constant Summary collapse
- DEFAULT_DATASET_NAME =
:lcnames- NAMESPACE =
'http://id.loc.gov/authorities/names/'.freeze
- LC_SUBAUTHORITY =
'names'.freeze
Constants inherited from Authority
Authority::DEFAULT_CLIENT, Authority::DEFAULT_MAPPER, Authority::DEFAULT_SEARCH_SERVICE
Instance Attribute Summary
Attributes inherited from Authority
Class Method Summary collapse
-
.namespace ⇒ String
The URI namespace associated with this authority.
Instance Method Summary collapse
-
#search_service ⇒ Object
Uses the LC names subauthority as the search provider.
Methods inherited from Authority
#all, #find, for, #graph, #initialize, namespaces, register_namespace, reset_namespaces, #search
Constructor Details
This class inherits a constructor from Qa::LDF::Authority
Class Method Details
.namespace ⇒ String
Returns the URI namespace associated with this authority.
21 22 23 |
# File 'lib/qa/ldf/authorities/lc_names.rb', line 21 def self.namespace NAMESPACE end |
Instance Method Details
#search_service ⇒ Object
Uses the LC names subauthority as the search provider
27 28 29 30 |
# File 'lib/qa/ldf/authorities/lc_names.rb', line 27 def search_service @search_service ||= Qa::Authorities::Loc.(LC_SUBAUTHORITY) end |