Sha256: aad87c3ebb0324c1080d86d9c95144cf473cbf7a46236fc3deaa9c95b76ea7df

Contents?: true

Size: 796 Bytes

Versions: 6

Compression:

Stored size: 796 Bytes

Contents

require "blacklight/marc"
require "rails"

module Blacklight::Marc
  class Engine < Rails::Engine
    config.autoload_paths += %W(
      #{config.root}/app/presenters
      #{config.root}/app/controllers/concerns
      #{config.root}/app/models/concerns
    )

    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"]
     end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
blacklight-marc-6.3.0 lib/blacklight/marc/engine.rb
blacklight-marc-7.0.0.rc1 lib/blacklight/marc/engine.rb
blacklight-marc-6.2.0 lib/blacklight/marc/engine.rb
blacklight-marc-6.1.1 lib/blacklight/marc/engine.rb
blacklight-marc-6.1.0 lib/blacklight/marc/engine.rb
blacklight-marc-6.0.0 lib/blacklight/marc/engine.rb