Added support to import from external source on Edit Item > Relationships#2373
Conversation
…elationships ({item-page}/edit/relationship)
…e-7.2' into dspace-7.4 # Conflicts: # src/app/shared/form/builder/ds-dynamic-form-ui/relation-lookup-modal/dynamic-lookup-relation-modal.component.ts
…entity-on-admin-edit_contribute-7.4' into dspace-7.6
tdonohue
left a comment
There was a problem hiding this comment.
@alexandrevryghem : Thanks! Overall, this works, so I'll go ahead and approve it. However, with this new feature I've noticed a lot of missing i18n keys. For instance, when adding a Publication relation (by Editing a Person) you see this:

Here's the ones I've found that need to be added (so far) & my best guess as what each should say:
"submission.sections.describe.relationship-lookup.search-tab.tab-title.orcidWorks" = "ORCID ({{ count }})",
"submission.sections.describe.relationship-lookup.search-tab.tab-title.crossref" = "CrossRef ({{ count }})",
"submission.sections.describe.relationship-lookup.search-tab.tab-title.scopus" = "Scopus ({{ count }})",
"submission.sections.describe.relationship-lookup.search-tab.tab-title.openaireFunding" = "Funding OpenAIRE ({{ count }})",
"submission.sections.describe.relationship-lookup.search-tab.tab-title.sherpaJournalIssn" = "Sherpa Journals by ISSN ({{ count }})",
"submission.sections.describe.relationship-lookup.title.Journal" = "Journal",
"journalvolume.search.results.head" = "Journal Volume Search Results",
"journalissue.search.results.head" = "Journal Issue Search Results",
"relationships.isVolumeOf.JournalVolume" = "Journal Volume",
"relationships.isIssueOf.JournalIssue = "Journal Issue",
"relationships.isJournalVolumeOf" = "Journal Volume",
If you'd be willing to add these i18n keys as part of this PR, I think it'd be beneficial to this new feature.
kshepherd
left a comment
There was a problem hiding this comment.
+1, I have also tested and it works well.
FWIW I didn't see the i18n labels that @tdonohue mentioned - as indicated, they look like external sources other than ORCID person that need a key for this modal, so they won't show up if not configured.
…e-7.2' into w2p-102415_Remote-lookup-entity-on-admin-edit_contribute-7.4
…e-7.4' into w2p-102415_Remote-lookup-entity-on-admin-edit_contribute-7.6 # Conflicts: # src/assets/i18n/en.json5
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @alexandrevryghem ! Retested and the i18n keys are now showing properly. Merging as this is at +2
References
Description
The lookup in external sources is not available in
Edit Item > Relationships. We can only add internal DSpace entities there as a linked item, now we will also be able to import a new item from an external source there.Instructions for Reviewers
List of changes in this PR:
DsDynamicLookupRelationModalComponent: List all the external sources which are enabled/configured in the popup modalGuidance for how to test and review this PR:
initialize-entities -f dspace/config/entities/relationship-types.xmlPublicationand one withPersonitem-submission.xmluse those 2 collection handles to link to their respectivesubmission-names:Publication&Personorcid.api-url = https://pub.sandbox.orcid.org/v3.0to youlocal.cfg, because ORCID uses the api which requires credentials by default instead of the public one (see ORCID search should work out of the box DSpace#8836 for more info about that issue/workaround)Edit Item > Relationshipstab using ORCID and that a non imported person is created automaticallyChecklist
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.