Skip to content

Commit

Permalink
Add Mirador display for Paged Content.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxp committed Oct 9, 2023
1 parent 0bbfd8e commit 7bc7728
Show file tree
Hide file tree
Showing 44 changed files with 915 additions and 381 deletions.
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
"drupal/views_field_view": "^1.0@beta",
"drush/drush": "^12",
"islandora-rdm/islandora_fits": "dev-8.x-1.x as 1.x-dev",
"islandora/islandora": "2.9.0",
"islandora/islandora_mirador": "^2",
"islandora/views_nested_details": "^1.0",
"library/pdf.js": "^2.4",
"mjordan/islandora_workbench_integration": "dev-main"
Expand Down
870 changes: 550 additions & 320 deletions composer.lock

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions config/sync/context.context.mirador_block_multipaged_items.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
uuid: be55e789-c89e-4ac1-b0e4-fe7edf69b62c
langcode: en
status: true
dependencies:
module:
- islandora
- islandora_mirador
_core:
default_config_hash: sN9l77XqTzoy1x5fp1O7v91Di5_6iCx9prNHDvGYrKo
label: 'Mirador Block - Multipaged items'
name: mirador_block_multipaged_items
group: Display
description: 'If Paged Content or Publication Issue, display Mirador from manifest.'
requireAllConditions: false
disabled: false
conditions:
node_has_term:
id: node_has_term
negate: false
uuid: e5689bd5-7eec-4378-b329-2f35d5bb35b0
context_mapping:
node: '@node.node_route_context:node'
uri: 'https://schema.org/Book,https://schema.org/PublicationIssue'
logic: or
reactions:
blocks:
id: blocks
uuid: 50b9b25e-0836-4531-8a78-9698d71d81de
blocks:
f775e013-2400-48d4-a736-91890141dea3:
uuid: f775e013-2400-48d4-a736-91890141dea3
id: mirador_block
label: 'Mirador block'
provider: islandora_mirador
label_display: '0'
region: content_above
weight: '0'
custom_id: mirador_block
theme: olivero
css_class: ''
unique: 0
context_id: mirador_block_multipaged_items
context_mapping: { }
iiif_manifest_url: 'https://islandora.traefik.me/node/[node:nid]/book-manifest-original'
third_party_settings: { }
include_default_blocks: 1
saved: false
weight: -8
2 changes: 1 addition & 1 deletion config/sync/context.context.openseadragon_block.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name: openseadragon_block
group: Display
description: 'If Paged Content or Publication Issue, display Openseadragon from manifest.'
requireAllConditions: false
disabled: false
disabled: true
conditions:
node_has_term:
id: node_has_term
Expand Down
16 changes: 16 additions & 0 deletions config/sync/core.entity_form_display.media.file.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ status: true
dependencies:
config:
- field.field.media.file.field_file_size
- field.field.media.file.field_height
- field.field.media.file.field_media_file
- field.field.media.file.field_media_of
- field.field.media.file.field_media_use
- field.field.media.file.field_mime_type
- field.field.media.file.field_original_name
- field.field.media.file.field_width
- media.type.file
module:
- file
Expand All @@ -26,6 +28,13 @@ content:
region: content
settings: { }
third_party_settings: { }
field_height:
type: number
weight: 27
region: content
settings:
placeholder: ''
third_party_settings: { }
field_media_file:
type: file_generic
weight: 1
Expand Down Expand Up @@ -56,6 +65,13 @@ content:
rows: 5
placeholder: ''
third_party_settings: { }
field_width:
type: number
weight: 28
region: content
settings:
placeholder: ''
third_party_settings: { }
name:
type: string_textfield
weight: 0
Expand Down
20 changes: 20 additions & 0 deletions config/sync/core.entity_view_display.media.file.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ status: true
dependencies:
config:
- field.field.media.file.field_file_size
- field.field.media.file.field_height
- field.field.media.file.field_media_file
- field.field.media.file.field_media_of
- field.field.media.file.field_media_use
- field.field.media.file.field_mime_type
- field.field.media.file.field_original_name
- field.field.media.file.field_width
- media.type.file
module:
- file
Expand All @@ -33,6 +35,15 @@ content:
third_party_settings: { }
weight: 6
region: content
field_height:
type: number_integer
label: above
settings:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
weight: 5
region: content
field_media_file:
type: file_default
label: visually_hidden
Expand Down Expand Up @@ -72,6 +83,15 @@ content:
third_party_settings: { }
weight: 7
region: content
field_width:
type: number_integer
label: above
settings:
thousand_separator: ''
prefix_suffix: true
third_party_settings: { }
weight: 4
region: content
name:
type: string
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ dependencies:
config:
- core.entity_view_mode.media.file_download
- field.field.media.file.field_file_size
- field.field.media.file.field_height
- field.field.media.file.field_media_file
- field.field.media.file.field_media_of
- field.field.media.file.field_media_use
- field.field.media.file.field_mime_type
- field.field.media.file.field_original_name
- field.field.media.file.field_width
- media.type.file
module:
- filehash
Expand All @@ -33,10 +35,12 @@ hidden:
created: true
field_file_size: true
field_gemini_uri: true
field_height: true
field_media_of: true
field_media_use: true
field_mime_type: true
field_original_name: true
field_width: true
langcode: true
name: true
search_api_excerpt: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ dependencies:
config:
- core.entity_view_mode.media.open_seadragon
- field.field.media.file.field_file_size
- field.field.media.file.field_height
- field.field.media.file.field_media_file
- field.field.media.file.field_media_of
- field.field.media.file.field_media_use
- field.field.media.file.field_mime_type
- field.field.media.file.field_original_name
- field.field.media.file.field_width
- media.type.file
module:
- openseadragon
Expand All @@ -31,10 +33,12 @@ hidden:
created: true
field_file_size: true
field_gemini_uri: true
field_height: true
field_media_of: true
field_media_use: true
field_mime_type: true
field_original_name: true
field_width: true
langcode: true
name: true
search_api_excerpt: true
Expand Down
4 changes: 4 additions & 0 deletions config/sync/core.entity_view_display.media.file.pdfjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ dependencies:
config:
- core.entity_view_mode.media.pdfjs
- field.field.media.file.field_file_size
- field.field.media.file.field_height
- field.field.media.file.field_media_file
- field.field.media.file.field_media_of
- field.field.media.file.field_media_use
- field.field.media.file.field_mime_type
- field.field.media.file.field_original_name
- field.field.media.file.field_width
- media.type.file
module:
- pdf
Expand Down Expand Up @@ -38,10 +40,12 @@ hidden:
created: true
field_file_size: true
field_gemini_uri: true
field_height: true
field_media_of: true
field_media_use: true
field_mime_type: true
field_original_name: true
field_width: true
langcode: true
name: true
search_api_excerpt: true
Expand Down
4 changes: 4 additions & 0 deletions config/sync/core.entity_view_display.media.file.source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ dependencies:
config:
- core.entity_view_mode.media.source
- field.field.media.file.field_file_size
- field.field.media.file.field_height
- field.field.media.file.field_media_file
- field.field.media.file.field_media_of
- field.field.media.file.field_media_use
- field.field.media.file.field_mime_type
- field.field.media.file.field_original_name
- field.field.media.file.field_width
- media.type.file
module:
- file
Expand All @@ -32,10 +34,12 @@ hidden:
created: true
field_file_size: true
field_gemini_uri: true
field_height: true
field_media_of: true
field_media_use: true
field_mime_type: true
field_original_name: true
field_width: true
langcode: true
name: true
search_api_excerpt: true
Expand Down
1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module:
islandora_fits: 0
islandora_iiif: 0
islandora_image: 0
islandora_mirador: 0
islandora_text_extraction: 0
islandora_text_extraction_defaults: 0
islandora_video: 0
Expand Down
23 changes: 23 additions & 0 deletions config/sync/field.field.media.file.field_height.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 4f36371c-456f-48d2-809a-d2c7429a5e3f
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_height
- media.type.file
id: media.file.field_height
field_name: field_height
entity_type: media
bundle: file
label: Height
description: 'For TIFF and JPEG2000 files, populated by the IIIF manifest generator as a performance improvement.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: integer
23 changes: 23 additions & 0 deletions config/sync/field.field.media.file.field_width.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 50207121-ebf2-4493-8805-37e17cdce400
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_width
- media.type.file
id: media.file.field_width
field_name: field_width
entity_type: media
bundle: file
label: Width
description: 'For TIFF and JPEG2000 files, populated by the IIIF manifest generator as a performance improvement.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
min: null
max: null
prefix: ''
suffix: ''
field_type: integer
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ id: node.islandora_object.field_linked_agent
field_name: field_linked_agent
entity_type: node
bundle: islandora_object
label: 'Contributors'
label: Contributors
description: "Names of entities having some relationship to the resource, and, optionally, the relationship to the resource. If a relationship is not specified, it will be recorded as <a href=\"https://id.loc.gov/vocabulary/relators/asn.html\">Associated Name</a> in the system's linked data representation. <br /> \r\n<em>Publisher/manufacturer/distributor/etc. name is recorded here, with the appropriate relationship specified.</em><br />\r\nThis field does not allow creating names of entities on the fly. First create a <a href=\"/admin/structure/taxonomy/manage/person/add\" target=\"_blank\">person</a>, <a href=\"/admin/structure/taxonomy/manage/family/add\" target=\"_blank\">family</a>, or <a href=\"/admin/structure/taxonomy/manage/corporate_body/add\" target=\"_blank\">corporate body</a>, then link it here."
required: false
translatable: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
settings:
allowed_formats: { }
field_type: text_long
4 changes: 4 additions & 0 deletions config/sync/field.storage.media.field_height.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ langcode: en
status: true
dependencies:
module:
- field_permissions
- media
third_party_settings:
field_permissions:
permission_type: public
_core:
default_config_hash: Px3XXVJbHRnXONsekdr0c4_ZbfiwtElQTJbtR-zwsm8
id: media.field_height
Expand Down
4 changes: 4 additions & 0 deletions config/sync/field.storage.media.field_width.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ langcode: en
status: true
dependencies:
module:
- field_permissions
- media
third_party_settings:
field_permissions:
permission_type: public
_core:
default_config_hash: zL-l_IiMrXgUkI928ssjw2n77FjbeVqehzdJ9_koIYk
id: media.field_width
Expand Down
1 change: 1 addition & 0 deletions config/sync/filehash.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ rehash: true
original: true
dedupe_original: false
mime_types: { }
autohash: true
3 changes: 2 additions & 1 deletion config/sync/islandora.settings.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_core:
default_config_hash: XgeYJpPmZIOwE_nA73tYvFw-Rcj-HtlbNwfktqSVsaQ
broker_url: 'tcp://127.0.0.1:61613'
broker_url: 'tcp://activemq:61613'
jwt_expiry: '+2 hour'
delete_media_and_files: true
upload_form_location: ''
Expand All @@ -12,3 +12,4 @@ gemini_pseudo_bundles:
'file:media': 'file:media'
'image:media': 'image:media'
'video:media': 'video:media'
redirect_after_media_save: false
2 changes: 1 addition & 1 deletion config/sync/islandora_iiif.settings.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
_core:
default_config_hash: NCzOnzkSw_H5SbPJb-EOzzJby1pQ8JI6IzZJckM7WOU
iiif_server: 'http://127.0.0.1:8080/cantaloupe/iiif/2'
iiif_server: 'https://islandora.traefik.me/cantaloupe/iiif/2'
5 changes: 5 additions & 0 deletions config/sync/islandora_mirador.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_core:
default_config_hash: RsKIO31yeik-a4E2kCPBe8ZXFnrwVeZRNaIps0KDHC8
mirador_library_installation_type: remote
mirador_enabled_plugins: { }
iiif_manifest_url: '[node:url:unaliased:absolute]/manifest'
2 changes: 1 addition & 1 deletion config/sync/key.key.islandora_rsa_key.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ key_type_settings:
algorithm: RS256
key_provider: file
key_provider_settings:
file_location: /opt/islandora/auth/private.key
file_location: /opt/keys/jwt/private.key
key_input: none
key_input_settings: { }
Loading

0 comments on commit 7bc7728

Please sign in to comment.