Skip to content
Snippets Groups Projects
Commit 32e41632 authored by Alexander Purr's avatar Alexander Purr Committed by André Lahmann
Browse files

refs #20359 [finc] improve parsing of PAIA data

* trim starting whitespaces on firstname
* needs PR on PAIA driver
parent 5d6baeac
No related merge requests found
......@@ -1575,4 +1575,21 @@ class PAIA extends \VuFind\ILS\Driver\PAIA
}
return $retval;
}
/**
* PAIA support function to implement ILS specific parsing of user_details
* Calling parent method and just trimming firstname
* TODO: needs PR in \VuFind\ILS\Driver\PAIA::paiaParseUserDetails
*
* @param string $patron User id
* @param array $user_response Array with PAIA response data
*
* @return array
*/
protected function paiaParseUserDetails($patron, $user_response)
{
$user = parent::paiaParseUserDetails($patron, $user_response);
$user['firstname'] = trim($user['firstname']);
return $user;
}
}
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