From f301c833cf0eeb395236587530fbbc274e124833 Mon Sep 17 00:00:00 2001 From: Jared Whiklo Date: Mon, 26 Aug 2019 12:49:40 -0500 Subject: [PATCH] Define a filesize attribute to be persisted (#156) --- islandora.module | 1 + .../config/install/rdf.mapping.media.audio.yml | 3 +++ .../config/install/rdf.mapping.media.file.yml | 3 +++ .../config/install/rdf.mapping.media.image.yml | 3 +++ .../config/install/rdf.mapping.media.video.yml | 3 +++ 5 files changed, 13 insertions(+) diff --git a/islandora.module b/islandora.module index 183adabc..38a83757 100644 --- a/islandora.module +++ b/islandora.module @@ -60,6 +60,7 @@ function islandora_rdf_namespaces() { 'pcdm' => 'http://pcdm.org/models#', 'use' => 'http://pcdm.org/use#', 'iana' => 'http://www.iana.org/assignments/relation/', + 'premis' => 'http://www.loc.gov/premis/rdf/v1#', ]; } diff --git a/modules/islandora_core_feature/config/install/rdf.mapping.media.audio.yml b/modules/islandora_core_feature/config/install/rdf.mapping.media.audio.yml index 6fb8df40..bd2f291c 100644 --- a/modules/islandora_core_feature/config/install/rdf.mapping.media.audio.yml +++ b/modules/islandora_core_feature/config/install/rdf.mapping.media.audio.yml @@ -43,3 +43,6 @@ fieldMappings: properties: - 'schema:additionalType' mapping_type: rel + field_file_size: + properties: + - 'premis:hasSize' diff --git a/modules/islandora_core_feature/config/install/rdf.mapping.media.file.yml b/modules/islandora_core_feature/config/install/rdf.mapping.media.file.yml index e298c2db..84d72d80 100644 --- a/modules/islandora_core_feature/config/install/rdf.mapping.media.file.yml +++ b/modules/islandora_core_feature/config/install/rdf.mapping.media.file.yml @@ -43,3 +43,6 @@ fieldMappings: properties: - 'schema:additionalType' mapping_type: rel + field_file_size: + properties: + - 'premis:hasSize' diff --git a/modules/islandora_core_feature/config/install/rdf.mapping.media.image.yml b/modules/islandora_core_feature/config/install/rdf.mapping.media.image.yml index 3cc7a2ee..a4f71607 100644 --- a/modules/islandora_core_feature/config/install/rdf.mapping.media.image.yml +++ b/modules/islandora_core_feature/config/install/rdf.mapping.media.image.yml @@ -49,3 +49,6 @@ fieldMappings: field_height: properties: - 'ebucore:height' + field_file_size: + properties: + - 'premis:hasSize' diff --git a/modules/islandora_core_feature/config/install/rdf.mapping.media.video.yml b/modules/islandora_core_feature/config/install/rdf.mapping.media.video.yml index c70bc50d..2cb8c47c 100644 --- a/modules/islandora_core_feature/config/install/rdf.mapping.media.video.yml +++ b/modules/islandora_core_feature/config/install/rdf.mapping.media.video.yml @@ -43,3 +43,6 @@ fieldMappings: properties: - 'schema:additionalType' mapping_type: rel + field_file_size: + properties: + - 'premis:hasSize'