diff --git a/cds/modules/deposit/mappings/deposits/records/videos/video/video-v1.0.0.json b/cds/modules/deposit/mappings/deposits/records/videos/video/video-v1.0.0.json index b8c17d43a..a86164759 100644 --- a/cds/modules/deposit/mappings/deposits/records/videos/video/video-v1.0.0.json +++ b/cds/modules/deposit/mappings/deposits/records/videos/video/video-v1.0.0.json @@ -77,6 +77,137 @@ } } }, + "_digitization": { + "type": "object", + "properties": { + "CERN_ID": { + "type": "string" + }, + "res_ar_fps": { + "type": "string" + }, + "FPS": { + "type": "string" + }, + "resolution": { + "type": "string" + }, + "aspect_ratio": { + "type": "string" + }, + "curated": { + "type": "string" + }, + "curator_name": { + "type": "string" + }, + "curator_title": { + "type": "string" + }, + "curation_date": { + "type": "string" + }, + "curation_time": { + "type": "string" + }, + "curation_quality_control": { + "type": "string" + }, + "curator_category": { + "type": "string" + }, + "curator_split_comment": { + "type": "string" + }, + "curator_split_time": { + "type": "string" + }, + "media_type": { + "type": "string" + }, + "director_info": { + "type": "string" + }, + "picturae_media_quality": { + "type": "string" + }, + "copyright": { + "type": "string" + }, + "quality_control_info": { + "type": "string" + }, + "internal_note": { + "type": "string" + }, + "internal_note_datetime": { + "type": "string" + }, + "epfl_category": { + "type": "string" + }, + "collection": { + "type": "string" + }, + "host_item_entry": { + "type": "string" + }, + "library_report_number": { + "type": "string" + }, + "related_links_info": { + "type": "string" + }, + "physical_media_type": { + "type": "string" + }, + "has_copy": { + "type": "string" + }, + "has_subtitles": { + "type": "string" + }, + "storage_service": { + "type": "string" + }, + "file_size": { + "type": "string" + }, + "record_control_number": { + "type": "string" + }, + "record_id": { + "type": "string" + }, + "format_resolution": { + "type": "string" + }, + "subtitle_extension": { + "type": "string" + }, + "subtitle_path": { + "type": "string" + }, + "subtitle_language": { + "type": "string" + }, + "subtitle_note": { + "type": "string" + }, + "conference_cds_recid": { + "type": "string" + }, + "conference_cds_id": { + "type": "string" + }, + "deleted_cds_records": { + "type": "string" + }, + "additional_files": { + "type": "string" + } + } + }, "_project_id":{ "type": "string" }, diff --git a/cds/modules/deposit/schemas/deposits/records/videos/video/video-v1.0.0.json b/cds/modules/deposit/schemas/deposits/records/videos/video/video-v1.0.0.json index fe4256e88..b5d313574 100644 --- a/cds/modules/deposit/schemas/deposits/records/videos/video/video-v1.0.0.json +++ b/cds/modules/deposit/schemas/deposits/records/videos/video/video-v1.0.0.json @@ -682,6 +682,141 @@ "original_source": { "type": "string" }, + "_digitization": { + "type": "array", + "items": { + "type": "object", + "description": "Field with digitization information for old videos.", + "properties": { + "CERN_ID": { + "type": "string" + }, + "res_ar_fps": { + "type": "string" + }, + "FPS": { + "type": "string" + }, + "resolution": { + "type": "string" + }, + "aspect_ratio": { + "type": "string" + }, + "curated": { + "type": "string" + }, + "curator_name": { + "type": "string" + }, + "curator_title": { + "type": "string" + }, + "curation_date": { + "type": "string" + }, + "curation_time": { + "type": "string" + }, + "curation_quality_control": { + "type": "string" + }, + "curator_category": { + "type": "string" + }, + "curator_split_comment": { + "type": "string" + }, + "curator_split_time": { + "type": "string" + }, + "media_type": { + "type": "string" + }, + "director_info": { + "type": "string" + }, + "picturae_media_quality": { + "type": "string" + }, + "copyright": { + "type": "string" + }, + "quality_control_info": { + "type": "string" + }, + "internal_note": { + "type": "string" + }, + "internal_note_datetime": { + "type": "string" + }, + "epfl_category": { + "type": "string" + }, + "collection": { + "type": "string" + }, + "host_item_entry": { + "type": "string" + }, + "library_report_number": { + "type": "string" + }, + "related_links_info": { + "type": "string" + }, + "physical_media_type": { + "type": "string" + }, + "has_copy": { + "type": "string" + }, + "has_subtitles": { + "type": "string" + }, + "storage_service": { + "type": "string" + }, + "file_size": { + "type": "string" + }, + "record_control_number": { + "type": "string" + }, + "record_id": { + "type": "string" + }, + "format_resolution": { + "type": "string" + }, + "subtitle_extension": { + "type": "string" + }, + "subtitle_path": { + "type": "string" + }, + "subtitle_language": { + "type": "string" + }, + "subtitle_note": { + "type": "string" + }, + "conference_cds_recid": { + "type": "string" + }, + "conference_cds_id": { + "type": "string" + }, + "deleted_cds_records": { + "type": "string" + }, + "additional_files": { + "type": "string" + } + } + } + }, "_project_id": { "type": "string" } diff --git a/cds/modules/records/mappings/records/videos/video/video-v1.0.0.json b/cds/modules/records/mappings/records/videos/video/video-v1.0.0.json index 1f10297f7..b24bcb443 100644 --- a/cds/modules/records/mappings/records/videos/video/video-v1.0.0.json +++ b/cds/modules/records/mappings/records/videos/video/video-v1.0.0.json @@ -29,6 +29,137 @@ "_updated": { "type": "date" }, + "_digitization": { + "type": "object", + "properties": { + "CERN_ID": { + "type": "string" + }, + "res_ar_fps": { + "type": "string" + }, + "FPS": { + "type": "string" + }, + "resolution": { + "type": "string" + }, + "aspect_ratio": { + "type": "string" + }, + "curated": { + "type": "string" + }, + "curator_name": { + "type": "string" + }, + "curator_title": { + "type": "string" + }, + "curation_date": { + "type": "string" + }, + "curation_time": { + "type": "string" + }, + "curation_quality_control": { + "type": "string" + }, + "curator_category": { + "type": "string" + }, + "curator_split_comment": { + "type": "string" + }, + "curator_split_time": { + "type": "string" + }, + "media_type": { + "type": "string" + }, + "director_info": { + "type": "string" + }, + "picturae_media_quality": { + "type": "string" + }, + "copyright": { + "type": "string" + }, + "quality_control_info": { + "type": "string" + }, + "internal_note": { + "type": "string" + }, + "internal_note_datetime": { + "type": "string" + }, + "epfl_category": { + "type": "string" + }, + "collection": { + "type": "string" + }, + "host_item_entry": { + "type": "string" + }, + "library_report_number": { + "type": "string" + }, + "related_links_info": { + "type": "string" + }, + "physical_media_type": { + "type": "string" + }, + "has_copy": { + "type": "string" + }, + "has_subtitles": { + "type": "string" + }, + "storage_service": { + "type": "string" + }, + "file_size": { + "type": "string" + }, + "record_control_number": { + "type": "string" + }, + "record_id": { + "type": "string" + }, + "format_resolution": { + "type": "string" + }, + "subtitle_extension": { + "type": "string" + }, + "subtitle_path": { + "type": "string" + }, + "subtitle_language": { + "type": "string" + }, + "subtitle_note": { + "type": "string" + }, + "conference_cds_recid": { + "type": "string" + }, + "conference_cds_id": { + "type": "string" + }, + "deleted_cds_records": { + "type": "string" + }, + "additional_files": { + "type": "string" + } + } + }, "_project_id":{ "type": "string" }, diff --git a/cds/modules/records/schemas/records/videos/video/video-v1.0.0.json b/cds/modules/records/schemas/records/videos/video/video-v1.0.0.json index 647db46ae..1f47e5b5d 100644 --- a/cds/modules/records/schemas/records/videos/video/video-v1.0.0.json +++ b/cds/modules/records/schemas/records/videos/video/video-v1.0.0.json @@ -622,6 +622,141 @@ "original_source": { "type": "string" }, + "_digitization": { + "type": "array", + "items": { + "type": "object", + "description": "Field with digitization information for old videos.", + "properties": { + "CERN_ID": { + "type": "string" + }, + "res_ar_fps": { + "type": "string" + }, + "FPS": { + "type": "string" + }, + "resolution": { + "type": "string" + }, + "aspect_ratio": { + "type": "string" + }, + "curated": { + "type": "string" + }, + "curator_name": { + "type": "string" + }, + "curator_title": { + "type": "string" + }, + "curation_date": { + "type": "string" + }, + "curation_time": { + "type": "string" + }, + "curation_quality_control": { + "type": "string" + }, + "curator_category": { + "type": "string" + }, + "curator_split_comment": { + "type": "string" + }, + "curator_split_time": { + "type": "string" + }, + "media_type": { + "type": "string" + }, + "director_info": { + "type": "string" + }, + "picturae_media_quality": { + "type": "string" + }, + "copyright": { + "type": "string" + }, + "quality_control_info": { + "type": "string" + }, + "internal_note": { + "type": "string" + }, + "internal_note_datetime": { + "type": "string" + }, + "epfl_category": { + "type": "string" + }, + "collection": { + "type": "string" + }, + "host_item_entry": { + "type": "string" + }, + "library_report_number": { + "type": "string" + }, + "related_links_info": { + "type": "string" + }, + "physical_media_type": { + "type": "string" + }, + "has_copy": { + "type": "string" + }, + "has_subtitles": { + "type": "string" + }, + "storage_service": { + "type": "string" + }, + "file_size": { + "type": "string" + }, + "record_control_number": { + "type": "string" + }, + "record_id": { + "type": "string" + }, + "format_resolution": { + "type": "string" + }, + "subtitle_extension": { + "type": "string" + }, + "subtitle_path": { + "type": "string" + }, + "subtitle_language": { + "type": "string" + }, + "subtitle_note": { + "type": "string" + }, + "conference_cds_recid": { + "type": "string" + }, + "conference_cds_id": { + "type": "string" + }, + "deleted_cds_records": { + "type": "string" + }, + "additional_files": { + "type": "string" + } + } + } + }, "_project_id": { "type": "string" } diff --git a/cds/modules/records/serializers/schemas/video.py b/cds/modules/records/serializers/schemas/video.py index 60d77704a..e957e004f 100644 --- a/cds/modules/records/serializers/schemas/video.py +++ b/cds/modules/records/serializers/schemas/video.py @@ -97,6 +97,51 @@ class PhysicalMediumSchema(StrictKeysSchema): sequence_number = fields.List(fields.Str, many=True) shelf = fields.Str() +class DigitizationSchema(Schema): + """Field digitization.""" + + cern_id = fields.Str() + res_ar_fps = fields.Str() + fps = fields.Str() + resolution = fields.Str() + aspect_ratio = fields.Str() + curated = fields.Str() + curator_name = fields.Str() + curator_title = fields.Str() + curator_date = fields.Str() + curator_time = fields.Str() + curator_quality_control = fields.Str() + curator_category = fields.Str() + curator_split_comment = fields.Str() + curator_split_time = fields.Str() + media_type = fields.Str() + director_info = fields.Str() + picturae_media_quality = fields.Str() + copyright = fields.Str() + quality_control_info = fields.Str() + internal_note = fields.Str() + internal_note_datetime = fields.Str() + epfl_category = fields.Str() + collection = fields.Str() + host_item_entry = fields.Str() + library_report_number = fields.Str() + related_links_info = fields.Str() + physical_media_type = fields.Str() + has_copy = fields.Str() + has_subtitles = fields.Str() + storage_service = fields.Str() + file_size = fields.Str() + record_control_number = fields.Str() + record_id = fields.Str() + format_resolution = fields.Str() + subtitle_extension = fields.Str() + subtitle_path = fields.Str() + subtitle_language = fields.Str() + subtitle_note = fields.Str() + conference_cds_recid = fields.Str() + conference_cds_id = fields.Str() + deleted_cds_records = fields.Str() + additional_files = fields.Str() class VideoSchema(StrictKeysSchema): """Video schema.""" @@ -140,6 +185,7 @@ class VideoSchema(StrictKeysSchema): location = fields.Str() original_source = fields.Str() physical_medium = fields.Nested(PhysicalMediumSchema, many=True) + _digitization = fields.Nested(DigitizationSchema, many=True) @post_load(pass_many=False) def post_load(self, data):