mirror of
https://gitlab.com/comenius-institut/foerbico/metadata-form.git
synced 2025-12-07 23:34:31 +00:00
fixed import of institutions that are not listed in the fix institution-list
Ref https://gitlab.com/oersi/metadata-form/-/issues/8
This commit is contained in:
parent
be754d50ef
commit
85629206a3
1 changed files with 8 additions and 0 deletions
|
|
@ -528,6 +528,14 @@
|
|||
institutionOptions += '<option value="' + item["ror"] + '"' + (item["ror"] === institution ? ' selected' : '') + '>' + item["label"] + '</option>';
|
||||
organizationOptions += '<option value="' + item["ror"] + '"' + (item["ror"] === institution ? ' selected' : '') + '>' + item["label"] + '</option>';
|
||||
});
|
||||
if (institution?.length > 0 && !vocabInstitutions.find((e) => e["ror"] === institution)) {
|
||||
if (affiliationName?.length > 0) {
|
||||
institutionOptions += '<option value="' + institution + '"' + ' selected>' + affiliationName + '</option>';
|
||||
}
|
||||
if (organizationName?.length > 0) {
|
||||
organizationOptions += '<option value="' + institution + '"' + ' selected>' + organizationName + '</option>';
|
||||
}
|
||||
}
|
||||
let customInstitutionSelected = institution === "" && affiliationName !== "";
|
||||
let customOrganizationSelected = institution === "" && organizationName !== "";
|
||||
let radioGroupName = creatorList.childElementCount > 1 ? $(creatorList.lastElementChild.previousElementSibling).find('.inputType').find('input').attr('name') : ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue