Fix revision metadata redundancy in deposit metadata
In the IPOL deposit and all deposits since the 10th of December 2019 we have a property called extrinsic
containing the copy of metadata that should be sent to origin_metadata
table.
- delete this property in the revision metadata
- check that the metadata is still sent to the
origin_metadata
table
Here is the example:
}
"@xmlns": "http://www.w3.org/2005/Atom",
"@xmlns:codemeta": "https://doi.org/10.5063/SCHEMA/CODEMETA-2.0",
"author": "Jose-Luis Lisani",
"codemeta:applicationCategory": "Image Processing On Line (IPOL)",
"codemeta:dateCreated": "2018-11-14",
"codemeta:datePublished": "2018-12-07",
"codemeta:description": "Implementation of Shape Preserving Local Histogram Modification Algorithm",
"codemeta:identifier": "https://doi.org/10.5201/ipol.2018.236",
"codemeta:keywords": [
"contrast enhancement",
"histogram modification",
"local processing"
],
"codemeta:license": {
"codemeta:name": "LGPL-3.0-or-later",
"codemeta:url": "https://spdx.org/licenses/LGPL-3.0-or-later.html"
},
"codemeta:operatingSystem": "Linux",
"codemeta:programmingLanguage": "C++",
"codemeta:referencePublication": {
"codemeta:identifier": "236",
"codemeta:name": "An Analysis and Implementation of the Shape Preserving\nLocal Histogram Modification Algorithm"
},
"codemeta:releaseNotes": "On-line demo available at IPOL webpage",
"codemeta:url": "https://www.ipol.im/pub/art/2018/236/",
"external_identifier": "236",
"extrinsic": {
"provider": "https://deposit.softwareheritage.org/1/private/551/meta/",
"raw": {
"branch_name": "master",
"origin": {
"type": "deposit",
"url": "https://www.ipol.im/87afca27-ebbb-408a-845d-5277b6a92f49"
},
"origin_metadata": {
"metadata": {
"@xmlns": "http://www.w3.org/2005/Atom",
"@xmlns:codemeta": "https://doi.org/10.5063/SCHEMA/CODEMETA-2.0",
"author": "Jose-Luis Lisani",
"codemeta:applicationCategory": "Image Processing On Line (IPOL)",
"codemeta:dateCreated": "2018-11-14",
"codemeta:datePublished": "2018-12-07",
"codemeta:description": "Implementation of Shape Preserving Local Histogram Modification Algorithm",
"codemeta:identifier": "https://doi.org/10.5201/ipol.2018.236",
"codemeta:keywords": [
"contrast enhancement",
"histogram modification",
"local processing"
],
"codemeta:license": {
"codemeta:name": "LGPL-3.0-or-later",
"codemeta:url": "https://spdx.org/licenses/LGPL-3.0-or-later.html"
},
"codemeta:operatingSystem": "Linux",
"codemeta:programmingLanguage": "C++",
"codemeta:referencePublication": {
"codemeta:identifier": "236",
"codemeta:name": "An Analysis and Implementation of the Shape Preserving\nLocal Histogram Modification Algorithm"
},
"codemeta:releaseNotes": "On-line demo available at IPOL webpage",
"codemeta:url": "https://www.ipol.im/pub/art/2018/236/",
"external_identifier": "236",
"title": "mlheIPOL"
},
"provider": {
"metadata": {},
"provider_name": "",
"provider_type": "deposit_client",
"provider_url": "https://www.ipol.im/"
},
"tool": {
"configuration": {
"sword_version": 2
},
"name": "swh-deposit",
"version": "0.0.1"
}
}
},
"when": "2020-04-20T23:16:11.436881+00:00"
},
"original_artifact": [
{
"checksums": {
"sha1": "cdce42697925513b15824f69bd461ec6f3bc9571",
"sha256": "2a261e6b673f09f60185f6fbf874a828d3b5aeee946d38dd2f2bc4d899db0b1a"
},
"filename": "archive.zip",
"length": 661595
}
],
"title": "mlheIPOL"
}
Migrated from T2374 (view on Phabricator)