Skip to content
Snippets Groups Projects
Commit dfe1c9c3 authored by Robert Lange's avatar Robert Lange
Browse files

refs #20835 [finc] override VuFind getMyStorageRetrievalRequests

* add additional filter on item for daiaPrefix and on storageid for stackURIS
* method moved from de_15 and de_l152
parent c5e1b7ed
Branches
Tags
No related merge requests found
......@@ -731,6 +731,34 @@ class FincLibero extends FincILS implements TranslatorAwareInterface
return $this->mapPaiaItems($items, 'myHoldsMapping');
}
/**
* This method queries the ILS for a patron's current storage retrieval requests.
* Returns items with properties:
* - document.status = 2(ordered)
* - document.storage und document.storageid haben einen bestimmten Wert (Magazin)
*
* @param array $patron Array returned from patronLogin()
*
* @return array
* @note identical to de_15\FincLibero:getMyStorageRetrievalRequests
*/
public function getMyStorageRetrievalRequests($patron)
{
// filters for getMyStorageRetrievalRequests are:
// status = 2 - ordered
// document.storage und document.storageid do have a certain location (Magazin, but not Lesesaal)
// stackURIs musst be configured in FincLibero.ini as required
$filter = [
'status' => [2],
'storageid' => $this->stackURIs,
'regex' => ['item' => "/^(" . $this->getDaiaIdPrefixNamespace() . ").*$/"]
];
// get items-docs for given filters
$items = $this->paiaGetItems($patron, $filter);
return $this->mapPaiaItems($items, 'myStorageRetrievalRequestsMapping');
}
/**
* Customized getMyTransactions for FincLibero to return items with properties:
* - document.status = 3 (held)
......
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