Commit 25c47d09 authored by Matija Obreza's avatar Matija Obreza

Updated descriptor list HTML preview

parent 2372314f
......@@ -29,7 +29,7 @@
</#macro>
<#macro printDescriptor descriptor>
# ${descriptor.title} <#if descriptor.uom??>[${descriptor.uom}]</#if><#lt>
# ${descriptor.title} <#if descriptor.uom??>`[${descriptor.uom}]`</#if><#lt>
<@isPublished published=descriptor.published what="descriptor" />
......@@ -39,6 +39,11 @@
> No description.<#lt>
</#if>
Classification: **`${descriptor.category}`** <#lt>
Data type: **`${descriptor.dataType}`** <#if descriptor.uom??> measured in **`${descriptor.uom}`**.</#if><#lt>
<#if descriptor.dataType=='NUMERIC' || descriptor.dataType=='SCALE'>
Range: **`<#if descriptor.minValue??>${descriptor.minValue}<#else>any</#if>..<#if descriptor.maxValue??>${descriptor.maxValue}<#else>any</#if>`**<#lt>
</#if>
<#list descriptor.terms>
<#compress>
......@@ -58,7 +63,7 @@
<div class="documenttitle">
${descriptorList.title} <#lt>
<div><small>
${descriptorList.versionTag}<br />
${descriptorList.versionTag},<#lt>
<#if descriptorList.publisher??>
**${descriptorList.publisher}** <#lt>
<#else>
......@@ -72,15 +77,17 @@ ${descriptorList.description!}
<@isPublished published=descriptorList.published what="descriptor list" />
Version: ${descriptorList.versionTag} <#lt>
<#if descriptorList.publisher??>
Published by: **${descriptorList.publisher}** <#lt>
<#else>
Maintained by: ${descriptorList.owner.name} <#lt>
Maintained by: **${descriptorList.owner.name}** <#lt>
</#if>
Last modified: ${descriptorList.lastModifiedDate?date} <#lt>
Date registered: ${descriptorList.createdDate?date} <#lt>
Record: ${descriptorList.uuid} v${descriptorList.version} <#lt>
Version: **${descriptorList.versionTag}**<#lt>
**Genesys metadata**
Last modified: **${descriptorList.lastModifiedDate?date}** <#lt>
Date registered: **${descriptorList.createdDate?date}** <#lt>
Genesys record identifier: **${descriptorList.uuid} v${descriptorList.version}** <#lt>
<#list descriptorList.descriptors>
......
......@@ -25,7 +25,7 @@ html {
font-size: 1rem;
font-weight: bold;
}
a, a:visited { color: blue }
h1 { font-size: 1.2rem; margin: 1.4rem 0 0.6rem; }
h2 { font-size: 1.2rem; margin: 1.2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
......@@ -80,13 +80,13 @@ div.alert.not-published {
<body>
<div class="disclaimer">
For internal use only. Do not distribute.
For internal use only. Do not distribute.<br />Sourced from <a href="https://www.genesys-pgr.org">Genesys</a> data
</div>
${html}
<footer>
Generated ${.now} from Genesys Catalog data.
Generated ${.now} by <a href="https://www.genesys-pgr.org">https://www.genesys-pgr.org</a>.
</footer>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment