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

Dataset : deposit date and the displayed date of a dataset #5206

Closed
rmo-cdsp opened this issue Oct 17, 2018 · 3 comments
Closed

Dataset : deposit date and the displayed date of a dataset #5206

rmo-cdsp opened this issue Oct 17, 2018 · 3 comments

Comments

@rmo-cdsp
Copy link
Contributor

rmo-cdsp commented Oct 17, 2018

Hello,

I have a question about dataset "date". Here is a screen shot of a dataset I created:

1539782870-screenshot-from-2018-10-17-15-23-43

You can see a date, Oct 17, 2018 . To me, it's the deposit date. I want to change it, so I edit the field "Deposit Date" of the dataset:

1539783197-screenshot-from-2018-10-17-15-32-36

But the date of the first picture doesn't change. So, if this date isn't the deposit date of the dataset, what is it ? Or is it related to the fact that it is a draft dataset, and that the deposit date is not updated ?

@mheppler
Copy link
Contributor

I dropped the screenshots right into the comment above. Will review in more detail and come back with some feedback. Sounds like this is related to Updated Dates: Search Results Cards + Versioning #2607.

@pdurbin
Copy link
Member

pdurbin commented Oct 17, 2018

In the XHTML the date comes from dateToDisplayOnCard at https://github.com/IQSS/dataverse/blob/v4.9.4/src/main/webapp/search-include-fragment.xhtml#L522

In the Java, the date is set from

String dateToDisplayOnCard = (String) solrDocument.getFirstValue(SearchFields.RELEASE_OR_CREATE_DATE_SEARCHABLE_TEXT);

at https://github.com/IQSS/dataverse/blob/v4.9.4/src/main/java/edu/harvard/iq/dataverse/search/SearchServiceBean.java#L389

@rmo-cdsp I hope this helps. You might also be interested in the "Creating a better understanding of DV's Dates Fields" thread at https://groups.google.com/d/msg/dataverse-community/n4I-bn1ukyQ/HWnt3FsSAgAJ

@pdurbin
Copy link
Member

pdurbin commented Oct 11, 2022

@rmo-cdsp hi! Did my explanation (from a while ago!) help? Are you all set? Are you still interested in some kind of change or fix or docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants