This commit is contained in:
Timothy J. Baek 2024-07-17 17:11:50 +02:00
parent 98f935b8f7
commit 775a3dc359

View File

@ -566,6 +566,11 @@
const metadata = citation.metadata?.[index];
const id = metadata?.source ?? 'N/A';
let source = citation?.source;
if (metadata?.name) {
source = { ...source, name: metadata.name };
}
// Check if ID looks like a URL
if (id.startsWith('http://') || id.startsWith('https://')) {
source = { name: id };