-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test against a released version of blacklight (#100)
* Test against a released version of blacklight * Update CI test matrix * Get atom spec running again, closes #97 * Remove some unneeded 'require' statements * Appease zeitwerk by moving the document mixins within the blacklight-marc namespace * Remove extensions from view specs Co-authored-by: Jane Sandberg <js7389@princeton.edu>
- Loading branch information
1 parent
0652934
commit be6d8b5
Showing
9 changed files
with
30 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...s/blacklight/solr/document/marc_export.rb → ...ncerns/blacklight/marc/document_export.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
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| | ||
require 'blacklight/solr/document' | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
gem 'blacklight', github: 'projectblacklight/blacklight' | ||
gem "traject", '~>3.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters