Skip to content
Snippets Groups Projects
Commit bfc4cf11 authored by André Lahmann's avatar André Lahmann Committed by Robert Lange
Browse files

refs #22989 [de_d13] bugfix for undefined property check: title hold link

parent 7003b682
No related merge requests found
...@@ -335,12 +335,14 @@ class FincLibero extends FincILS implements TranslatorAwareInterface ...@@ -335,12 +335,14 @@ class FincLibero extends FincILS implements TranslatorAwareInterface
$isTitleHold $isTitleHold
&& &&
( (
!isset($this->noTitleHoldStatuses) !isset($this->noTitleHoldStatuses)
|| empty($this->noTitleHoldStatuses) || empty($this->noTitleHoldStatuses)
|| !in_array($item['localIlsStatus'], $this->noTitleHoldStatuses) || !in_array($item['localIlsStatus'], $this->noTitleHoldStatuses)
) )
) { ) {
// this is a titleHold and we show TitleHoldLink
$result_item['item_id'] = $titleHoldId; $result_item['item_id'] = $titleHoldId;
$result_item['addTitleHoldLink'] = true;
} else { } else {
$result_item['item_id'] = $item['id']; $result_item['item_id'] = $item['id'];
} }
...@@ -348,10 +350,6 @@ class FincLibero extends FincILS implements TranslatorAwareInterface ...@@ -348,10 +350,6 @@ class FincLibero extends FincILS implements TranslatorAwareInterface
// custom DAIA field used in getHoldLink() // custom DAIA field used in getHoldLink()
$result_item['ilslink'] $result_item['ilslink']
= ($item['href'] ?? $doc_href); = ($item['href'] ?? $doc_href);
// show TitleHoldLink except for defined noTitleHoldStatuses
if ($isTitleHold && !in_array($item['localIlsStatus'], $this->noTitleHoldStatuses)) {
$result_item['addTitleHoldLink'] = true;
}
// count items // count items
$number++; $number++;
......
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