Year in citations of harvested datasets is always current year #8103
Labels
Feature: Harvesting
Feature: Metadata
pm.GREI-d-1.4.1
NIH, yr1, aim4, task1: Resolve OAI-PMH harvesting issues
pm.GREI-d-1.4.2
NIH, yr1, aim4, task2: Create working group on packaging standards
Milestone
I try to setup a harvest client for a generic oai-pmh server, using oai_dc metadata format.
For datasets before 2021, year in the citation text is always 2021:
I found that for a harvested dataset, the date used is the distribution date or harvesting date if undefined:
https://github.com/IQSS/dataverse/blob/develop/src/main/java/edu/harvard/iq/dataverse/DataCitation.java#L714
But this date is not set for an harvested dataset, only the publication date is set
https://github.com/IQSS/dataverse/blob/develop/src/main/resources/db/migration/afterMigrate__1-7256-upsert-referenceData.sql
Ex:
https://dataverse.harvard.edu/dataverse/harvard?q=&fq2=publicationDate%3A%222012%22&fq0=dvObjectType%3A%28datasets%29&fq1=metadataSource%3A%22Harvested%22&types=datasets&sort=dateSort&order=
The text was updated successfully, but these errors were encountered: