diff --git a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/api/DepositRecordSerializer.js b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/api/DepositRecordSerializer.js index 48145f1cd..735441ee4 100644 --- a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/api/DepositRecordSerializer.js +++ b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/api/DepositRecordSerializer.js @@ -323,6 +323,9 @@ export class RDMDepositRecordSerializer extends DepositRecordSerializer { "pids", "ui", "custom_fields", + "created", + "updated", + "revision_id", ]); // FIXME: move logic in a more sophisticated PIDField that allows empty values diff --git a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/api/DepositRecordSerializer.test.js b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/api/DepositRecordSerializer.test.js index 879ca4d03..ac6d32f37 100644 --- a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/api/DepositRecordSerializer.test.js +++ b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/api/DepositRecordSerializer.test.js @@ -368,6 +368,7 @@ describe("RDMDepositRecordSerializer tests", () => { files: false, metadata: false, }, + created: "2020-10-28 18:35:58.113520", expanded: {}, id: "wk205-00878", links: { @@ -496,9 +497,11 @@ describe("RDMDepositRecordSerializer tests", () => { ], version: "v2.0.0", }, + revision_id: 1, ui: { publication_date_l10n: "Sep 28, 2020", }, + updated: "2020-10-28 18:35:58.125222", }; expect(deserializedRecord).toEqual(expectedRecord); });