Sha256: b5cfb1f0c431b02fa04115c7cc480ab4d64b64f8fc04fea2715e7b4df7583acc

Contents?: true

Size: 407 Bytes

Versions: 8

Compression:

Stored size: 407 Bytes

Contents

module DatastreamSpecSolrizer
  extend ActiveSupport::Concern
  include SolrDocHelper

  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
end

class ActiveFedora::Datastream
  include DatastreamSpecSolrizer
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dor-services-4.25.1 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-4.25.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-4.24.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-4.23.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-4.22.6 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-4.22.5 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-4.22.4 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.2.0 lib/dor/datastreams/datastream_spec_solrizer.rb