Skip to content
Snippets Groups Projects
Commit 1b84a82c authored by Liam Morland's avatar Liam Morland
Browse files

Merge branch 'feature/ISTWCMS-5368-l26yan-Adjust-BibCite-views-on-listing-pages' into '1.0.x'

ISTWCMS-5368: Add prefixes to bibcite page titles

See merge request !65
parents 6304af33 bb609c90
No related branches found
No related tags found
1 merge request!65ISTWCMS-5368: Add prefixes to bibcite page titles
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment