Sha256: b65cb1ae0e843c9d08a994168dfc3c0268febb5e14e0df284ecad34c43cc2391

Contents?: true

Size: 412 Bytes

Versions: 66

Compression:

Stored size: 412 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

66 entries across 66 versions & 1 rubygems

Version Path
dor-services-6.0.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.32.1 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.32.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.31.1 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.31.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.30.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.29.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.28.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.27.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.26.3 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.26.2 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.26.1 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.26.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.25.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.24.1 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.24.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.23.1 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.23.0 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.22.3 lib/dor/datastreams/datastream_spec_solrizer.rb
dor-services-5.22.2 lib/dor/datastreams/datastream_spec_solrizer.rb