Skip to content
Snippets Groups Projects
Commit fbc2b8e5 authored by Frank Morgner's avatar Frank Morgner
Browse files

refs #13903

* extends namespace for regex to receive barcodes from DAIA id
parent 3813b483
Branches
Tags instance/fid_bbi/staging/20201203
No related merge requests found
......@@ -466,7 +466,13 @@ class FincILS extends PAIA implements LoggerAwareInterface
*/
protected function getItemBarcode($item)
{
if (isset($item['id']) && preg_match("/^".$this->daiaIdPrefix."([A-Za-z0-9]+):([A-Za-z0-9]+)$/", $item['id'], $matches)) {
if (isset($item['id'])
&& preg_match(
"/^" . $this->daiaIdPrefix . "([A-Za-z0-9]+):([^:]+)$/",
$item['id'],
$matches
)
) {
return array_pop($matches);
}
return parent::getItemBarcode($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