-
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
We have hidden metadata when users are using a templetes. #11200
Comments
This is very interesting @alejandratenorio! In your Dataverse installation, does the Subtitle field show up when first creating a dataset or only after editing a dataset that's already been created? Have you or your colleagues changed the citation.tsv file that ships with Dataverse so that for the subtitle field, the displayoncreate is TRUE? I'm wondering if that's related. |
I think this is just because subtitle is not a field that is set to display on create. If you create the dataset and then go to edit metadata further, the subtitle field appears and will have the custom instructions of you're using the template. (tested on ~v6.5). |
Right, I think you'd have to mark Subtitle as "required" to make it show up on the "create" page. There's an open issue to avoid the need to mark a field as "required" to have it show up on the "create" page: |
Hi @jggautier, the subtitle field appears after editing an already created dataset. We have the default citation.tsv. |
Hi @pdurbin, yes we tested that, when Subtitle is marked as "required", it show up on the "create" page. |
Ohhh, I have read, we should set it as true in displayoncreate. |
Yeah. You could technically do either or both, right? I mean:
|
@jggautier Thanks! Now we can see the subtitle metadata when creating the dataset. Something similar happens with a custom metadata block, even when the displayoncreate is set to true, they are not displayed until the dataset edit page. Has this happened to you? |
Hmmm, I've also helped work on new metadata blocks with certain fields whose displayoncreate is set to true, and those fields are displayed on the "create" page like we would expect. When those fields aren't displayed on the "create" page, that sounds like a bug to me. In your case, are the fields where displayoncreate is set to true not being displayed on the "create" page even when templates aren't used? I'm wondering if templates has anything to do with this unexpected behavior, too. |
FYI: You might also be seeing #11214? That relates to existing templates after a new block is added. It also describes a work-around. |
Dear @qqmyers, we applied the workaround and now the custom metadata block is being shown |
What steps does it take to reproduce the issue?
As Admin user, choose the metadata fields to use in dataset templates and when adding a dataset, for example subtitle,
![Image](https://private-user-images.githubusercontent.com/31973211/408197932-dcafdb6a-c334-474d-bf37-aad975d465f8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzE0MjAsIm5iZiI6MTczOTQzMTEyMCwicGF0aCI6Ii8zMTk3MzIxMS80MDgxOTc5MzItZGNhZmRiNmEtYzMzNC00NzRkLWJmMzctYWFkOTc1ZDQ2NWY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA3MTg0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwZGMyMzYyNzA0MmJlMjU5MmRlYzc4MmQxYjAwYzljMTU2YmUwZDI0MjA4MDQ1YTJlZWFjMWUyMjU1MGFhZGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.e0h32lVkESbQfHJdFnhWHKqgLPtZCd0nu2j73G2X5SU)
As admin user, we created a template and added custom instructions for subtitle,
![Image](https://private-user-images.githubusercontent.com/31973211/408199143-31218dc1-1482-4620-ab6d-0bd4bd154646.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzE0MjAsIm5iZiI6MTczOTQzMTEyMCwicGF0aCI6Ii8zMTk3MzIxMS80MDgxOTkxNDMtMzEyMThkYzEtMTQ4Mi00NjIwLWFiNmQtMGJkNGJkMTU0NjQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA3MTg0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI5Y2NhYzRmNzlkOWQwN2E5ZjdhOTNiODE2MDk3YzdjNjY2M2RlOTBkM2I3YjEzNTQzOGNiZTA5NTRhNDYyYzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.w0GtqLqdha1DzUdqVUK3nAZUK63PEkR5r5r9gfEhR78)
As contributor user, create a dataset, select the template and subtitle metadata is hidden,
When does this issue occur?
When a contributor user create a dataset using o not a template.
Which page(s) does it occurs on?
Create a dataset
What happens?
When a contributor user create a dataset using o not a template.
To whom does it occur (all users, curators, superusers)?
Each user that has contributor role.
What did you expect to happen?
When creating a dataset, the metadata fields configured for use in dataset templates or in templates should be displayed.
Which version of Dataverse are you using?
6.4
Any related open or closed issues to this bug report?
No
Screenshots:
No matter the issue, screenshots are always welcome.
To add a screenshot, please use one of the following formats and/or methods described here:
Are you thinking about creating a pull request for this issue?
Help is always welcome, is this bug something you or your organization plan to fix?
The text was updated successfully, but these errors were encountered: