Skip to content

Metadata blocks available to only one collection (and possibly all metadata blocks) are not available when editing dataset templates created before the metadata blocks were added #8704

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

Open
jggautier opened this issue May 17, 2022 · 2 comments

Comments

@jggautier
Copy link
Contributor

jggautier commented May 17, 2022

What steps does it take to reproduce the issue?

  • When does this issue occur?
    When editing a dataset metadata template that was created before the metadata block was made available to the collection.

  • Which page(s) does it occurs on?
    On the page where you can edit the metadata of a template that was created before the metadata block was added to the collection (From the Dataverse collection page, click Edit > Dataset Templates > Metadata)

  • What happens?
    Metadata blocks that were added after the dataset metadata template was created are not there when editing the dataset metadata template.

    And if the template is the collection's default template, when depositors create a dataset, the accordion for the metadata block appears empty when the accordion is open (see screenshot below).

  • To whom does it occur (all users, curators, superusers)?
    Superusers, anyone editing the Dataverse collection

  • What did you expect to happen?
    The new metadata block appears in the metadata template

Which version of Dataverse are you using?
v5.10.1

Any related open or closed issues to this bug report?
None that I could find

Screenshots:
Because the template that was created before the metadata block was added is the default template for the collection, when depositors create a dataset, the accordion for the metadata block is empty when its open:

Screen Shot 2022-05-16 at 8 07 07 PM

When I choose another template or "None" from the Dataset Template dropdown menu, the new metadata block appears.

@jggautier jggautier changed the title Metadatablocks available to only one collection (e.g. "custom" metadatablocks", and possibly all metadatablocks) are not available when editing dataset templates created before the metadatablocks were added Metadatablocks available to only one collection (and possibly all metadatablocks) are not available when editing dataset templates created before the metadatablocks were added May 17, 2022
@jggautier
Copy link
Contributor Author

jggautier commented May 17, 2022

After the new "Computational Workflow" metadata block is added (#8639), those who may want to include that metadata block's fields in dataset metadata templates that were already created may not be able to.

@jggautier
Copy link
Contributor Author

jggautier commented Jun 9, 2022

For the Dataverse Collection in the screenshots, I created a new dataset template; copied the metadata values from the older template to the new one; saved the new template and made it the collection's default template; and deleted the older template. So now when datasets are created in the collection, the new default template, which includes the custom metadata block, is being used instead, and the custom metadata block appears with its required fields, instead of appearing empty.

Before creating a new template and copying the metadata values from the old template to the new one, I tried using the button for copying the dataset template, but the custom metadata block also was not in that copy. So I had to re-create the dataset template "manually".

So the larger issue - that when a metadata block is added, it's not available in any dataset templates created before the metadata block was added - no longer affects the collection in the screenshot. I consider re-creating the template to be a workaround.

But I still think it can be a problem, since other new metadata blocks, such as the "Computational Workflow" metadata block, won't be available in dataset templates created before the metadata block was added.

@jggautier jggautier changed the title Metadatablocks available to only one collection (and possibly all metadatablocks) are not available when editing dataset templates created before the metadatablocks were added Metadata blocks available to only one collection (and possibly all metadata blocks) are not available when editing dataset templates created before the metadata blocks were added Jun 20, 2022
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

1 participant