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

Updated descriptor list HTML preview

parent 2372314f
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</#macro> </#macro>
<#macro printDescriptor descriptor> <#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" /> <@isPublished published=descriptor.published what="descriptor" />
...@@ -39,6 +39,11 @@ ...@@ -39,6 +39,11 @@
> No description.<#lt> > No description.<#lt>
</#if> </#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> <#list descriptor.terms>
<#compress> <#compress>
...@@ -58,7 +63,7 @@ ...@@ -58,7 +63,7 @@
<div class="documenttitle"> <div class="documenttitle">
${descriptorList.title} <#lt> ${descriptorList.title} <#lt>
<div><small> <div><small>
${descriptorList.versionTag}<br /> ${descriptorList.versionTag},<#lt>
<#if descriptorList.publisher??> <#if descriptorList.publisher??>
**${descriptorList.publisher}** <#lt> **${descriptorList.publisher}** <#lt>
<#else> <#else>
...@@ -72,15 +77,17 @@ ${descriptorList.description!} ...@@ -72,15 +77,17 @@ ${descriptorList.description!}
<@isPublished published=descriptorList.published what="descriptor list" /> <@isPublished published=descriptorList.published what="descriptor list" />
Version: ${descriptorList.versionTag} <#lt>
<#if descriptorList.publisher??> <#if descriptorList.publisher??>
Published by: **${descriptorList.publisher}** <#lt> Published by: **${descriptorList.publisher}** <#lt>
<#else> <#else>
Maintained by: ${descriptorList.owner.name} <#lt> Maintained by: **${descriptorList.owner.name}** <#lt>
</#if> </#if>
Last modified: ${descriptorList.lastModifiedDate?date} <#lt> Version: **${descriptorList.versionTag}**<#lt>
Date registered: ${descriptorList.createdDate?date} <#lt>
Record: ${descriptorList.uuid} v${descriptorList.version} <#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> <#list descriptorList.descriptors>
......
...@@ -25,7 +25,7 @@ html { ...@@ -25,7 +25,7 @@ html {
font-size: 1rem; font-size: 1rem;
font-weight: bold; font-weight: bold;
} }
a, a:visited { color: blue }
h1 { font-size: 1.2rem; margin: 1.4rem 0 0.6rem; } h1 { font-size: 1.2rem; margin: 1.4rem 0 0.6rem; }
h2 { font-size: 1.2rem; margin: 1.2rem 0 0.6rem; } h2 { font-size: 1.2rem; margin: 1.2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; } h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
...@@ -80,13 +80,13 @@ div.alert.not-published { ...@@ -80,13 +80,13 @@ div.alert.not-published {
<body> <body>
<div class="disclaimer"> <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> </div>
${html} ${html}
<footer> <footer>
Generated ${.now} from Genesys Catalog data. Generated ${.now} by <a href="https://www.genesys-pgr.org">https://www.genesys-pgr.org</a>.
</footer> </footer>
</body> </body>
</html> </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