You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/shared/object-list/metadata-representation-list-element/plain-text/plain-text-metadata-list-element.component.html
Copy file name to clipboardExpand all lines: src/app/shared/object-list/metadata-representation-list-element/plain-text/plain-text-metadata-list-element.component.spec.ts
console.error('PlainTextMetadataListElementComponent: failed to fetch backend config property "orcid.domain-url". ORCID author linking will be disabled.');
console.error('PlainTextMetadataListElementComponent: backend config property "orcid.domain-url" returned no values. ORCID author linking will be disabled.');
61
+
return;
62
+
}
63
+
consturl=rd.payload.values[0].trim();
64
+
if(!url||!/^https?:\/\//i.test(url)){
65
+
console.error(`PlainTextMetadataListElementComponent: backend config property "orcid.domain-url" has invalid value "${url}". ORCID author linking will be disabled.`);
66
+
return;
67
+
}
68
+
this.orcidDomainUrl$.next(url);
69
+
});
70
+
}
28
71
29
72
/**
30
73
* Get the appropriate query parameters for this browse link, depending on whether the browse definition
@@ -41,30 +84,36 @@ export class PlainTextMetadataListElementComponent extends MetadataRepresentatio
41
84
}
42
85
43
86
/**
44
-
* Check if the authority value of this metadata is a full ORCID URL.
45
-
* The backend OrcidAuthorityAssign script stores authority as full URLs
46
-
* (e.g. https://orcid.org/0000-0001-2345-6789).
87
+
* Check if the authority value of this metadata is an ORCID identifier.
88
+
* Authority is expected to be a bare ORCID ID (e.g. 0000-0001-2345-6789).
89
+
* Requires the orcidDomainUrl to be loaded from backend configuration.
0 commit comments