diff --git a/rero_ils/config.py b/rero_ils/config.py
index 1f04e00737..40d0e1fdb0 100644
--- a/rero_ils/config.py
+++ b/rero_ils/config.py
@@ -171,6 +171,10 @@ def _(x):
#: Admin base template
# ADMIN_BASE_TEMPLATE = BASE_TEMPLATE
+# Google
+# =======================
+# THEME_GOOGLE_SITE_VERIFICATION = []
+
# Miscellaneous variable around templates
# =======================
#: Template for security pages.
@@ -1727,6 +1731,7 @@ def _(x):
# Default view code for all organisations view
# TODO: Should be taken into angular
RERO_ILS_SEARCH_GLOBAL_VIEW_CODE = 'global'
+RERO_ILS_SEARCH_GLOBAL_NAME = _('Global catalog')
# Default number of results in facet
RERO_ILS_DEFAULT_AGGREGATION_SIZE = 30
diff --git a/rero_ils/theme/templates/rero_ils/page.html b/rero_ils/theme/templates/rero_ils/page.html
index 8dde401f19..047f79825e 100644
--- a/rero_ils/theme/templates/rero_ils/page.html
+++ b/rero_ils/theme/templates/rero_ils/page.html
@@ -48,7 +48,8 @@
{%- endblock head_meta %}
{%- block head_title %}
{%- set title = title or _(config.THEME_SITENAME) or _('Invenio') %}
-
{{title}}
+ {%- set org_name = _(viewcode | viewOrganisationName) -%}
+ {{ title }}: {{ org_name }}
{%- endblock head_title %}
{%- block head_links %}
diff --git a/rero_ils/theme/views.py b/rero_ils/theme/views.py
index 582f1e938b..b950420c60 100644
--- a/rero_ils/theme/views.py
+++ b/rero_ils/theme/views.py
@@ -28,9 +28,8 @@
from invenio_jsonschemas import current_jsonschemas
from invenio_jsonschemas.errors import JSONSchemaNotFound
-from rero_ils.modules.organisations.api import Organisation
-
from .menus import init_menu_lang, init_menu_profile, init_menu_tools
+from ..modules.organisations.api import Organisation
from ..permissions import can_access_professional_view
blueprint = Blueprint(
@@ -151,6 +150,16 @@ def url_active(string, target):
return string
+@blueprint.app_template_filter('viewOrganisationName')
+def view_organisation_name(viewcode):
+ """Get view name."""
+ if viewcode != current_app.config.get('RERO_ILS_SEARCH_GLOBAL_VIEW_CODE'):
+ org = Organisation.get_record_by_viewcode(viewcode)
+ if org:
+ return org['name']
+ return current_app.config.get('RERO_ILS_SEARCH_GLOBAL_NAME', '')
+
+
def prepare_jsonschema(schema):
"""Json schema prep."""
schema = copy.deepcopy(schema)