Browse Source

Fix/schemas (#898)

* 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.
pull/900/head
Adam 2 years ago committed by GitHub
parent
commit
a250c2ac78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 78
      config/schema/islandora.schema.yml
  2. 3
      modules/islandora_audio/config/schema/islandora_audio.schema.yml
  3. 8
      modules/islandora_iiif/config/schema/islandora_iiif.schema.yml
  4. 3
      modules/islandora_video/config/schema/islandora_video.schema.yml

78
config/schema/islandora.schema.yml

@ -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
@ -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

3
modules/islandora_audio/config/schema/islandora_audio.schema.yml

@ -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

8
modules/islandora_iiif/config/schema/islandora_iiif.schema.yml

@ -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

3
modules/islandora_video/config/schema/islandora_video.schema.yml

@ -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

Loading…
Cancel
Save