-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #318 from scientist-softserv/rails_hyrax_upgrade
Rails hyrax upgrade
- Loading branch information
Showing
10 changed files
with
167 additions
and
13 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
# OVERRIDE Hyrax v5.0.0rc2 to add schemas that are located in config/metadata/*.yaml | ||
|
||
module IiifPrint | ||
module SimpleSchemaLoaderDecorator | ||
def config_search_paths | ||
super + [IiifPrint::Engine.root] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
attributes: | ||
is_child: | ||
type: bool | ||
multiple: false | ||
index_keys: | ||
- "is_child_bsi" | ||
form: | ||
required: false | ||
primary: false | ||
multiple: false | ||
predicate: "http://id.loc.gov/vocabulary/identifiers/isChild" | ||
split_from_pdf_id: | ||
type: string | ||
multiple: false | ||
index_keys: | ||
- "split_from_pdf_id_ssi" | ||
form: | ||
required: false | ||
primary: false | ||
multiple: false | ||
predicate: "http://id.loc.gov/vocabulary/identifiers/splitFromPdfId" |
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
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
15 changes: 15 additions & 0 deletions
15
spec/services/iiif_print/simple_schema_loader_decorator_spec.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
RSpec.describe Hyrax::SimpleSchemaLoader do | ||
subject(:instance) { described_class.new } | ||
|
||
context '#config_search_paths' do | ||
subject { instance.config_search_paths } | ||
|
||
# Would it make sense for IiifPrint::Engine to come before Hyrax::Engine? As IiifPrint depends | ||
# on Hyrax. | ||
it { is_expected.to match_array([Rails.root, Hyrax::Engine.root, IiifPrint::Engine.root]) } | ||
end | ||
end |