Sha256: c1fa85ed1f758c022bf484f681953685ecc9c7f284053335c84ea7751a5335a3
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
module GeoWorks module SolrDocumentBehavior extend ActiveSupport::Concern include Hyrax::SolrDocumentBehavior # @return [Array<String>] def spatial fetch(Solrizer.solr_name('spatial'), []) end # @return [Array<String>] def temporal fetch(Solrizer.solr_name('temporal'), []) end # @return [String] def issued fetch(Solrizer.solr_name('issued'), nil) end # @return [String] def coverage fetch(Solrizer.solr_name('coverage'), nil) end # @return [String] def provenance name = I18n.t('hyrax.institution_name') raise ArgumentError, "Provenance required in configuration" unless name.present? name end # @return [DateTime] def layer_modified # TODO: `date_modified` isn't working correctly -- it's stored as a string not a date # @see 'https://github.com/projecthydra/curation_concerns/issues/957' dt = first(Solrizer.solr_name('system_modified', :stored_sortable, type: :date)) dt.nil? ? nil : DateTime.parse(dt).utc end # @return [Array<String>] def identifier fetch(Solrizer.solr_name('identifier'), []) end end end
Version data entries
6 entries across 6 versions & 1 rubygems