diff --git a/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php b/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php index 2085556a2f83b4a5b2182c2c2b41428c589c6c81..361aab21df2c3edb8a51103b970143f73bd5a387 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php +++ b/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php @@ -381,7 +381,7 @@ class SierraRest extends AbstractBase implements TranslatorAwareInterface, $result = $this->makeRequest( ['v3', 'patrons', $patronId], - [], + ['fields' => 'names,emails'], 'GET', ['cat_username' => $username, 'cat_password' => $password] ); @@ -401,7 +401,7 @@ class SierraRest extends AbstractBase implements TranslatorAwareInterface, 'lastname' => $lastname, 'cat_username' => $username, 'cat_password' => $password, - 'email' => '', + 'email' => !empty($result['emails']) ? $result['emails'][0] : '', 'major' => null, 'college' => null ];