-
Notifications
You must be signed in to change notification settings - Fork 493
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
Allow installation to decide if displayoncreate is true or false for metadata fields #6561
Comments
@vbernabe hi! This is controlled by the "displayoncreate" boolean.
Please see http://guides.dataverse.org/en/4.18.1/admin/metadatacustomization.html#datasetfield-field-properties Here's a screenshot of that part of the doc. You can find the "displayoncreate" column here: https://github.com/IQSS/dataverse/blob/v4.18.1/scripts/api/data/metadatablocks/citation.tsv#L3 I hope this helps! |
Hi @pdurbin and @djbrooke, Thanks for your quick response. Is there a way to distinguish if a field is set as "optional" and can be viewed on creation of new dataset or if it will only be displayed after creation of a dataset? This is to avoid confusion, similar fields like - keyword, related publication, notes are showing even if it is set as optional but other fields set as optional for instance on this sample - grant information is not showing up. Or maybe we can also include on the documentation that updating metadata blocks shipped with Dataverse will not automatically be shown to the creation of new dataset? I was thinking that I don't need to do custom metadata and can customize based on Dataverse web interface as suggested on the introduction of the documentation http://guides.dataverse.org/en/4.18.1/admin/metadatacustomization.html#id14 For now though I will do custom metadata update as you suggested :) |
@vbernabe right. Ideally, we don't want anyone to have to customize citation.tsv and other metadata blocks we ship with Dataverse. It's common in our release notes that we ask installations to reload citation.tsv, for example. I'm reopening it because I think there is a usability problem here. I don't have all the answers, unfortunately. Have you looked into dataset templates? http://guides.dataverse.org/en/4.19/user/dataverse-management.html#dataset-templates . I forget if they interact with |
@pdurbin Unfortunately using the Dataset Templates doesn't show the optional fields on creation too. I did the custom metadata route, setting the "displayoncreate" for "grant information" and it now shows up on create Dataset. |
@vbernabe cool but what if afterwards you reload the citation.tsv file from a Dataverse release? Does it undo your changes? Here's an example of a Dataverse release that indicates to reload the citation.tsv file: https://github.com/IQSS/dataverse/releases/tag/v4.18 |
@pdurbin yes it will undo my changes if I reload a new citation.tsv file. I need to make sure that the changes I have is applied to the updated citation.tsv before I reload it. It will be better though if there is an feature on the UI to make the optional field available on initial creation of metadata. |
@vbernabe ok, let me make sure I understand your current workflow:
Is that right? Thanks. |
@pdurbin Yes this is correct. |
@vbernabe ok, thanks. That does sound like a pain. I do agree we should make this easier. Expressing funding information is very important and I can understand why you want it on the shorter "create" form for datasets. I guess a fix for you would be to simply make "Grant Information" displayoncreate=true for everybody. We did something similar for "Related Publication" recently in #3838. Or is "Grant Information" just an example? Do you have a lot of fields that you want to be added to the "create" form? |
@pdurbin We have two fields "Grant Information" and "Software" that we show on the create form. It will be great if these will be displayed on create form, these fields are optional so if you make this displayoncreate=true I think it might not be an issue with others - this is just me though, I'm not sure how others will feel if this shows on the create form if they are not using it. Ideally there should be a feature, maybe another checkbox on metadata settings? However, if this will take time to be implemented we are okay either way if we will reload the citation.tsv or making "Grant Information" and "Software" part of the default create form with displayoncreate=true. |
@vbernabe I mean, we are trying to encourage people to deposit code for reproducibility but I'm not sure if we really want "Software" on the create form out of the box or not. Entering funding information is also very important too, but again, we're trying to keep the "create" form somewhat short. As we're discussing, it would be great to allow a "Display on Create" configuration option so that you don't have to do so much hacking on your citation.tsv file. As a workaround I wonder if you or some other developer could write a wrapper script around the "reload" command. Maybe a file on the side called displayOnCreate.txt could have "Grant Information" and "Software" in it. Then the wrapper script would make the changes to the tsv file before loading it. If this sounds reasonable or interesting, you could add it as a use case to the Google doc attached to gdcc/dvcli#1 (heads up to @poikilotherm ). |
@pdurbin @vbernabe I remembered that Phil and I discussed this Your suggestion sounds reasonable @pdurbin but I think we need to think bigger, which is why I created #6700 as a first (baby) step towards salvation of #4451 (thx for linking) and #6030. If this would help you @vbernabe please reach out there. Thanks! |
@vbernabe or you are welcome to join me, @poikilotherm and the gang at https://chat.dataverse.org of course! 😄 |
@vbernabe I just updated the title of this issue. I hope it looks ok. Also, these issues related: |
To focus on the most important features and bugs, we are closing issues created before 2020 (version 5.0) that are not new feature requests with the label 'Type: Feature'. If you created this issue and you feel the team should revisit this decision, please reopen the issue and leave a comment. |
This issue is more or less the same as this newer one: |
Bug Report: Optional Metadata not showing on Dataset Form
Dataverse version: 4.18.1
Glassfish: 4.1
I am trying to update the Metadata to include optional field such as grant information but this is not showing up on the Create Dataset form.
Steps:
Issue below: grant field not showing
If I set the Metadata to Required though it will show up in the form.
Steps:
The text was updated successfully, but these errors were encountered: