diff --git a/includes/relais.inc b/includes/relais.inc index b10036c..64f3e02 100644 --- a/includes/relais.inc +++ b/includes/relais.inc @@ -15,7 +15,7 @@ function upei_roblib_ill_add_request($form_state, $aid) { module_load_include('inc', 'upei_roblib_ill', 'includes/utilities'); $url = variable_get('upei_roblib_ill_add_url', 'https://caul-cbua.relais-host.com/portal-service/request/add'); $relais_arr = array( - "SupplyingLibrarySymbol" => 'PCU', + "SupplyingLibrarySymbol" => variable_get('upei_roblib_ill_library_symbol','PCU'), ); $relais_arr['BibliographicInfo'] = upei_roblib_ill_clean_array($form_state['storage']['upei_roblib_ill_request_form']); $relais_arr['DeliveryAddress'] = upei_roblib_ill_clean_array($form_state['storage']['upei_roblib_ill_auth_form']); diff --git a/includes/utilities.inc b/includes/utilities.inc index 4e3732b..271289a 100644 --- a/includes/utilities.inc +++ b/includes/utilities.inc @@ -69,7 +69,7 @@ function upei_roblib_ill_get_request_variable($variable) { function upei_roblib_ill_request_info_array($values, $notes) { $requestInfo = array(); $genre = $values['Genre']; - $requestInfo['DateSubmitted'] = date('Y-m-d'); + $requestInfo['DateSubmitted'] = date('Y-m-d H:i:s'); $requestInfo['Notes'] = $notes; if ($genre == 'book' || $genre == 'chapter') { $requestInfo['ServiceType'] = 'L';