Sha256: de89b014ea71c01d5d6c1b01ae032ba3880ccfea19f15c8c689fac180ccefe0e

Contents?: true

Size: 917 Bytes

Versions: 7

Compression:

Stored size: 917 Bytes

Contents

module Blacklight::Marc
  class Engine < Rails::Engine
    rake_tasks do
      load "railties/solr_marc.rake"
    end

    initializer 'blacklight_marc.initialize' do |app|
      Mime::Type.register_alias "text/plain", :refworks_marc_txt
      Mime::Type.register_alias "text/plain", :openurl_kev
      Mime::Type.register "application/x-endnote-refer", :endnote
      Mime::Type.register "application/marc", :marc
      Mime::Type.register "application/marcxml+xml", :marcxml,
      ["application/x-marc+xml", "application/x-marcxml+xml",
       "application/marc+xml"]

       # these are here for backwards compatibility with the old class names,
       # which zeitwerk didn't care for
       config.after_initialize do
         Blacklight::Solr::Document::Marc = Blacklight::Marc::DocumentExtension
         Blacklight::Solr::Document::MarcExport = Blacklight::Marc::DocumentExport
       end
     end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-marc-8.1.4 lib/blacklight/marc/engine.rb
blacklight-marc-8.1.3 lib/blacklight/marc/engine.rb
blacklight-marc-8.1.2 lib/blacklight/marc/engine.rb
blacklight-marc-8.1.1 lib/blacklight/marc/engine.rb
blacklight-marc-8.1.0 lib/blacklight/marc/engine.rb
blacklight-marc-8.0.0 lib/blacklight/marc/engine.rb
blacklight-marc-7.2.0 lib/blacklight/marc/engine.rb