Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Year in citations of harvested datasets is always current year #8103

Closed
tcoupin opened this issue Sep 22, 2021 · 0 comments · Fixed by #8732
Closed

Year in citations of harvested datasets is always current year #8103

tcoupin opened this issue Sep 22, 2021 · 0 comments · Fixed by #8732
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

Comments

@tcoupin
Copy link
Member

tcoupin commented Sep 22, 2021

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:

image

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=

pdurbin added a commit to tcoupin/dataverse that referenced this issue Jun 2, 2022
pdurbin added a commit to tcoupin/dataverse that referenced this issue Oct 5, 2022
@pdurbin pdurbin added this to the 5.13 milestone Oct 13, 2022
@mreekie mreekie added 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 labels Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants