diff --git a/deployment/deploy_overlay-rh.sh b/deployment/deploy_overlay-rh.sh index 0fadd43e30..36f3b09fc2 100755 --- a/deployment/deploy_overlay-rh.sh +++ b/deployment/deploy_overlay-rh.sh @@ -25,7 +25,7 @@ if [ -f /opt/invenio/lib/python/invenio/bibfield_functions/is_type_isbn_issn_uni fi # add invenio-specific overlay -cp -vf invenio/templates/* /opt/invenio/etc/templates/ +cp -vrf invenio/templates/* /opt/invenio/etc/templates/ cp -vrf invenio/lib/* /opt/invenio/lib/python/invenio/ cp -vrf invenio/etc/* /opt/invenio/etc/ cp -vrf invenio/var/* /opt/invenio/var/ diff --git a/invenio/lib/bibformat_elements/bfe_fulltext.py b/invenio/lib/bibformat_elements/bfe_fulltext.py index 50f768eed8..4912fe3536 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 = '' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '' % _("Download fulltext") else: file_icon = '' @@ -87,11 +87,11 @@ def format_element(bfo, style, separator='; ', show_icons='no', focus_on_main_fi additional_str = '' if additionals: - additional_str = ' (%s)' % _("additional files") + additional_str = ' (%s)' % _("additional files") versions_str = '' #if old_versions: - #versions_str = ' (%s)' % _("older versions") + #versions_str = ' (%s)' % _("older versions") if main_urls: out = [] @@ -177,8 +177,6 @@ def format_element(bfo, style, separator='; ', show_icons='no', focus_on_main_fi out += separator.join(url_list) if others_urls: - external_link = len(others_urls) == 1 and _('external link') or _('external links') - out += '%s: ' % external_link.capitalize() url_list = [] for url, descr in others_urls: url_list.append(''+ \ @@ -275,7 +273,7 @@ def get_files(bfo, distinguish_main_and_additional_files=True, include_subformat ## This format should be hidden. continue - descr = _("Fulltext") + descr = filename if complete_url.has_key('y'): descr = complete_url['y'] if descr == 'Fulltext': 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 = '' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '' % _("Download fulltext") elif show_icons.lower() == 'yes': - file_icon = '' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '' % _("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 = '' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '' % _("Download fulltext") elif show_icons.lower() == 'yes': - file_icon = '' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '' % _("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 = '' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '' % _("Download fulltext") elif show_icons.lower() == 'yes': - file_icon = '' % (CFG_SITE_URL, _("Download fulltext")) + file_icon = '' % _("Download fulltext") else: file_icon = '' external_link = len(others_urls) == 1 and _('external link') or _('external links') diff --git a/invenio/templates/format_templates/Default_HTML_brief.tpl b/invenio/templates/format_templates/Default_HTML_brief.tpl index 8ddf8ed257..a6a3c29401 100644 --- a/invenio/templates/format_templates/Default_HTML_brief.tpl +++ b/invenio/templates/format_templates/Default_HTML_brief.tpl @@ -107,7 +107,9 @@ {% block record_brief %} - {{ bfe_fulltext(bfo, show_icons="yes", prefix='', suffix='', focus_on_main_file="yes") }} + {{ bfe_fulltext(bfo, show_icons="yes", + prefix='', + suffix='', focus_on_main_file="yes", separator="") }} {% block record_header %}