diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme index 86b8b4768a48cd8c7f6149e47cb889eabc043286..296224636b3302b0963096762b510e34937e3962 100644 --- a/uw_fdsu_theme_resp.theme +++ b/uw_fdsu_theme_resp.theme @@ -37,10 +37,25 @@ function uw_fdsu_theme_resp_preprocess_html(&$variables) { _uw_fdsu_theme_resp_add_favicons($variables); - // Add Javascript only on the user login page. $route_name = \Drupal::routeMatch()->getRouteName(); - if ($route_name == 'user.login') { - $variables['#attached']['library'][] = 'uw_fdsu_theme_resp/user.login'; + switch ($route_name) { + // Add Javascript only on the user login page. + case 'user.login': + $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; + + // Teh header/page title on keywords listing page browser + // tab shows "Reference keyword: " in front of the keyword. + case 'entity.bibcite_keyword.canonical': + $variables['head_title']['title'] = t('Reference keyword:') . ' ' . $variables['head_title']['title']; + break; + } }