-
Notifications
You must be signed in to change notification settings - Fork 433
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
Added support to import from external source on Edit Item > Relationships #2373
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
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.
@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.
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.
+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
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 @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.xml
Publication
and one withPerson
item-submission.xml
use those 2 collection handles to link to their respectivesubmission-name
s:Publication
&Person
orcid.api-url = https://pub.sandbox.orcid.org/v3.0
to 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 > Relationships
tab using ORCID and that a non imported person is created automaticallyChecklist
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.