Update index pages + add layers

This commit is contained in:
2024-11-22 17:36:28 +01:00
parent ff379acb13
commit 4e12789a11
8 changed files with 99 additions and 66 deletions

View File

@@ -66,7 +66,6 @@ export class NotConservedSheet {
this.biblioElements.push(`
<div class="p-2" id="ref-${record.id}">
<p><strong>Riferimento</strong></p>
<p>${record.reference}</p>
</div>
`
@@ -78,7 +77,10 @@ export class NotConservedSheet {
}
getReference(id) {
return this.biblioElements.find(ref => ref.includes(`ref-${id}`));
return this.biblioElements.find(ref => {
let regex = new RegExp('ref-'+id+'"');
return ref.match(regex);
});
}
async fetchData(url) {