Commit 6a35e07a authored by Robert Lange's avatar Robert Lange
Browse files

refs #21657 [finc] move changes in vufind searchspecs.yaml to finc

* move data-containerTitle.phtml and result-list.phtml to finc
* use fallback search for superior journals in default records too
parent a8264e7a
......@@ -369,7 +369,7 @@ JournalTitle:
series2:
- [onephrase, 50]
- [and , ~]
FilterQuery: "format:Journal OR format:Article OR format:ElectronicBookPart"
FilterQuery: "format:Journal OR format:Article OR format:ElectronicBookPart OR format:ElectronicBookComponentPart"
# ExactSettings:
# DismaxFields:
# - title_full_unstemmed^450
......
......@@ -176,7 +176,7 @@ JournalTitle:
series2:
- [onephrase, 50]
- [and, null]
FilterQuery: 'format:Journal OR format:Article OR format:ElectronicBookPart'
FilterQuery: 'format:Journal OR format:Article OR format:ElectronicBookPart OR format:ElectronicBookComponentPart'
Title:
DismaxParams:
-
......
......@@ -176,7 +176,7 @@ JournalTitle:
series2:
- [onephrase, 50]
- [and, null]
FilterQuery: 'format:Journal OR format:Article OR format:ElectronicBookPart'
FilterQuery: 'format:Journal OR format:Article OR format:ElectronicBookPart OR format:ElectronicBookComponentPart'
Title:
DismaxParams:
-
......
<!-- finc: RecordDriver - DefaultRecord - data-containerTitle -->
<?php
$containerSource = $this->driver->getSourceIdentifier();
$containerID = $this->driver->getContainerRecordID();
$ref = $this->driver->getContainerReference();
$link = $containerID
? $this->recordLink()->getUrl("$containerSource|$containerID", $data, 'JournalTitle')
: $this->record($this->driver)->getLink('journaltitle', $data);
?>
<a href="<?=$link?>"><?=$this->escapeHtml($data)?></a>
<?=empty($ref) ? '' : $this->escapeHtml($ref)?>
<!-- finc: RecordDriver - DefaultRecord - data-containerTitle - END -->
......@@ -61,7 +61,7 @@ if ($cover):
<?php $containerSource = $this->driver->getSourceIdentifier(); ?>
<?php $containerID = $this->driver->getContainerRecordID(); ?>
<?php /* TODO: handle highlighting more elegantly here: */ ?>
<a href="<?=($containerID ? $this->recordLink()->getUrl("$containerSource|$containerID") : $this->record($this->driver)->getLink('journaltitle', str_replace(['{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'], '', $journalTitle)))?>"><?=$this->highlight($journalTitle) ?></a>
<a href="<?=($containerID ? $this->recordLink()->getUrl("$containerSource|$containerID", $journalTitle, 'JournalTitle') : $this->record($this->driver)->getLink('journaltitle', str_replace(['{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'], '', $journalTitle)))?>"><?=$this->highlight($journalTitle) ?></a>
<?php /* finc-specific: nxt line #8639 - CK */ ?>
<?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate) . ')' : ''?>
<?php elseif (!empty($summDate)): ?>
......
Supports Markdown
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