Skip to content
Snippets Groups Projects
Commit 6a3c3456 authored by Robert Lange's avatar Robert Lange Committed by Dorian Merz
Browse files

refs #18780 [fid_adlr] fix multiple titles

* remove duplicates
* use \Zend\View\Helper\Placeholder\Container\AbstractContainer::SET to overwrite title instead of append
parent 5422cea4
Branches
Tags
No related merge requests found
...@@ -30,8 +30,6 @@ if (!$offlineMode) { ...@@ -30,8 +30,6 @@ if (!$offlineMode) {
$offlineMode = 'ils-offline'; $offlineMode = 'ils-offline';
} }
} }
// Set page title.
$this->headTitle($this->driver->getBreadcrumb());
$isRecordOrdered = $this->getit($this->driver)->isRecordOrdered(); $isRecordOrdered = $this->getit($this->driver)->isRecordOrdered();
?> ?>
......
<!-- fid_adlr: recordtab - description --> <!-- fid_adlr: recordtab - description -->
<?php <?php
// Set page title.
$this->headTitle($this->driver->getBreadcrumb());
$formatter = $this->recordDataFormatter(); $formatter = $this->recordDataFormatter();
$mainFields = $formatter->getData($this->driver, $formatter->getDefaults('description')); $mainFields = $formatter->getData($this->driver, $formatter->getDefaults('description'));
?> ?>
......
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
$offlineMode = 'ils-offline'; $offlineMode = 'ils-offline';
} }
} }
// Set page title.
$this->headTitle($this->driver->getBreadcrumb());
?> ?>
<?php if ($user && $getitConfig['bossData']): ?> <?php if ($user && $getitConfig['bossData']): ?>
......
<!-- fid_adlr: recordtab - staffviewai --> <!-- fid_adlr: recordtab - staffviewai -->
<?php <?php
// Set page title.
$this->headTitle($this->driver->getBreadcrumb());
?> ?>
<table class="citation table table-striped"> <table class="citation table table-striped">
<?php foreach ($this->driver->getAIRecord() as $field => $values): ?> <?php foreach ($this->driver->getAIRecord() as $field => $values): ?>
......
<!-- fid_adlr: recordtab - staffviewmarc --> <!-- fid_adlr: recordtab - staffviewmarc -->
<?php <?php
// Set page title.
$this->headTitle($this->driver->getBreadcrumb());
?> ?>
<?=\VuFind\XSLT\Processor::process('record-marc.xsl', $this->driver->getXML('marc21'))?> <?=\VuFind\XSLT\Processor::process('record-marc.xsl', $this->driver->getXML('marc21'))?>
<?php /* the following introduced in 9934*/ ?> <?php /* the following introduced in 9934*/ ?>
......
<!-- fid_adlr: recordtab - toc --> <!-- fid_adlr: recordtab - toc -->
<?php <?php
// Set page title.
$this->headTitle($this->driver->getBreadcrumb());
$formatter = $this->recordDataFormatter(); $formatter = $this->recordDataFormatter();
$mainFields = $formatter->getData($this->driver, $formatter->getDefaults('toc')); $mainFields = $formatter->getData($this->driver, $formatter->getDefaults('toc'));
?> ?>
......
...@@ -4,11 +4,6 @@ ...@@ -4,11 +4,6 @@
<?php $this->headThemeResources(); ?> <?php $this->headThemeResources(); ?>
<?php /* remove meta because of W3C Validator error - CK */ <?php /* remove meta because of W3C Validator error - CK */
/* <meta charset="utf-8"> */ /* <meta charset="utf-8"> */
if (empty($this->headTitle()) || $this->headTitle()->toString() == "<title></title>") {
$this->headTitle($this->translate('adlr_head_title'));
}
?> ?>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/> <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
...@@ -20,7 +15,7 @@ ...@@ -20,7 +15,7 @@
<? /* END TODO */ ?> <? /* END TODO */ ?>
<?=$this->headMeta()?> <?=$this->headMeta()?>
<?=$this->headTitle()?> <?=$this->headTitle(' ' . $this->translate('adlr_head_title'))?>
<?php <?php
// Set up OpenSearch link: // Set up OpenSearch link:
$this->headLink( $this->headLink(
......
...@@ -18,6 +18,7 @@ if ($this->export()->recordSupportsFormat($this->driver, 'RDF')) { ...@@ -18,6 +18,7 @@ if ($this->export()->recordSupportsFormat($this->driver, 'RDF')) {
$this->layout()->breadcrumbs = '<li>' . $this->searchMemory()->getLastSearchLink($this->transEsc('Search'), '', '</li> ') . $this->layout()->breadcrumbs = '<li>' . $this->searchMemory()->getLastSearchLink($this->transEsc('Search'), '', '</li> ') .
'<li class="active">' . $this->recordLink()->getBreadcrumb($this->driver) . '</li> '; '<li class="active">' . $this->recordLink()->getBreadcrumb($this->driver) . '</li> ';
$this->layout()->title = $this->driver->getShortTitle(); $this->layout()->title = $this->driver->getShortTitle();
$this->headTitle($this->driver->getBreadcrumb() . ' -');
?> ?>
<?php /* fid_adlr:Remove previous and next record refs #15650 - GG */ ?> <?php /* fid_adlr:Remove previous and next record refs #15650 - GG */ ?>
......
<!-- fid_adlr: search - results --> <!-- fid_adlr: search - results -->
<?php <?php
// Set up page title:
$this->headTitle($this->translate('adlr_head_title'));
$lookfor = $this->results->getUrlQuery()->isQuerySuppressed() ? '' : $this->params->getDisplayQuery(); $lookfor = $this->results->getUrlQuery()->isQuerySuppressed() ? '' : $this->params->getDisplayQuery();
$this->headTitle($this->translate('Search Results') . (empty($lookfor) ? '' : " - {$lookfor} - "));
// Set up search box: // Set up search box:
$this->layout()->searchbox = $this->context($this)->renderInContext( $this->layout()->searchbox = $this->context($this)->renderInContext(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment