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