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

LIBFCREPO-1460. Fix "ControlledURIRef" delete when "Repeatable" #435

Merged

Conversation

dsteelma-umd
Copy link
Contributor

In LIBHYDRA-356, a "componentWillUnmount" method was added to the React
components to support deletion when used with the "Repeatable" React
component. The "ControlledURIRef" component apparently missed in the
update.

Added the "componentWillUnmount" to fix the issue with deleting entries
when the "ControlledURIRef" component is used with a "Repeatable" React
component.

https://umd-dit.atlassian.net/browse/LIBFCREPO-1460

Added an optional "edit_only" field to the content model definition to
enable specific fields, such as "Presentation Set" to not be displayed
on the item detail page.

This is needed because otherwise the "Presentation Set" field would be
shown twice on the item detail page -- once for the Solr-based field
specified in the “app/controllers/catalog_controller.rb” configuration
and once for the Fedora-based field specified in the
“config/content_models.yml” file.

Based on June 26, 2024 WebEx discussions in the “Fedora” channel with
Josh Westgard, the preference is to display the Solr field on the
item detail page because:

> ... that way we know that the update has "stuck" all the way through
> the stack. So even though there is a delay associated with making
> such a change, in the long run this is better for display in Archelon.

Modified the "_show_default.html.erb" file to skip display of any fields
where the "edit_only" field is true.

Updated the "ContentModelDefinitions.md" documentation.

https://umd-dit.atlassian.net/browse/LIBFCREPO-1458
In LIBHYDRA-356, a "componentWillUnmount" method was added to the React
components to support deletion when used with the "Repeatable" React
component. The "ControlledURIRef" component apparently missed in the
update.

Added the "componentWillUnmount" to fix the issue with deleting entries
when the "ControlledURIRef" component is used with a "Repeatable" React
component.

https://umd-dit.atlassian.net/browse/LIBFCREPO-1460
@peichman-umd peichman-umd merged commit 24251b9 into umd-lib:release/1.16 Jul 1, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants