Bibliography for prehistoric

This commit is contained in:
2026-05-22 16:07:18 +02:00
parent 1a3c95487f
commit c313194e15
3 changed files with 12 additions and 8 deletions

View File

@@ -44,6 +44,13 @@ export class Prehistoric {
<p class="p-2 mb-4">
<strong>Autore scheda:</strong> ${this._data.author}
</p>
<p class="mt-4 pl-2 pr-5">
<span class="icon has-text-link">
<i class="fa fa-book"></i>
</span>
<strong>Bibliografia:</strong> ${await this.biblio(this._data.id)}
</p>
<div class="notification is-light mx-3 mt-4 mb-0 p-2 is-hidden" data-biblio-target="biblio"></div>
</div>`;
/*

View File

@@ -193,7 +193,7 @@ UI.openPrehistModal = function (data, selector) {
prehistoric.data = data;
// For Stimulus biblio_controller
//GisState.bibliography = prehistoric;
GisState.bibliography = prehistoric;
prehistoric.render().then(html => modal.querySelector('#prehist-sheet').innerHTML = html);
prehistoric.setImages(modal.querySelector('#photos'), this.imageGallery);
modal.classList.add('is-active');