From 8aa19a9eb156235ba4e70617e3395b0626e122ad Mon Sep 17 00:00:00 2001 From: totycro Date: Wed, 17 Feb 2021 14:16:27 +0100 Subject: [PATCH] Extend process UI to complex data types (#622) Previously, it crashed if the input data wasn't a literal data type. Now it shows all mime types of complex data types. https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/schemas/inputDescription.yaml --- pygeoapi/templates/processes/process.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pygeoapi/templates/processes/process.html b/pygeoapi/templates/processes/process.html index 73b00cb..f8f30a9 100644 --- a/pygeoapi/templates/processes/process.html +++ b/pygeoapi/templates/processes/process.html @@ -36,7 +36,15 @@ {{ input_.title|striptags|truncate }} - {{ input_.input.literalDataDomain.dataType }} + {% with literalDataDomain = input_.input.literalDataDomain %} + {% if literalDataDomain %} + {{ literalDataDomain.dataType }} + {% else %} + {% for format in input_.input.formats %} + {{ format.mimeType }}{% if not loop.last %},{% endif %} + {% endfor %} + {% endif %} + {% endwith %} {{ input_.abstract }}