Update index pages + add layers
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user