Commit 25b24b9 1 parent 8d8720d commit 25b24b9 Copy full SHA for 25b24b9
File tree 4 files changed +6
-5
lines changed
4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,10 @@ <h3>
111
111
< ul class ="list-unstyled mb-0 ">
112
112
{% for resource in resources %}
113
113
< li >
114
- < a href =" {{ resource.url }} " >
114
+ < a class =" rero-ils-external-link " href = {{ resource.url }} >
115
115
{{ _(resource.type) }}
116
116
{% if resource.content %}
117
- : {{ _( resource.content) }}
117
+ : {{ resource.content }}
118
118
{% endif %}
119
119
</ a >
120
120
{% if resource.public_note %}({{ resource.public_note }}){% endif %}
Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ def filter_type(electronic_locator):
407
407
)
408
408
for electronic_locator in filtered_electronic_locators :
409
409
url = electronic_locator .get ('url' )
410
- content = electronic_locator .get ('content' , url )
410
+ content = _ ( electronic_locator .get ('content' ) )
411
411
public_notes = electronic_locator .get ('publicNote' , [])
412
412
public_note = ', ' .join (public_notes )
413
413
accesses .append ({
Original file line number Diff line number Diff line change 16
16
along with this program. If not, see < http: //www.gnu.org/licenses/> .
17
17
18
18
#}
19
+ {% set viewcode=viewcode or config.RERO_ILS_SEARCH_GLOBAL_VIEW_CODE %}
19
20
<!DOCTYPE html>
20
21
< html {% if html_css_classes %} class ="{{ html_css_classes|join(' ') }} " {% endif %}
21
22
lang ="{{ current_i18n.locale.language|safe }} " dir ="{{ current_i18n.locale.text_direction }} ">
Original file line number Diff line number Diff line change @@ -5195,7 +5195,7 @@ def test_marc21_to_electronicLocator_from_856(mock_cover_get):
5195
5195
assert get_cover_art (data ) is None
5196
5196
assert get_other_accesses (data ) == [
5197
5197
{
5198
- 'content' : 'http://d-nb.info/1071856731/04' ,
5198
+ 'content' : None ,
5199
5199
'public_note' : 'Inhaltsverzeichnis, Bd. 1' ,
5200
5200
'type' : 'relatedResource' ,
5201
5201
'url' : 'http://d-nb.info/1071856731/04'
@@ -5243,7 +5243,7 @@ def test_marc21_to_electronicLocator_from_856(mock_cover_get):
5243
5243
assert get_cover_art (data ) == 'http://d-nb.info/image.png'
5244
5244
assert get_other_accesses (data ) == [
5245
5245
{
5246
- 'content' : 'http://d-nb.info/1071856731/04' ,
5246
+ 'content' : None ,
5247
5247
'public_note' : 'Inhaltsverzeichnis, Bd. 1' ,
5248
5248
'type' : 'relatedResource' ,
5249
5249
'url' : 'http://d-nb.info/1071856731/04'
You can’t perform that action at this time.
0 commit comments