-
Notifications
You must be signed in to change notification settings - Fork 500
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
publication date appears in the citation #5729
Comments
@MohanaPriyaNarapareddy thanks for the feedback! Yes, this is possible and documented at http://guides.dataverse.org/en/4.12/api/native-api.html#set-citation-date-field-for-a-dataset See also the "Dates in citation" thread at https://groups.google.com/d/msg/dataverse-community/neijtUjq8fk/Svxl8A_DAwAJ If you have any trouble, please let us know because that would be an indication that our documentation should be improved! Thanks! |
@pdurbin Thanks for the reply. I tried the above command but, I am getting an error that endpoint doesn't exist. The following is my URL. I replaced $SERVER with localhost:8080 and $ID with doi:10.7937/k9/tcia.2016.5di84js8. |
It's confusing. Can you please try something like... http://localhost:8080/api/datasets/12345/citationdate?key=5bbeb877-6c74-4131-8144-fbcaa128344a ... where your replace 12345 with the database id of your dataset? You can see the database id in the URL when you go to edit dataset permissions. "159" in this screenshot: |
@pdurbin |
Ah, that's coming from here:
You have to pass it which field you want to use for the date. It's not a complete There's a bit of a clue here: #2606 (comment) |
This worked for me:
(It's ok to share my API token here because it's a dev server on my laptop.) @MohanaPriyaNarapareddy can you please give this a try? Definition of done for this issue is to document this better, obviously. In the docs we should also include a list of date fields you can use. |
The command works. Thanks for the reply. I can now see the production date in the citation. But, Is there any way that I can edit the publication date or hide the publication date? |
@MohanaPriyaNarapareddy can you please upload a screenshot to this issue? I'm not sure I understand what you're seeing. Thanks! |
I want to edit or hide the publication date which appears in the picture. |
@MohanaPriyaNarapareddy I'm sorry but there is no way to hide Publication Date (or any metadata field) from the Metadata tab (or from the JSON and XML that comes out of "Export Metadata"). If you really want to change it, you will have to directly edit the database... but we never recommend this. Publication Date is not something you can edit. It is a timestamp from when you click "Publish". |
Thanks for your reply. |
@MohanaPriyaNarapareddy you're welcome. Would you like to make a pull request to improve the documentation? Here's the somewhat confusing documentation you were looking at: https://github.com/IQSS/dataverse/blob/v4.12/doc/sphinx-guides/source/api/native-api.rst#set-citation-date-field-for-a-dataset |
@pdurbin: @MohanaPriyaNarapareddy and our team were looking at the Publication Year, on the main Dataverse landing page — dataverse.cancerimagingarchive.net Is there a way for us to show the creation date on the main landing page? Otherwise, we will start showing a mass creation in 2019 and give the impression that no data was created pre-2019. |
@sharmaashish hi! The only way I can think to fix this problem now that you seem to be in production is to hack on the "publicationdate" column of the "dvobject" table (highlighted in blue in the screenshot from http://phoenix.dataverse.org/schemaspy/latest/tables/dvobject.html below), followed by some reindexing: http://guides.dataverse.org/en/4.14/admin/solr-search-index.html I hate suggesting database hacks like this so if you would like an API for this, please open a new issue. Also, are you interested in adding https://dataverse.cancerimagingarchive.net to the map at https://dataverse.org and the metrics page at https://dataverse.org/metrics ? I hope so! The procedure is to email our support address, as explained at http://guides.dataverse.org/en/4.14/installation/config.html#putting-your-dataverse-installation-on-the-map-at-dataverse-org |
@sharmaashish when you write "Publication Year on the main Dataverse landing page," you mean the year in the dataset search cards that's below the dataset title, right? So for the dataset in the screenshot above, you'd want to show 2018, which is what's in that dataset's Production Date field. When you Sort the results by "Newest," what's being used to sort is the date that the most recent major version of the dataset was published in the Dataverse installation (or if the dataset isn't published yet, the date that the dataset was created in the Dataverse installation ). @pdurbin, would this database hack affect that Sort order, too? |
@pdurbin |
@pdurbin Once this goes live (we just imported 4 or 5 datasets for our testing), we will email support and request that it be listed on the dataverse map. |
@sharmaashish if you want this, please create an issue for this. Are you saying you'd want something like a "Creation Year" facet like in the screenshot below?
Fantastic! @jggautier I'll swing by your office and explain. 😄 |
Yes!!! How do I get this Creation Year? A new issue request, or a hidden tweak? |
@sharmaashish a new issue request, please. 😄 That was just me hacking on https://demo.dataverse.org using a Chrome extension called VisBug: https://github.com/GoogleChromeLabs/ProjectVisBug Here's VisBug in action: |
@sharmaashish thanks for creating this related issue: @MohanaPriyaNarapareddy are you all set? Can we close this? |
I imported a dataset from datacite to dataverse. The import was working fine but the problem comes with the publication date in the metadata. My production date was 2016. But the publication date is 2019, and the publication date appears in the citation. Is there any way that I can edit the publication date and give my custom date? I want my production date to appear in the citation.
The text was updated successfully, but these errors were encountered: