Parse markers for other record types
This commit is contained in:
parent
952dc3f841
commit
c8de489ead
@ -23,7 +23,7 @@ export class Finding {
|
|||||||
<strong>Misure:</strong> ${this._data.measurements}
|
<strong>Misure:</strong> ${this._data.measurements}
|
||||||
</p>
|
</p>
|
||||||
<p class="p-2">
|
<p class="p-2">
|
||||||
<strong>Luogo e anno rinvenimento:</strong> ${this._data.place}. ${this._data.year}
|
<strong>Luogo e anno rinvenimento:</strong> ${Utils.parseMarkers(this._data.place)}. ${this._data.year}
|
||||||
</p>
|
</p>
|
||||||
<p class="p-2">
|
<p class="p-2">
|
||||||
<strong>Datazione:</strong> ${this._data.dating}
|
<strong>Datazione:</strong> ${this._data.dating}
|
||||||
@ -36,7 +36,7 @@ export class Finding {
|
|||||||
</p>
|
</p>
|
||||||
<p class="mt-4 pl-2 pr-5">
|
<p class="mt-4 pl-2 pr-5">
|
||||||
<strong class="pb-3">Descrizione</strong></br>
|
<strong class="pb-3">Descrizione</strong></br>
|
||||||
${this._data.description}
|
${Utils.parseMarkers(this._data.description)}
|
||||||
</p>
|
</p>
|
||||||
<p class="mt-4 pl-2 pr-5">
|
<p class="mt-4 pl-2 pr-5">
|
||||||
<span class="icon has-text-link">
|
<span class="icon has-text-link">
|
||||||
|
|||||||
@ -32,11 +32,11 @@ export class NotConserved {
|
|||||||
<span class="icon has-text-link">
|
<span class="icon has-text-link">
|
||||||
<i class="fa fa-map"></i>
|
<i class="fa fa-map"></i>
|
||||||
</span>
|
</span>
|
||||||
<strong>Località generica:</strong> ${this._data.genericLocation}
|
<strong>Località generica:</strong> ${Utils.parseMarkers(this._data.genericLocation)}
|
||||||
</p>
|
</p>
|
||||||
<p class="mt-4 pl-2 pr-5">
|
<p class="mt-4 pl-2 pr-5">
|
||||||
<strong class="pb-3">Descrizione</strong></br>
|
<strong class="pb-3">Descrizione</strong></br>
|
||||||
${this._data.shortDescription}
|
${Utils.parseMarkers(this._data.shortDescription)}
|
||||||
</p>
|
</p>
|
||||||
<p class="mt-4 pl-2 pr-5">
|
<p class="mt-4 pl-2 pr-5">
|
||||||
<span class="icon has-text-link">
|
<span class="icon has-text-link">
|
||||||
|
|||||||
@ -32,11 +32,11 @@ export class Prehistoric {
|
|||||||
<span class="icon has-text-link">
|
<span class="icon has-text-link">
|
||||||
<i class="fa fa-map"></i>
|
<i class="fa fa-map"></i>
|
||||||
</span>
|
</span>
|
||||||
<strong>Località generica:</strong> ${this._data.genericPlace}
|
<strong>Località generica:</strong> ${Utils.parseMarkers(this._data.genericPlace)}
|
||||||
</p>
|
</p>
|
||||||
<p class="mt-4 pl-2 pr-5">
|
<p class="mt-4 pl-2 pr-5">
|
||||||
<strong class="pb-3">Descrizione breve</strong></br>
|
<strong class="pb-3">Descrizione breve</strong></br>
|
||||||
${this._data.description}
|
${Utils.parseMarkers(this._data.description)}
|
||||||
</p>
|
</p>
|
||||||
<p class="p-2">
|
<p class="p-2">
|
||||||
<strong>Conservazione:</strong> ${this._data.conservation}
|
<strong>Conservazione:</strong> ${this._data.conservation}
|
||||||
|
|||||||
@ -29,14 +29,14 @@ export class Reuse {
|
|||||||
<strong>Stato di conservazione:</strong> ${this._data.conservationState}
|
<strong>Stato di conservazione:</strong> ${this._data.conservationState}
|
||||||
</p>
|
</p>
|
||||||
<p class="p-2">
|
<p class="p-2">
|
||||||
<strong>Luogo e anno rinvenimento:</strong> ${this._data.finding}
|
<strong>Luogo e anno rinvenimento:</strong> ${Utils.parseMarkers(this._data.finding)}
|
||||||
</p>
|
</p>
|
||||||
<p class="p-2">
|
<p class="p-2">
|
||||||
<strong>Datazione:</strong> ${this._data.dating}
|
<strong>Datazione:</strong> ${this._data.dating}
|
||||||
</p>
|
</p>
|
||||||
<p class="mt-4 pl-2 pr-5">
|
<p class="mt-4 pl-2 pr-5">
|
||||||
<strong class="pb-3">Descrizione</strong></br>
|
<strong class="pb-3">Descrizione</strong></br>
|
||||||
${this._data.description}
|
${Utils.parseMarkers(this._data.description)}
|
||||||
</p>
|
</p>
|
||||||
<p class="mt-4 pl-2 pr-5">
|
<p class="mt-4 pl-2 pr-5">
|
||||||
<span class="icon has-text-link">
|
<span class="icon has-text-link">
|
||||||
|
|||||||
@ -20,6 +20,7 @@ export class SiteSheet {
|
|||||||
* @returns {string} HTML
|
* @returns {string} HTML
|
||||||
*/
|
*/
|
||||||
render() {
|
render() {
|
||||||
|
const desc = Utils.parseMarkers(this._siteData.description);
|
||||||
return `<div class="container has-bottom-border">
|
return `<div class="container has-bottom-border">
|
||||||
<table class="table is-fullwidth is-striped">
|
<table class="table is-fullwidth is-striped">
|
||||||
<tr class="is-link"><th class="is-size-5 has-text-centered" colspan=2>Identificazione</th></tr>
|
<tr class="is-link"><th class="is-size-5 has-text-centered" colspan=2>Identificazione</th></tr>
|
||||||
@ -45,7 +46,7 @@ export class SiteSheet {
|
|||||||
<tr class="is-link"><th class="is-size-5 has-text-centered" colspan=2>Rilievi</th></tr>
|
<tr class="is-link"><th class="is-size-5 has-text-centered" colspan=2>Rilievi</th></tr>
|
||||||
<tr><td colspan=2>${this._siteData.surveys ?? 'Nessun rilievo'}</td></tr>
|
<tr><td colspan=2>${this._siteData.surveys ?? 'Nessun rilievo'}</td></tr>
|
||||||
<tr class="is-link"><th class="is-size-5 has-text-centered" colspan=2>Descrizione</th></tr>
|
<tr class="is-link"><th class="is-size-5 has-text-centered" colspan=2>Descrizione</th></tr>
|
||||||
<tr><td class="pr-6 pl-6 pt-3" colspan="2">${this._siteData.description}</td></tr>
|
<tr><td class="pr-6 pl-6 pt-3" colspan="2">${desc}</td></tr>
|
||||||
<tr class="is-link"><th class="is-size-5 has-text-centered" colspan=2>Bibliografia</th></tr>
|
<tr class="is-link"><th class="is-size-5 has-text-centered" colspan=2>Bibliografia</th></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=2>
|
<td colspan=2>
|
||||||
@ -61,7 +62,6 @@ export class SiteSheet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderShort() {
|
renderShort() {
|
||||||
// TEST
|
|
||||||
const shortDesc = Utils.parseMarkers(this._siteData.shortDescription);
|
const shortDesc = Utils.parseMarkers(this._siteData.shortDescription);
|
||||||
|
|
||||||
return `
|
return `
|
||||||
|
|||||||
@ -28,7 +28,7 @@ export class Underwater {
|
|||||||
</p>
|
</p>
|
||||||
<p class="mt-4 pl-2 pr-5">
|
<p class="mt-4 pl-2 pr-5">
|
||||||
<strong class="pb-3">Descrizione breve</strong></br>
|
<strong class="pb-3">Descrizione breve</strong></br>
|
||||||
${this._data.shortDescription}
|
${Utils.parseMarkers(this._data.shortDescription)}
|
||||||
</p>
|
</p>
|
||||||
<p class="p-2 mb-4">
|
<p class="p-2 mb-4">
|
||||||
<strong>Autore scheda:</strong> ${this._data.author}
|
<strong>Autore scheda:</strong> ${this._data.author}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user