Module: Blacklight::Solr::Document::Marc
- Includes:
- MarcExport
- Defined in:
- app/models/concerns/blacklight/solr/document/marc.rb
Defined Under Namespace
Classes: UnsupportedMarcFormatType
Class Method Summary collapse
Instance Method Summary collapse
-
#to_marc ⇒ Object
ruby-marc object.
Class Method Details
.extended(document) ⇒ Object
27 28 29 30 |
# File 'app/models/concerns/blacklight/solr/document/marc.rb', line 27 def self.extended(document) # Register our exportable formats, we inherit these from MarcExport Blacklight::Solr::Document::MarcExport.register_export_formats( document ) end |
Instance Method Details
#to_marc ⇒ Object
ruby-marc object
33 34 35 |
# File 'app/models/concerns/blacklight/solr/document/marc.rb', line 33 def to_marc @_ruby_marc_obj ||= load_marc end |