diff --git a/rero_ils/modules/documents/templates/rero_ils/detailed_view_documents.html b/rero_ils/modules/documents/templates/rero_ils/detailed_view_documents.html
index c24dd47a3c..e94d3cc999 100644
--- a/rero_ils/modules/documents/templates/rero_ils/detailed_view_documents.html
+++ b/rero_ils/modules/documents/templates/rero_ils/detailed_view_documents.html
@@ -104,7 +104,30 @@
{% endif %}
-
+
+ {% if record.electronicLocator %}
+ {% set resources = record | get_other_accesses %}
+ {% if resources | length > 0 %}
+
+ {% endif %}
+ {% endif %}
+
+
{% if record.subjects %}
{% for subject in record.subjects %}
diff --git a/rero_ils/modules/documents/views.py b/rero_ils/modules/documents/views.py
index f366f11261..18db32f683 100644
--- a/rero_ils/modules/documents/views.py
+++ b/rero_ils/modules/documents/views.py
@@ -397,11 +397,9 @@ def get_other_accesses(record):
def filter_type(electronic_locator):
"""Filter electronic locator for related resources and no info."""
- if electronic_locator.get('type') in ['relatedResource', 'noInfo'] \
- and electronic_locator.get('content') != 'coverImage':
- return True
- else:
- return False
+ return electronic_locator.get('type') in [
+ 'noInfo', 'resource', 'relatedResource', 'versionOfResource'
+ ] and electronic_locator.get('content') != 'coverImage'
filtered_electronic_locators = filter(
filter_type,
diff --git a/rero_ils/theme/assets/scss/rero_ils/styles.scss b/rero_ils/theme/assets/scss/rero_ils/styles.scss
index 86435a6a72..4ac881efd9 100644
--- a/rero_ils/theme/assets/scss/rero_ils/styles.scss
+++ b/rero_ils/theme/assets/scss/rero_ils/styles.scss
@@ -122,6 +122,13 @@ div.tooltip div.tooltip-inner{
max-width: 400px;
}
+.rero-ils-external-link:after {
+ font-family: 'FontAwesome';
+ font-size: $font-size-very-small;
+ vertical-align: top;
+ content: " \f08e";
+}
+
/*
*********************************
diff --git a/tests/unit/test_documents_dojson.py b/tests/unit/test_documents_dojson.py
index ee031ec817..16113574f3 100644
--- a/tests/unit/test_documents_dojson.py
+++ b/tests/unit/test_documents_dojson.py
@@ -4750,7 +4750,14 @@ def test_marc21_to_electronicLocator_from_856(mock_cover_get):
}
]
assert get_cover_art(data) is None
- assert get_other_accesses(data) == []
+ assert get_other_accesses(data) == [
+ {
+ 'url': 'http://reader.digitale-s.de/r/d/XXX.html',
+ 'type': 'versionOfResource',
+ 'content': 'fullText',
+ 'public_note': 'Vol. 1'
+ }
+ ]
marc21xml = """