Skip to content

Model: refact data/datetype fields #12659

@etj

Description

@etj

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 and date_type with:

  • csw_data_creation_date
  • csw_data_revision_date
  • csw_data_publication_date

where

  • csw because they are only used in CSW output
  • data 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 and date_type fields:

  • if date_type=='creation' --> set csw_data_creation_date = date
  • if date_type=='revision' --> set csw_data_revision_date = date
  • if date_type=='publication' --> set csw_data_publication_date = date

Once the migrations are done,

  • change the pyCSW mappings to point to the new fields
  • change the ISO XML template to use the new fields

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions