Browse Source

attempt to add time to the dates submitted and made library symbol a variable

9.x-1.0
Paul Pound 8 years ago
parent
commit
cdbf3db90a
  1. 2
      includes/relais.inc
  2. 2
      includes/utilities.inc

2
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']);

2
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';

Loading…
Cancel
Save