-
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.
🧹 Add indexing paths for Valkyrie resource
This commit will add indexing paths for Valkyrie resources. The `IiifPrint::SimpleSchemaLoaderDecorator` is introduced here to add the `IiifPrint::Engine.root` path to the schema load path so we can keep the yaml in the gem and not have to copy it over to the host app.
- Loading branch information
Showing
7 changed files
with
136 additions
and
10 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,13 @@ | ||
# frozen_string_literal: true | ||
|
||
# OVERRIDE Hyrax v5.0.0rc2 to add schemas that are located in config/metadata/*.yaml | ||
|
||
module IiifPrint | ||
module SimpleSchemaLoaderDecorator | ||
private | ||
|
||
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