Browse Source

fixed bug where notes were not sent to relais

9.x-1.0
Paul Pound 1 year ago
parent
commit
c6c6394c67
  1. 4
      includes/relais.inc

4
includes/relais.inc

@ -85,7 +85,7 @@ function upei_roblib_ill_build_relais_arr($form_state) {
$relais_arr['ElectronicDelivery']['DeliveryAddress'] = $relais_arr['ElectronicDelivery']['MessagingAddress'] = $relais_arr['ElectronicDelivery']['DeliveryAddress'] = $relais_arr['ElectronicDelivery']['MessagingAddress'] =
$relais_arr['DeliveryAddress']['DeliveryAddress']; $relais_arr['DeliveryAddress']['DeliveryAddress'];
} }
$request_info = upei_roblib_ill_request_info_array($relais_arr['BibliographicInfo'], $ill_request['notes']); $request_info = upei_roblib_ill_request_info_array($relais_arr['BibliographicInfo'], $values['notes']);
$relais_arr['RequestInfo'] = $request_info; $relais_arr['RequestInfo'] = $request_info;
$relais_arr['PublisherInfo']['PublicationDate'] = isset($ill_request['Date']) ? $relais_arr['PublisherInfo']['PublicationDate'] = isset($ill_request['Date']) ?
$ill_request['Date'] : ''; $ill_request['Date'] : '';
@ -132,7 +132,7 @@ function upei_roblib_ill_authenticate($barcode, $surname) {
$response_data['Problem']['HR_Message'] = upei_roblib_ill_build_err_msg($human_readable); $response_data['Problem']['HR_Message'] = upei_roblib_ill_build_err_msg($human_readable);
return $response_data; return $response_data;
} }
$response_data = json_decode($response->getBody(),TRUE); $response_data = json_decode($response->getBody(),TRUE);
$status_code = $response->getStatusCode(); $status_code = $response->getStatusCode();
if ($status_code == '200') { if ($status_code == '200') {

Loading…
Cancel
Save