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

refs #20819 [de_105] refactor getMyILLrequests

* move to finc
* adapt regex config
* TODO: remove init()
* refactor ILL config
parent 5a86671b
1 merge request!3refs #20945 [de_105] w3c validation - syntax fixes
......@@ -74,4 +74,4 @@ extraHoldFields = pickUpLocation
; Interlibrary loans setting
[ILLRequests]
; Filter settings for diplaying ILL request at separately views
filterReserved = "ILL:.*"
itemPattern = "/^ILL:.*$/"
......@@ -43,14 +43,6 @@ namespace de_105\ILS\Driver;
*/
class FincLibero extends \finc\ILS\Driver\FincLibero
{
/**
* Limitations of ILL requests to filter holds
*
* @var string
* @access protected
*/
protected $illRequestsFilterReserved;
/**
* Initialize the driver.
*
......@@ -121,31 +113,6 @@ class FincLibero extends \finc\ILS\Driver\FincLibero
return [];
}
/**
* Customized getMyILLRequests-method to return items with properties:
* - document.item = URI dürfte nicht zum UBL/eigenen Namespace gehören
* copied from de_zi4/FincLibero
*
* @param array $patron Array returned from patronLogin()
* @todo refactor, check #11718 and #17230
*
* @return array
*/
public function getMyILLRequests($patron)
{
// filters for getMyILLRequests are:
// document.item = URI must not part of own UBL specific namespace
$filter = ['regex'=>
[
//'item' => "/^(?:(?!".$this->getDaiaIdPrefixNamespace().")).*$/",
'item' => "/^".$this->illRequestsFilterReserved."$/"
]
];
// get items-docs for given filters
$items = $this->paiaGetItems($patron, $filter);
return $this->mapPaiaItems($items, 'myHoldsMapping');
}
/**
* Returns an array with status information for provided item.
*
......
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