Module: DatastreamSpecSolrizer

Extended by:
ActiveSupport::Concern
Includes:
SolrDocHelper
Included in:
ActiveFedora::Datastream
Defined in:
lib/dor/datastreams/datastream_spec_solrizer.rb

Instance Method Summary collapse

Methods included from SolrDocHelper

#add_solr_value

Instance Method Details

#datastream_spec_stringObject



7
8
9
10
11
12
13
14
15
# File 'lib/dor/datastreams/datastream_spec_solrizer.rb', line 7

def datastream_spec_string
  s = begin
    controlGroup == 'E' ? content.to_s.length : size
      rescue StandardError
        0
  end
  v = versionID.nil? ? '0' : versionID.to_s.split(/\./).last
  [dsid, controlGroup, mimeType, v, s, label].join('|')
end