Class: SolrEad::Component
- Inherits:
-
Object
- Object
- SolrEad::Component
show all
- Includes:
- OM::XML::Document, OM::XML::TerminologyBasedSolrizer, Formatting
- Defined in:
- lib/solr_ead/component.rb
Constant Summary
Constants included
from Formatting
Formatting::RENDER_ATTRS
Instance Method Summary
collapse
Methods included from Formatting
#ead_to_html, #term_to_html
Instance Method Details
#to_solr(solr_doc = Hash.new) ⇒ Object
72
73
74
75
76
|
# File 'lib/solr_ead/component.rb', line 72
def to_solr(solr_doc = Hash.new)
super(solr_doc)
Solrizer.insert_field(solr_doc, "ref", self.ref.first.strip, :stored_sortable) unless self.ref.blank? || self.ref.first.blank?
solr_doc
end
|