We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca6f8ae commit bdfb177Copy full SHA for bdfb177
1 file changed
cds_migrator_kit/transform/dumper.py
@@ -42,7 +42,10 @@ def first_created(self):
42
"""Get first record creation date."""
43
# modification datetime of first revision is the creation date of the whole record
44
# this assumption is based on the hstRECORD dump from invenio-migrator module
45
- return self.data["record"][0]["modification_datetime"]
+ # for older records first revision is not the creation of record
46
+ # so we added creation_date field to dump and it's getting it from bibrec
47
+ # https://github.com/inveniosoftware/invenio-migrator/blob/master/invenio_migrator/legacy/records.py#L216
48
+ return self.data["creation_date"]
49
50
def prepare_revisions(self):
51
"""Prepare revisions."""
0 commit comments