From c2660e273a85e8d372764c5f43669522c134bee5 Mon Sep 17 00:00:00 2001 From: pathmapper Date: Mon, 15 Jul 2024 21:53:40 +0200 Subject: [PATCH] Add additionally scheme / protocol where appropriate --- .../resources/templates/record_metadata_dc.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/python/plugins/MetaSearch/resources/templates/record_metadata_dc.html b/python/plugins/MetaSearch/resources/templates/record_metadata_dc.html index 8fb385326a7d..f8f4e250d9b2 100644 --- a/python/plugins/MetaSearch/resources/templates/record_metadata_dc.html +++ b/python/plugins/MetaSearch/resources/templates/record_metadata_dc.html @@ -80,6 +80,11 @@

Links

else link['description'] if link['description'] not in [None, 'None', ''] else link['scheme'] if link['scheme'] not in [None, 'None', ''] else gettext('Access Link') }} + {% if link['scheme'] not in [None, 'None', ''] + and ( link['name'] not in [None, 'None', ''] + or link['description'] not in [None, 'None', ''] ) %} + ({{ link['scheme'] }}) + {% endif %} {% endfor %} {% for link in obj.uris %} @@ -88,6 +93,11 @@

Links

else link['description'] if link['description'] not in [None, 'None', ''] else link['protocol'] if link['protocol'] not in [None, 'None', ''] else gettext('Access Link') }} + {% if link['protocol'] not in [None, 'None', ''] + and ( link['name'] not in [None, 'None', ''] + or link['description'] not in [None, 'None', ''] ) %} + ({{ link['protocol'] }}) + {% endif %} {% endfor %}