Browse Source

made source title a required field as relais requires it

9.x-1.0
Paul Pound 8 years ago
parent
commit
997ae8196d
  1. 2
      includes/form.inc
  2. 1
      includes/relais.inc

2
includes/form.inc

@ -302,7 +302,7 @@ function upei_roblib_ill_request_form($form, &$form_state) {
'#default_value' => upei_roblib_ill_get_request_variable('title'), '#default_value' => upei_roblib_ill_get_request_variable('title'),
'#description' => 'Journal or Book Title', '#description' => 'Journal or Book Title',
'#size' => 50, '#size' => 50,
'#required' => FALSE, '#required' => TRUE,
); );
$form['ArticleTitle'] = array( $form['ArticleTitle'] = array(
'#type' => 'textarea', '#type' => 'textarea',

1
includes/relais.inc

@ -54,6 +54,7 @@ function upei_roblib_ill_add_request($form_state, $aid) {
} }
$response_json = $result->data; $response_json = $result->data;
$response_arr = json_decode($response_json, TRUE); $response_arr = json_decode($response_json, TRUE);
$response_arr['ConfirmMessage'] = isset($response_arr['Problem']['ErrorMessage']) ? $response_arr['Problem']['ErrorMessage'] : $response_arr['ConfirmMessage'];
upei_roblib_ill_log_request($relais_arr, $response_arr); upei_roblib_ill_log_request($relais_arr, $response_arr);
return $response_arr; return $response_arr;
} }

Loading…
Cancel
Save