diff --git a/themes/finc/scss/compiled.scss b/themes/finc/scss/compiled.scss index 45d397b30f47cc94ad50a11a0f4dd0294846868d..12a4e2b53dbe0aeb4e671c8f00b31b87df8788f8 100644 --- a/themes/finc/scss/compiled.scss +++ b/themes/finc/scss/compiled.scss @@ -1998,6 +1998,18 @@ footer { } //// Search results +.result-body { + h2 { + margin: 0; + } +} + +// re-define header for records in list of result, #19396 +header { + background-color: transparent; + width: auto; +} + //// Add top padding to sidebar and content for better looks; .mainbody, .sidebar { diff --git a/themes/finc/templates/RecordDriver/DefaultRecord/result-list.phtml b/themes/finc/templates/RecordDriver/DefaultRecord/result-list.phtml index 3ec38ca856e328fb6bc1e1ecd31d6374080dfdc5..e444addd9f72f6d878e6286bedba3e239ad40853 100644 --- a/themes/finc/templates/RecordDriver/DefaultRecord/result-list.phtml +++ b/themes/finc/templates/RecordDriver/DefaultRecord/result-list.phtml @@ -32,14 +32,17 @@ if ($cover): <?php endif ?> <div class="media-body"> <div class="result-body"> - <div> - <a id="<?=$describedById?>" href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>" lang=""> - <?=$this->record($this->driver)->getTitleHtml()?> - </a> - </div> + <?php /* finc: add header element for title and author; use h2 for record title; #19396 */ ?> + <header> + <h2> + <a id="<?=$describedById?>" href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>" lang=""> + <?=$this->record($this->driver)->getTitleHtml()?> + </a> + </h2> - <div> <?php if ($this->driver->isCollection()): ?> + </header> + <div> <?=implode('<br>', array_map([$this, 'escapeHtml'], $this->driver->getSummary())); ?> <?php else: ?> <?php $summAuthors = $this->driver->getPrimaryAuthorsWithHighlighting(); @@ -50,13 +53,15 @@ if ($cover): <a href="<?=$this->record($this->driver)->getLink('author', $this->highlight($summAuthor, null, true, false))?>" class="author"><?=$this->highlight($summAuthor)?></a><?=$i + 1 < $authorCount ? ',' : ''?> <?php endforeach; ?> <?php endif; ?> + </header> + <div> <?php /* finc-specific from here, #8639, #7345 - CK */ /* finc-specific: nxt line #8639 - CK */ ?> <?php $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublishDateSort(); ?> <?php if (!empty($journalTitle)): ?> - <?=!empty($summAuthor) ? '<br />' : ''?> + <?php /* finc: remove linebreak #19396 */ ?> <?=$this->transEsc('Published in')?> <?php $containerSource = $this->driver->getSourceIdentifier(); ?> <?php $containerID = $this->driver->getContainerRecordID(); ?> @@ -65,7 +70,7 @@ if ($cover): <?php /* finc-specific: nxt line #8639 - CK */ ?> <?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate) . ')' : ''?> <?php elseif (!empty($summDate)): ?> - <?=!empty($summAuthor) ? '<br />' : ''?> + <?php /* finc: remove linebreak #19396 */ ?> <?php /* finc-specific: nxt line #8639 - CK */ ?> <?=$this->transEsc('Published') . ' ' . $this->escapeHtml($summDate)?> <?php endif; ?> diff --git a/themes/finc/templates/RecordDriver/FincMissing/result-list.phtml b/themes/finc/templates/RecordDriver/FincMissing/result-list.phtml index d6edbf31147404a0e6ef590d9cebf01b682b780e..025825b978b779f94988cbf6d0376f756c5606c9 100644 --- a/themes/finc/templates/RecordDriver/FincMissing/result-list.phtml +++ b/themes/finc/templates/RecordDriver/FincMissing/result-list.phtml @@ -37,13 +37,15 @@ if ($cover): <?php endif ?> <div class="media-body"> <div class="result-body"> - <div> - <?php /* We don't use links for missing records as they would lead nowhere - CK */ ?> - <span href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>" lang=""> - <?=$this->record($this->driver)->getTitleHtml()?> - </span> - </div> - + <?php /* finc: add header element and use h2 for record title #19396 */ ?> + <header> + <h2> + <?php /* We don't use links for missing records as they would lead nowhere - CK */ ?> + <span href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>" lang=""> + <?=$this->record($this->driver)->getTitleHtml()?> + </span> + </h2> + </header> <?php /* We don't display formats nor previews nor other details for missing records - CK */ ?> diff --git a/themes/finc/templates/RecordDriver/SolrAI/result-list.phtml b/themes/finc/templates/RecordDriver/SolrAI/result-list.phtml index 6b0dbed4c441bd562fde9d656299f5d376218826..5c6d087734902e76972133d50d5f854754cf88c9 100644 --- a/themes/finc/templates/RecordDriver/SolrAI/result-list.phtml +++ b/themes/finc/templates/RecordDriver/SolrAI/result-list.phtml @@ -31,13 +31,17 @@ if ($cover): <?php endif ?> <div class="media-body"> <div class="result-body"> - <div> - <a id="<?=$describedById?>" href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>" lang=""> - <?=$this->record($this->driver)->getTitleHtml()?> - </a> - </div> - <div> + <?php /* finc: add header element and use h2 for record title #19396 */ ?> + <header> + <h2> + <a id="<?=$describedById?>" href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>" lang=""> + <?=$this->record($this->driver)->getTitleHtml()?> + </a> + </h2> + <?php if ($this->driver->isCollection()): ?> + </header> + <div> <?=implode('<br>', array_map([$this, 'escapeHtml'], $this->driver->getSummary())); ?> <?php else: ?> <?php $summAuthors = $this->driver->getPrimaryAuthorsWithHighlighting(); @@ -48,11 +52,13 @@ if ($cover): <a href="<?=$this->record($this->driver)->getLink('author', $this->highlight($summAuthor, null, true, false))?>" class="author"><?=$this->highlight($summAuthor)?></a><?=$i + 1 < $authorCount ? ',' : ''?> <?php endforeach; ?> <?php endif; ?> + </header> + <div> <?php /* finc-specific from here - 04.16 - CK */ ?> <?php $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublishDateSort(); ?> <?php if (!empty($journalTitle)): ?> - <?=!empty($summAuthor) ? '<br />' : ''?> + <?php /* finc: remove linebreak #19396 */ ?> <?=$this->transEsc('Published in')?> <?php $containerSource = $this->driver->getSourceIdentifier(); $containerID = $this->driver->getContainerRecordID(); @@ -76,7 +82,7 @@ if ($cover): <?php /* finc-specific -END - 04.16 - CK */ ?> <?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate) . ')' : ''?> <?php elseif (!empty($summDate)): ?> - <?=!empty($summAuthor) ? '<br />' : ''?> + <?php /* finc: remove linebreak #19396 */ ?> <?php /* finc-specific: nxt line #8639 - CK */ ?> <?=$this->transEsc('Published') . ' ' . $this->escapeHtml($summDate)?> <?php endif; ?>