diff --git a/src/main/resources/freemarker/Fishery.ftl b/src/main/resources/freemarker/Fishery.ftl index bde820b..33ced63 100644 --- a/src/main/resources/freemarker/Fishery.ftl +++ b/src/main/resources/freemarker/Fishery.ftl @@ -14,7 +14,9 @@ "version" : "${version?string["0.0"]}", "private": ${include_sensitive?c}, + <#if include_sensitive> "searchable": "True", <#-- If the Record is private we have to set searchable to True see https://support.d4science.org/issues/27922 --> + "extras": [ <#-- START of Common Metadata --> <@metadata key="GRSF Type" namespace=identity_namespace var=grsf_type?capitalize /> diff --git a/src/main/resources/freemarker/Stock.ftl b/src/main/resources/freemarker/Stock.ftl index 7334f25..8e2dc9a 100644 --- a/src/main/resources/freemarker/Stock.ftl +++ b/src/main/resources/freemarker/Stock.ftl @@ -14,7 +14,9 @@ "version" : "${version?string["0.0"]}", "private": ${include_sensitive?c}, + <#if include_sensitive> "searchable": "True", <#-- If the Record is private we have to set searchable to True see https://support.d4science.org/issues/27922 --> + "extras": [ <#-- START of Common Metadata --> <@metadata key="GRSF Type" namespace=identity_namespace var=grsf_type?capitalize /> diff --git a/src/main/resources/freemarker/Traceability Unit.ftl b/src/main/resources/freemarker/Traceability Unit.ftl index 055b6ea..0bea8b4 100644 --- a/src/main/resources/freemarker/Traceability Unit.ftl +++ b/src/main/resources/freemarker/Traceability Unit.ftl @@ -14,7 +14,9 @@ "version" : "${version?string["0.0"]}", "private": ${include_sensitive?c}, + <#if include_sensitive> "searchable": "True", <#-- If the Record is private we have to set searchable to True see https://support.d4science.org/issues/27922 --> + "extras": [ <#-- START of Common Metadata --> <@metadata key="GRSF Type" namespace=identity_namespace var="Traceability Unit" />