Fix stupid biblio bug

This commit is contained in:
2024-11-25 18:52:07 +01:00
parent e3fe2f1b94
commit 023b94b2a0
2 changed files with 9 additions and 9 deletions

View File

@@ -91,17 +91,17 @@ export class Finding {
let citations = '';
if (record.bibliography.length) {
record.bibliography.forEach(record => {
record.bibliography.forEach(biblio => {
citations += `
<span class="is-clickable is-capitalized has-text-link"
id="cit-${record.id}">
${record.citation.toLowerCase()},
</span> ${record.pages};
id="cit-${biblio.id}">
${biblio.citation.toLowerCase()},
</span> ${biblio.pages};
`;
this.biblioElements.push(`
<div class="p-2 mt-2" id="ref-${record.id}">
<p>${record.reference}</p>
<div class="p-2 mt-2" id="ref-${biblio.id}">
<p>${biblio.reference}</p>
</div>
`
);