From e960c1b452bfa70d221c0d14ef4f62521400b237 Mon Sep 17 00:00:00 2001 From: l26yan <l26yan@uwaterloo.ca> Date: Wed, 9 Feb 2022 15:15:55 -0500 Subject: [PATCH] ISTWCMS-5368 Add 'Reference author: ' to beginning of title on browsers tab of contributor page --- uw_fdsu_theme_resp.theme | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme index dfe602d6..55405217 100644 --- a/uw_fdsu_theme_resp.theme +++ b/uw_fdsu_theme_resp.theme @@ -44,6 +44,12 @@ function uw_fdsu_theme_resp_preprocess_html(&$variables) { $variables['#attached']['library'][] = 'uw_fdsu_theme_resp/user.login'; break; + // The header/page title on contributors listing page browser + // tab shows "Reference author: " in front of the author's name. + case 'entity.bibcite_contributor.canonical': + $variables['head_title']['title'] = t('Reference author:') . ' ' . $variables['head_title']['title']; + break; + } } -- GitLab