From 10f24ad0935181c0b910c8ede5624a324933ac1f Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 26 Nov 2021 12:00:51 +0200 Subject: [PATCH] site: add clusters and modules Re-organize content and navigation around the concept of clusters and modules. Elements that have suggested field names are displayed prominently near the top of each cluster. I am still exploring how to present the clusters and modules better. Perhaps as a badge on each element? --- site/layouts/_default/home.html | 79 ++++++++++++++++++++++++++++----- site/layouts/_default/term.html | 6 ++- 2 files changed, 74 insertions(+), 11 deletions(-) diff --git a/site/layouts/_default/home.html b/site/layouts/_default/home.html index 1cac819a..0efbd72d 100644 --- a/site/layouts/_default/home.html +++ b/site/layouts/_default/home.html @@ -11,11 +11,14 @@ @@ -26,8 +29,31 @@

ISEAL Core Metadata Set Specification

This page provides a reference specification for the ISEAL Core Metadata set (ISEAL Core).

ISEAL Core is a set of structured terms and vocabularies that can be used as metadata to describe, share, and reuse different digital resources across the ISEAL Community and broader set of stakeholders. The resources described using the ISEAL are those that sustainability systems typically collect, curate, manage, use, publish and archive. They may be datasets, published research, certificates, videos, images, maps, or other organizational documentation.

-

Metadata

-

ISEAL Core currently uses elements from the following standard metadata schemas:

+

Clusters and Modules

+

Metadata elements in ISEAL Core are organized around three clusters and ten modules.

+ +

Metadata Elements

+

ISEAL Core uses elements from the following standard metadata schemas:

-

Required Metadata

+

Global Cluster

+

+ {{/* Note: we need to use two ranges for each cluster because it is */}} + {{/* not possible to re-use Hugo's paginate object unless you use */}} + {{/* the same exact arguments each time. */}} - {{ range where (where site.RegularPages "Type" "terms") "Params.required" "==" true }} + + {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Global" }} + {{- if .Params.field -}} + {{ .Params.field }} + {{- end -}} + {{ end }} +

+ + {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Global" }}
{{ .Render "term" }}
{{ end }} -

Optional Metadata

-

These elements are optional, but we strongly suggest that you include as many as you can.

+

Certification Cluster

+

+ {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Certification" }} + {{- if .Params.field -}} + {{ .Params.field }} + {{- end -}} + {{ end }} +

- {{ range where (where site.RegularPages "Type" "terms") "Params.required" "==" false }} + {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Certification" }} +
+ {{ .Render "term" }} +
+ {{ end }} + +

Impact Cluster

+

+ {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Impact" }} + {{- if .Params.field -}} + {{ .Params.field }} + {{- end -}} + {{ end }} +

+ + {{ range where (where site.RegularPages "Type" "terms") "Params.cluster" "==" "Impact" }}
{{ .Render "term" }}
diff --git a/site/layouts/_default/term.html b/site/layouts/_default/term.html index 17625244..4bd4b4c7 100644 --- a/site/layouts/_default/term.html +++ b/site/layouts/_default/term.html @@ -3,7 +3,7 @@ - {{- .Params.title | markdownify -}} + {{ .Params.title | markdownify }} {{- with .Params.required -}}
Required @@ -17,6 +17,10 @@ Label {{ .Name | markdownify }} + + Module + {{ .Params.module | markdownify }} + {{ with .Params.description }} Definition