From 49f277606037b9128139d66d179bfbf45ff50733 Mon Sep 17 00:00:00 2001
From: James Wallace <92064306+jwallace94@users.noreply.github.com>
Date: Wed, 29 Apr 2026 11:34:20 +1000
Subject: [PATCH] Frontend Enhancement to split Gravity Station Image Links
into a list of links
---
.../templates/collections/items/item.html | 21 ++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/pygeoapi/templates/collections/items/item.html b/pygeoapi/templates/collections/items/item.html
index de97ed282..e92207f62 100644
--- a/pygeoapi/templates/collections/items/item.html
+++ b/pygeoapi/templates/collections/items/item.html
@@ -94,12 +94,31 @@
{{ data['id'] }}
{{ data.id }} |
{% for k, v in data['properties'].items() %}
- {% if k != data['id_field'] %}
+ {# The following if logic assumes there will not be a "links_to_station_images" column outside of gravity stations dataset #}
+ {# Revisit this if statement logic if that somehow ever changes}
+ {% if k != data['id_field'] and k != 'links_to_station_images' %}
| {{ k | striptags }} |
{{ render_item_value(v, 80) }} |
{% endif %}
+ {# GA customisation split Gravity Station Images into separate links #}
+ {% if k == 'links_to_station_images' %}
+
+ | {{ k | striptags }} |
+
+
+ {% for url in v.split(' | ') %}
+ {% set clean_url = url.strip() %}
+ {% if clean_url %}
+ - {{ clean_url }}
+ {% endif %}
+ {% endfor %}
+ {# End GA Customisation #}
+
+ |
+
+ {% endif %}
{% endfor %}
| {% trans %}Links{% endtrans %} |