Fix biblio citations

This commit is contained in:
Nicolò P 2024-12-04 09:07:03 +01:00
parent 0c33329582
commit e32c695cf2
3 changed files with 10 additions and 10 deletions

View File

@ -90,9 +90,9 @@ export class Finding {
<span class="is-clickable is-capitalized has-text-link"
data-action="click->biblio#open"
id="cit-${biblio.id}">
${biblio.citation.toLowerCase()},
</span> ${biblio.pages};
`;
${biblio.citation.toLowerCase()}</span>`;
citations += biblio.pages?.length ? `, ${biblio.pages};` : ';';
this.biblioElements.push(`
<div class="p-2 mt-2" id="ref-${biblio.id}">

View File

@ -60,10 +60,10 @@ export class NotConservedSheet {
<span class="is-clickable is-capitalized has-text-link"
data-action="click->biblio#open"
id="cit-${record.id}">
${record.citation.toLowerCase()},
</span> ${record.pages};
`;
${record.citation.toLowerCase().trim()}</span>`;
citations += record.pages?.length ? `, ${record.pages};` : ';';
this.biblioElements.push(`
<div class="p-2 mt-2" id="ref-${record.id}">
<p class="p-3">${record.reference}</p>

View File

@ -102,9 +102,9 @@ export class SiteSheet {
<span class="is-clickable is-capitalized has-text-link"
data-action="click->biblio#open"
id="cit-${record.id}">
${record.citation.toLowerCase().trim()},
</span> ${record.pages};
`;
${record.citation.toLowerCase().trim()}</span>`;
citations += record.pages?.length ? `, ${record.pages};` : ';';
this.biblioElements.push(`
<div class="p-2 mt-2" id="ref-${record.id}">
@ -124,4 +124,4 @@ export class SiteSheet {
return ref.match(regex);
});
}
}
}