Updated the template

This commit is contained in:
Francesco Mangiacrapa 2024-06-26 15:18:51 +02:00
parent daf6f65f48
commit 5d0304a989
1 changed files with 35 additions and 10 deletions

View File

@ -140,23 +140,29 @@
<#--
Starting document mapping to Catalogue
############################################################
#
#
# Starting document mapping to Catalogue
#
#
############################################################
-->
<#compress>
{
"name": "${jsonProj._id}",
"title": "${theDocument.nome}",
"title": "${sanitizeString(theDocument.nome)}",
"license_id": "CC-BY-SA-4.0",
"private": false,
<#assign sanitizedNotes = sanitizeString(theDocument.introduzione) />
"notes": "${sanitizedNotes}",
<#--
#######################################
######################
RESOURCES
#######################################
######################
-->
<#-- Mapping "Relazione Scavo" as resource -->
@ -197,11 +203,11 @@ Starting document mapping to Catalogue
<#--
#######################################
######################
TAGS
#######################################
######################
-->
<#-- Mapping "paroleChiaveLibere" as tag -->
@ -214,11 +220,11 @@ Starting document mapping to Catalogue
<#--
#######################################
######################
GROUPS
#######################################
######################
-->
<#-- Mapping the year of the "dataInizioProgetto" as group -->
@ -230,14 +236,19 @@ Starting document mapping to Catalogue
<#--
#######################################
######################
EXTRAS
#######################################
######################
-->
<#-- Mapping extras fields -->
<#if theDocument.contributore??>
<@assignExtraField key="Contributore" value=theDocument.contributore asObject=false></@assignExtraField>
</#if>
<#if theDocument.responsabile??>
<@assignExtraField key="Responsabile dei contenuti" value=theDocument.responsabile asObject=false></@assignExtraField>
</#if>
@ -250,6 +261,10 @@ Starting document mapping to Catalogue
<@assignExtraField key="Ufficio MiC competente per territorio" value=theDocument.ufficioMic asObject=false></@assignExtraField>
</#if>
<#if theDocument.funzionarioResponsabile??>
<@assignExtraField key="Funzionario Responsabile" value=theDocument.funzionarioResponsabile asObject=false></@assignExtraField>
</#if>
<#if theDocument.fontiFinanziamento??>
<#if theDocument.fontiFinanziamento?is_sequence>
<#list theDocument.fontiFinanziamento as my_extra>
@ -260,6 +275,16 @@ Starting document mapping to Catalogue
</#if>
</#if>
<#if theDocument.risorseCorrelate??>
<#if theDocument.risorseCorrelate?is_sequence>
<#list theDocument.risorseCorrelate as my_extra>
<@assignExtraField key="Risorse Correlate" value=my_extra asObject=false></@assignExtraField>
</#list>
<#else>
<@assignExtraField key="Risorse Correlate" value=theDocument.risorseCorrelate asObject=false></@assignExtraField>
</#if>
</#if>
<#if theDocument.dataInizioProgetto??>
<@assignExtraField key="Data inizio Campagna" value=theDocument.dataInizioProgetto?trim asObject=false></@assignExtraField>
</#if>