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

refs #20813 [de_105] remove getItemStatus

* moved to finc
* overrides getItemNotes to keep TUF specifics
parent 2127dd29
1 merge request!3refs #20945 [de_105] w3c validation - syntax fixes
......@@ -114,42 +114,21 @@ class FincLibero extends \finc\ILS\Driver\FincLibero
}
/**
* Returns an array with status information for provided item.
*
* @param array $item Array with DAIA item data
* {@inheritdoc}
* DE-105 specific, avoid duplicate texts for available status by ommission
* of item status
*
* @param array $return
* @param array $item
* @return array
*/
protected function getItemStatus($item)
protected function getItemNotes($return, $item)
{
$return = \finc\ILS\Driver\FincILS::getItemStatus($item);
$return['awlRecordId'] = $this->getBoundItemId($item);
// is this item bound with another item?
if ($return['awlRecordId'] != null) {
// overwrite any existing link settings as we need to order this item
// via the bound item
$return['addLink'] =
$return['addStorageRetrievalRequestLink'] =
$return['addILLRequestLink'] =
$return['addEmailHoldLink'] = false;
$return['awlRecordStatus'] =
current($this->getStatus($return['awlRecordId']));
}
// add all item specific information from DAIA field about to item_notes
// (https://intern.finc.info/issues/7863)
$about = (isset($item['about'])) ? [$item['about']] : [];
$return['item_notes'] = array_unique(
return array_unique(
array_merge(
// DE-105 specific, avoid duplicate texts for available status
// (array)$return['status'],
// DE-105 specific - END
$return['item_notes'],
$about
$item['about'] ?? []
)
);
return $return;
}
}
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