templates.view-attribute-mapping.ftl Maven / Gradle / Ivy
<#include "molgenis-header.ftl">
<#include "molgenis-footer.ftl">
<#assign css=['mapping-service.css']>
<#assign js=[
'attribute-mapping.js',
'd3.min.js',
'vega.min.js',
'jstat.min.js',
'biobankconnect-graph.js',
'jquery/scrollTableBody/jquery.scrollTableBody-1.0.0.js',
'bootbox.min.js',
'jquery.ace.js',
'jquery.highlight.js'
]>
<@header css js/>
<#-- Hidden fields containing information needed for ajax requests -->
Mapping to ${entityMapping.targetEntityType.id}
.${attributeMapping.targetAttribute.name} from ${entityMapping.sourceEntityType.id}
Algorithm state
<#if attributeMapping.algorithmState??>${attributeMapping.algorithmState?html}<#else>
N/A#if>
Name
${attributeMapping.targetAttribute.name?html}
(${attributeMapping.targetAttribute.dataType})
Label
<#if attributeMapping.targetAttribute.label??>
${attributeMapping.targetAttribute.label?html}
<#else>
N/A
#if>
Description
<#if attributeMapping.targetAttribute.description??>
${attributeMapping.targetAttribute.description?html}
<#else>
N/A
#if>
OntologyTerms
<#if tags ?? && tags?size == 0>
N/A
<#else>
<#list tags as tag>
<#assign synonyms = tag.synonyms?join("")>
${tag.label?html}
#list>
#if>
Categories
<#if attributeMapping.targetAttribute.dataType == "CATEGORICAL" || attributeMapping.targetAttribute.dataType == "CATEGORICAL_MREF" && (categories)?has_content>
<#assign refEntityType = attributeMapping.targetAttribute.refEntity>
<#assign idAttr = refEntityType.getIdAttribute()>
<#assign labelAttr = refEntityType.getLabelAttribute()>
<#list categories as category>
<#if (category[idAttr.name])??>
<#assign value = category[idAttr.name] />
<#assign dataType = idAttr.dataType />
<#if dataType == "DATE_TIME" || dataType == "DATE">
${value.format()}
<#else>
${value?string}
#if>
#if>
<#if labelAttr?? && labelAttr.name != idAttr.name>
<#if (category[labelAttr.name])??>
=
<#assign value = category[labelAttr.name] />
<#assign dataType = labelAttr.dataType />
<#if dataType == "DATE_TIME" || dataType == "DATE">
${value.format()}
<#else>
${value?string}
#if>
#if>
#if>
#list>
<#else>
N/A
#if>
<#-- Start: Master row -->
<#-- Start: Attribute table column -->
<#-- Start: Attribute table container -->
<#-- End: Attribute table container -->
<#-- End: Attribute table column -->
<#-- Start: Mapping column -->
<#-- Start: Mapping container -->
<@script />
<@map />
<#-- End: Mapping container -->
<#-- End: Mapping column -->
<#-- Start Result column -->
<#-- Start: Result container -->
Validation
Algorithm validation starts automatically when the algorithm is updated. In case of errors, click
the error label for more details
Preview
<#-- End: Result container -->
<#-- End: Result column -->
<#-- End: Master row -->
<#-- map tab -->
<#macro map>
#macro>
<#-- algorithm editor tab -->
<#macro script>
Algorithm
Use the script editor to determine how the values of selected attributes are processed.
See the list of available functions for more information.
#macro>
<@footer/>