Skip to content

Commit

Permalink
Fix/schemas (Islandora#898)
Browse files Browse the repository at this point in the history
* Define schemas that should be defined.

Came out of the starter site project, running "config_inspector" flagged
a number of things.

* Avoid the deprecated sequence specification.

* Bad assumption on my part...

... Seeing the name and the module, figured this schema was just
misplaced... Appears that the `islandora_image` thing is indeed in
`islandora` proper.
  • Loading branch information
adam-vessey authored and rosiel committed Dec 14, 2022
1 parent 1192a72 commit 99048e0
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 0 deletions.
78 changes: 78 additions & 0 deletions config/schema/islandora.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ condition.plugin.node_has_term:
logic:
type: string
label: 'Logic (AND or OR)'
tids:
type: sequence
sequence:
type: mapping
mapping:
target_id:
type: integer
label: The target taxonomy term IDs

condition.plugin.node_has_parent:
type: condition.plugin
Expand Down Expand Up @@ -158,6 +166,76 @@ condition.plugin.node_had_namespace:
pid_field:
type: ignore
label: 'PID field'

field.formatter.settings.islandora_image:
type: field.formatter.settings.image
label: 'Islandora image field display format settings'

condition.plugin.islandora_entity_bundle:
type: condition.plugin
mapping:
bundles:
type: sequence
sequence:
type: string

condition.plugin.media_source_mimetype:
type: condition.plugin
mapping:
mimetype:
type: string

reaction.plugin.alter_jsonld_type:
type: islandora.reaction_plugin_with_saved
mapping:
source_field:
type: string

islandora.reaction_plugin_with_saved:
type: reaction.plugin
mapping:
saved:
type: boolean
label: Default config upstream; however, left undefined in the schema.

reaction.plugin.islandora_map_uri_predicate:
type: islandora.reaction_plugin_with_saved
mapping:
drupal_uri_predicate:
type: string

reaction.plugin.view_mode_alter:
type: islandora.reaction_plugin_with_saved
mapping:
mode:
type: string
label: The view mode to which to switch

islandora.reaction.actions:
type: islandora.reaction_plugin_with_saved
mapping:
actions:
type: sequence
sequence:
type: string

reaction.plugin.index:
type: islandora.reaction.actions

reaction.plugin.delete:
type: islandora.reaction.actions

reaction.plugin.derivative:
type: islandora.reaction.actions

field.widget.settings.media_track:
type: field.widget.settings.file_generic

field.field_settings.media_track:
type: field.field_settings.file
mapping:
languages:
type: string

field.storage_settings.media_track:
type: field.storage_settings.file
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ action.configuration.generate_audio_derivative:
path:
type: text
label: 'File path with extension'

field.formatter.settings.islandora_file_audio:
type: field.formatter.settings.file_audio
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ islandora_iiif.settings:
iiif_server:
type: string
label: 'IIIF Server Url'

views.style.iiif_manifest:
type: views_style
mapping:
iiif_tile_field:
type: sequence
sequence:
type: string
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ action.configuration.generate_video_derivative:
path:
type: text
label: 'File path with extension'

field.formatter.settings.islandora_file_video:
type: field.formatter.settings.file_video

0 comments on commit 99048e0

Please sign in to comment.