Class: Blacklight::Allmaps::Sidecar

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/blacklight/allmaps/sidecar.rb

Instance Method Summary collapse

Instance Method Details

#set_allmaps_idObject



18
19
20
# File 'app/models/blacklight/allmaps/sidecar.rb', line 18

def set_allmaps_id
  self.allmaps_id = Digest::SHA1.hexdigest(manifest_id)[0..15] if manifest_id.present?
end

#solr_documentObject



14
15
16
# File 'app/models/blacklight/allmaps/sidecar.rb', line 14

def solr_document
  document_type.constantize.find(solr_document_id)
end