Open etj opened 2 days ago
I do not understand why the publication and revision also should set other fields. Did I misunderstand your post?
Why should the creation and revision date be set to the publication date? For me this seems semantically incorrect.
The ResourceBase model at the moment handles the two date fields (related to data, not to metadata):
date
date_type
(creation|revision|publication)Since CSW ISO AP defines "CreationDate", "RevisionDate", "PublicationDate" as queriables, we may replace the fields
date
anddate_type
with:csw_data_creation_date
csw_data_revision_date
csw_data_publication_date
where
csw
because they are only used in CSW outputdata
because they refer to data, and not to the metadata document (there are other fields for that purpose)The migration should populate the new fields using the
date
anddate_type
fields:date_type=='creation'
csw_data_creation_date
=date
date_type=='revision'
csw_data_creation_date
=date
csw_data_revision_date
=date
date_type=='publication'
csw_data_creation_date
=date
csw_data_revision_date
=date
csw_data_publication_date
=date
Once the migrations are done,