updated the template
This commit is contained in:
parent
ae801a9912
commit
39859d03d1
|
@ -4,8 +4,6 @@ import java.io.IOException;
|
|||
import java.net.MalformedURLException;
|
||||
import java.util.List;
|
||||
|
||||
import javax.ws.rs.WebApplicationException;
|
||||
|
||||
import org.gcube.application.cms.cataloguebinding.EventSubscribed;
|
||||
import org.gcube.application.cms.cataloguebinding.config.BindingWhen;
|
||||
import org.gcube.application.cms.cataloguebinding.freemarker.FreemarkerConfig;
|
||||
|
@ -13,12 +11,6 @@ import org.gcube.application.cms.cataloguebinding.freemarker.MappingToCatalogue;
|
|||
import org.gcube.application.cms.plugins.events.ItemObserved;
|
||||
import org.gcube.application.geoportal.common.model.document.Project;
|
||||
import org.gcube.application.geoportal.common.model.document.lifecycle.LifecycleInformation;
|
||||
import org.gcube.gcat.client.GCatClientDiscovery;
|
||||
import org.gcube.gcat.client.Item;
|
||||
|
||||
import com.jayway.jsonpath.DocumentContext;
|
||||
import com.jayway.jsonpath.JsonPath;
|
||||
import com.jayway.jsonpath.spi.json.JsonOrgJsonProvider;
|
||||
|
||||
import freemarker.core.ParseException;
|
||||
import freemarker.template.MalformedTemplateNameException;
|
||||
|
|
|
@ -233,7 +233,13 @@ Starting document mapping to Catalogue
|
|||
</#if>
|
||||
|
||||
<#if theDocument.fontiFinanziamento??>
|
||||
<@assignExtraField key="Fonte del finanziamento" value=theDocument.fontiFinanziamento asObject=false></@assignExtraField>
|
||||
<#if theDocument.fontiFinanziamento?is_sequence>
|
||||
<#list theDocument.fontiFinanziamento as my_extra>
|
||||
<@assignExtraField key="Fonte del finanziamento" value=my_extra asObject=false></@assignExtraField>
|
||||
</#list>
|
||||
<#else>
|
||||
<@assignExtraField key="Fonte del finanziamento" value=theDocument.fontiFinanziamento asObject=false></@assignExtraField>
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
<#if theDocument.dataInizioProgetto??>
|
||||
|
|
Loading…
Reference in New Issue