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


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

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