Skip to content

Commit c2660e2

Browse files
pathmappernyalldawson
authored andcommitted
Add additionally scheme / protocol where appropriate
1 parent 7a8e20d commit c2660e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

python/plugins/MetaSearch/resources/templates/record_metadata_dc.html

+10
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ <h4>Links</h4>
8080
else link['description'] if link['description'] not in [None, 'None', '']
8181
else link['scheme'] if link['scheme'] not in [None, 'None', '']
8282
else gettext('Access Link') }}
83+
{% if link['scheme'] not in [None, 'None', '']
84+
and ( link['name'] not in [None, 'None', '']
85+
or link['description'] not in [None, 'None', ''] ) %}
86+
({{ link['scheme'] }})
87+
{% endif %}
8388
</a></li>
8489
{% endfor %}
8590
{% for link in obj.uris %}
@@ -88,6 +93,11 @@ <h4>Links</h4>
8893
else link['description'] if link['description'] not in [None, 'None', '']
8994
else link['protocol'] if link['protocol'] not in [None, 'None', '']
9095
else gettext('Access Link') }}
96+
{% if link['protocol'] not in [None, 'None', '']
97+
and ( link['name'] not in [None, 'None', '']
98+
or link['description'] not in [None, 'None', ''] ) %}
99+
({{ link['protocol'] }})
100+
{% endif %}
91101
</a></li>
92102
{% endfor %}
93103
</ul>

0 commit comments

Comments
 (0)