Use the DSONameService to display DSpaceObjects names#2129
Use the DSONameService to display DSpaceObjects names#2129tdonohue merged 13 commits intoDSpace:mainfrom
Conversation
…dsonameservice-7.4 # Conflicts: # src/app/access-control/epeople-registry/epeople-registry.component.html # src/app/access-control/epeople-registry/eperson-form/eperson-form.component.ts # src/app/access-control/group-registry/group-form/group-form.component.spec.ts # src/app/access-control/group-registry/group-form/group-form.component.ts # src/app/access-control/group-registry/group-form/members-list/members-list.component.html # src/app/access-control/group-registry/group-form/members-list/members-list.component.ts # src/app/collection-page/edit-item-template-page/edit-item-template-page.component.html # src/app/item-page/full/field-components/file-section/full-file-section.component.ts # src/app/item-page/media-viewer/media-viewer-video/media-viewer-video.component.ts # src/app/item-page/simple/field-components/file-section/file-section.component.html # src/app/item-page/simple/field-components/file-section/file-section.component.ts # src/app/item-page/versions/item-versions.component.ts # src/app/shared/auth-nav-menu/user-menu/user-menu.component.html # src/app/shared/auth-nav-menu/user-menu/user-menu.component.ts # src/app/shared/object-collection/shared/mydspace-item-submitter/item-submitter.component.html
|
Hi @alexandrevryghem, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
|
Hi @alexandrevryghem, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
…dsonameservice-main # Conflicts: # src/app/item-page/media-viewer/media-viewer-video/media-viewer-video.component.ts
9969820 to
e14760a
Compare
|
Hi @alexandrevryghem, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
…dsonameservice-main # Conflicts: # src/app/browse-by/browse-by-date-page/browse-by-date-page.component.ts
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @alexandrevryghem ! I've reviewed the code and it looks good. It's basically the same change over and over. I've also tested as many of the components as I could from the UI and noticed no change in behavior. I've verified #343 is fixed.
This all looks good to me & I think it can be merged as soon as @mwoodiupui has a chance to give it a secondary test.
|
@alexandrevryghem : I'm not yet certain that this PR fixes #2153 to be honest... I do believe this PR improves the behavior because it properly handles a Submitter / EPerson which has no name. However, I believe #2153 is describing a slightly different issue where the submitter is null (i.e. doesn't exist at all). In that scenario, I don't believe this DSONameService fixes the problem, because the DSO itself is While I haven't had a chance to fully verify things, I believe this PR provides a partial fix to #2153 (for the scenario where the submitter exists but is missing a name).... and I think #2155 (also linked to #2153) may provide the rest of the fix (for the scenario where the submitter is null). That said, I haven't had a chance yet to test #2155 along with this PR...and it appears that #2155 needs more work based on recent reviews. |
|
Hi @alexandrevryghem, |
|
@tdonohue: You're right this solution only fixes the problem when the firstname and/or lastname of the submitter is not defined and it does not handle the case when the user is not defined. Because that PR currently also doesn't fix the issue when the submitter is |
…onameservice-main # Conflicts: # src/app/item-page/media-viewer/media-viewer-video/media-viewer-video.component.ts
|
@alexandrevryghem : If you want to simply push your new fix to this PR, I'm OK with that. Currently, it appears the commit you linked it isn't in this PR (it's on a different branch). Based on my reading of that new code, I think you are correct that it would make this PR a complete fix to #2153 (and the other PR could simply be closed). I'm OK with that approach...and I can then re-test this PR to verify that it completely fixes #2153. |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @alexandrevryghem . I retested this today and verified it fixes both #343 and also #2153. Here's a screenshot which proves submitter bug is now fixed... I have two WorkflowItems, one with an existing Submitter...and one where the submitter (EPerson object) is deleted.
So, I think this can be merged as soon as @mwoodiupui gives it a quick glance (even just a quick code review is fine).
|
Hi @alexandrevryghem, |
…dsonameservice-main # Conflicts: # src/app/shared/object-detail/my-dspace-result-detail-element/claimed-task-search-result/claimed-task-search-result-detail-element.component.spec.ts # src/app/shared/object-detail/my-dspace-result-detail-element/claimed-task-search-result/claimed-task-search-result-detail-element.component.ts # src/app/shared/object-detail/my-dspace-result-detail-element/item-detail-preview/item-detail-preview.component.ts # src/app/shared/object-detail/my-dspace-result-detail-element/item-search-result/item-search-result-detail-element.component.spec.ts # src/app/shared/object-detail/my-dspace-result-detail-element/pool-search-result/pool-search-result-detail-element.component.spec.ts # src/app/shared/object-detail/my-dspace-result-detail-element/pool-search-result/pool-search-result-detail-element.component.ts # src/app/shared/object-detail/my-dspace-result-detail-element/workflow-item-search-result/workflow-item-search-result-detail-element.component.ts # src/app/shared/object-detail/my-dspace-result-detail-element/workspace-item-search-result/workspace-item-search-result-detail-element.component.ts # src/app/shared/object-grid/search-result-grid-element/collection-search-result/collection-search-result-grid-element.component.html # src/app/shared/object-grid/search-result-grid-element/community-search-result/community-search-result-grid-element.component.html # src/app/shared/subscriptions/subscription-modal/subscription-modal.component.html # src/app/shared/subscriptions/subscription-view/subscription-view.component.html
|
@mwoodiupui : Would you have an chance to give this a quick test on your end so that we can merge this? One very quick way to test this is to create a Community and then remove it's |
|
Hi @alexandrevryghem, |
…me-with-dsonameservice-main
…dsonameservice-main # Conflicts: # src/app/workflowitems-edit-page/advanced-workflow-action/advanced-workflow-action-select-reviewer/reviewers-list/reviewers-list.component.ts
mwoodiupui
left a comment
There was a problem hiding this comment.
Tested as @tdonohue suggests: it works as advertised. I have not read all of the code, but it looks sensible, builds and runs without error.

References
Description
Used the
DSONameServiceon all the places where the name of aDSpaceObjectis renderedInstructions for Reviewers
List of changes in this PR:
dso.name(found using the regex\.name[^a-zA-Z0-9]& by browsing the through the UI)ItemCollectionMapperComponentSearchFormComponentwhere a page refresh after selecting a scope would set the text value of the button by default to "All of DSpace" instead of the name of the Community/Collection.Include guidance for how to test or review your PR.
DSONameService.getName()&DSONameService.getHitHighlights()to return hardcoded easy to find strings like__EPERSON____{type}____{type}__overrides and with some Collections, Communities, ... without adc.title,person.familyName,dc.lastname, ...Checklist
yarn lintyarn check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.