templates.view-single-mapping-project.ftl Maven / Gradle / Ivy
<#include "molgenis-header.ftl">
<#include "molgenis-footer.ftl">
<#assign css=['mapping-service.css']>
<#assign js=['single-mapping-project.js', 'bootbox.min.js', 'jquery/scrollTableBody/jquery.scrollTableBody-1.0.0.js',
'jquery.validate.min.js']>
<@header css js/>
Mappings for the ${mappingProject.name?html} project
Create and view mappings.
Curated algorithms
Generated algorithms with high
quality
Generated algorithms with low
quality
Algorithms to discuss
Target model: ${selectedTarget?html}
<#list mappingProject.getMappingTarget(selectedTarget).entityMappings as source>
Source: ${source.name?html}
#list>
<#list mappingProject.getMappingTarget(selectedTarget).target.getAtomicAttributes() as attribute>
<#if !attribute.expression??>
${attribute.label?html} (${attribute.dataType})
<#if !attribute.nillable> required#if>
<#if attribute.unique> unique#if>
<#if attribute.description??>
${attribute.description?html}#if>
<#if attribute.tags??>
<#list attribute.tags as tag>${tag.label?html}<#sep>
, #list>#if>
<#if attributeTagMap[attribute.name]??>
<#list attributeTagMap[attribute.name] as tag>
${tag.label}
#list>
#if>
<#list mappingProject.getMappingTarget(selectedTarget).entityMappings as source>
<#assign attributeMapping = source.getAttributeMapping(attribute.name)>
<#if attributeMapping.algorithmState??>
<#if attributeMapping.algorithmState == "GENERATED_HIGH">
class="bg-info"
<#elseif attributeMapping.algorithmState == "GENERATED_LOW">
class="bg-warning"
<#elseif attributeMapping.algorithmState == "CURATED">
class="bg-success"
<#elseif attributeMapping.algorithmState == "DISCUSS">
class="bg-danger"
#if>
#if>
#if>>
<#if source.getAttributeMapping(attribute.name)??>
#if>
<#if source.getAttributeMapping(attribute.name)??>
<#assign attributeMapping = source.getAttributeMapping(attribute.name)>
<#list attributeMapping.sourceAttributes as mappedSourceAttribute>
<#if mappedSourceAttribute??>${mappedSourceAttribute.label?html}<#if mappedSourceAttribute_has_next>
, #if>#if>
<#if attributeMapping.algorithmState??>#if>
#list>
<#elseif !attribute.nillable>
missing
#if>
#list>
#if>
#list>
<#list mappingProject.getMappingTarget(selectedTarget).getMissingTargetAttributeNames() as missing>
${missing} missing
<#list mappingProject.getMappingTarget(selectedTarget).entityMappings as source>
<#if source.getAttributeMapping(missing)??>
#if>
<#if source.getAttributeMapping(missing)??>
<#assign attributeMapping = source.getAttributeMapping(missing)>
<#if attributeMapping.algorithm??>
${attributeMapping.algorithm?html}
#if>
#if>
#list>
#list>
<#if entityTypes?has_content>
#if>
<#if mappingProject.getMappingTarget(selectedTarget).entityMappings?has_content>
#if>
<@footer/>