-
Notifications
You must be signed in to change notification settings - Fork 439
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
Restore hierarchical tree original behaviour #2738
Restore hierarchical tree original behaviour #2738
Conversation
…viour # Conflicts: # src/app/shared/form/vocabulary-treeview/vocabulary-treeview.component.html # src/app/shared/form/vocabulary-treeview/vocabulary-treeview.component.ts
Hi @atarix83, |
@atarix83 : This has code conflicts. If you wish to have it still considered for 8.0, please get this PR cleaned up and updated to latest |
We have tested this PR on May 13th and it worked for us. What we do:
Print screen: |
@atarix83 : Could you rebase this against |
…iginal-behaviour # Conflicts: # src/app/browse-by/browse-by-taxonomy-page/browse-by-taxonomy-page.component.ts # src/app/shared/form/builder/ds-dynamic-form-ui/models/onebox/dynamic-onebox.component.ts # src/app/shared/form/vocabulary-treeview-modal/vocabulary-treeview-modal.component.spec.ts # src/app/shared/form/vocabulary-treeview-modal/vocabulary-treeview-modal.component.ts # src/app/shared/form/vocabulary-treeview/vocabulary-treeview.component.spec.ts # src/app/shared/form/vocabulary-treeview/vocabulary-treeview.component.ts # src/app/shared/form/vocabulary-treeview/vocabulary-treeview.service.ts # src/app/shared/search/search-filters/search-filter/search-hierarchy-filter/search-hierarchy-filter.component.ts
@tdonohue done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @atarix83 ! I've verified this works both in the Submission form (when the dc.subject
field is changed to a onebox
) and in the Edit Metadata form when editing fields for an archived item. No issues found, so I'm merging this immediately.
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-7_x
git worktree add -d .worktree/backport-2738-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-2738-to-dspace-7_x
git switch --create backport-2738-to-dspace-7_x
git cherry-pick -x 11974740093dd5bb75da843f2a8bb3752c5029cd 9268ef985362ef52c007d53e9087d07d095044e0 a989bebf50f3ea322d1ae39e3909d6ebe0430f63 585c49caef31bb34f1695baf929d47654f73799c |
@atarix83 : This was unable to be automatically ported to |
References
Description
The goal of this PR is to reinstate a behavior of the hierarchical tree component when it's used for controlled vocabulary fields within the submission form.
Indeed during a submission when opening the hierarchical tree for controlled vocabulary field which already contained a selected value the tree were shown opened directly to the tree element related to the field value, with the value marked as green. e.g.
This behavior has been lost starting from the dspace 7.5 version, probably due to some refactoring done on the hierarchical tree component
Instructions for Reviewers
You can verify that this behavior is exactly what happened before 7.5 release by using the tag dspace-7.4 (you can run over the current rest server version, it's working anyway)
List of changes in this PR:
Checklist
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.