From fec9a7c953b1befc50cdc4fdcc359c3ab84bad99 Mon Sep 17 00:00:00 2001 From: Emanuel Dima Date: Mon, 7 Apr 2014 16:35:37 +0200 Subject: [PATCH] #213: relative paths for images --- invenio/lib/bibformat_elements/bfe_fulltext.py | 2 +- invenio/lib/bibformat_elements/bfe_fulltext_mini.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/invenio/lib/bibformat_elements/bfe_fulltext.py b/invenio/lib/bibformat_elements/bfe_fulltext.py index 50f768eed8..44a2dc9254 100644 --- a/invenio/lib/bibformat_elements/bfe_fulltext.py +++ b/invenio/lib/bibformat_elements/bfe_fulltext.py @@ -78,7 +78,7 @@ def format_element(bfo, style, separator='; ', show_icons='no', focus_on_main_fi style = 'class="'+style+'"' if show_icons.lower() == 'yes': - file_icon = '%s' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '%s' % _("Download fulltext") else: file_icon = '' diff --git a/invenio/lib/bibformat_elements/bfe_fulltext_mini.py b/invenio/lib/bibformat_elements/bfe_fulltext_mini.py index c70ec039af..0c6abc65f3 100644 --- a/invenio/lib/bibformat_elements/bfe_fulltext_mini.py +++ b/invenio/lib/bibformat_elements/bfe_fulltext_mini.py @@ -69,10 +69,10 @@ def format_element(bfo, style, separator='; ', show_icons='no', focus_on_main_fi if len(main_urls.keys()) == 1 and len(main_urls.items()[0][1]) == 1 and \ (not CFG_CERN_SITE or len(cern_urls) == 0) and len(others_urls) == 0 and \ show_icons.lower() == 'yes': - file_icon = '%s
' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '%s
' % _("Download fulltext") elif show_icons.lower() == 'yes': - file_icon = '%s' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '%s' % _("Download fulltext") else: file_icon = '' @@ -110,10 +110,10 @@ def format_element(bfo, style, separator='; ', show_icons='no', focus_on_main_fi if len(main_urls.keys()) == 0 and \ len(cern_urls) == 1 and len(others_urls) == 0 and \ show_icons.lower() == 'yes': - file_icon = '%s
' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '%s
' % _("Download fulltext") elif show_icons.lower() == 'yes': - file_icon = '%s' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '%s' % _("Download fulltext") else: file_icon = '' @@ -130,9 +130,9 @@ def format_element(bfo, style, separator='; ', show_icons='no', focus_on_main_fi if len(main_urls.keys()) == 0 and \ (not CFG_CERN_SITE or len(cern_urls) == 0) and len(others_urls) == 1 and \ show_icons.lower() == 'yes': - file_icon = '%s
' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '%s
' % _("Download fulltext") elif show_icons.lower() == 'yes': - file_icon = '%s' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '%s' % _("Download fulltext") else: file_icon = '' external_link = len(others_urls) == 1 and _('external link') or _('external links')