Browse Source

allow ILL with warning message

9.x-1.0
ppound 5 years ago
parent
commit
498bafa5c3
  1. 11
      includes/form.inc

11
includes/form.inc

@ -38,8 +38,6 @@ function upei_roblib_ill_form($form, &$form_state) {
*/ */
function upei_roblib_ill_form_validate($form, &$form_state) { function upei_roblib_ill_form_validate($form, &$form_state) {
module_load_include('inc', 'upei_roblib_ill', 'includes/relais'); module_load_include('inc', 'upei_roblib_ill', 'includes/relais');
form_set_error('Title', t('Inter Library Load is currently unavailable.'));
return;
if ($form_state['step'] == 'upei_roblib_ill_auth_form') { if ($form_state['step'] == 'upei_roblib_ill_auth_form') {
if (!valid_email_address($form_state['values']['DeliveryAddress'])) { if (!valid_email_address($form_state['values']['DeliveryAddress'])) {
form_set_error('DeliveryAddress', t('Your email address appears to be invalid.')); form_set_error('DeliveryAddress', t('Your email address appears to be invalid.'));
@ -333,11 +331,10 @@ Freedom of Information and Protection of Privacy Act and will be protected
*/ */
function upei_roblib_ill_request_form($form, &$form_state) { function upei_roblib_ill_request_form($form, &$form_state) {
module_load_include('inc', 'upei_roblib_ill', 'includes/utilities'); module_load_include('inc', 'upei_roblib_ill', 'includes/utilities');
$emergency_message = '<div class="messages messages--error cl:qosure-notice">Due to ongoing Public Health concerns, we are unable to $emergency_message = '<div class="messages messages--error closure-notice">Libraries are unable
accept any Interlibrary Loan (LL) requests at this time. Requests previously to provide access to physical resources at this time, so, print books, chapters
submitted are also unlikely to be filled until staff here and at our partner from print books, articles from print journal holdings, microfilm/microfiche will not be available.
libraries are able to return to their workplaces. We apologize for any You can still request chapters from ebooks, or journal articles. </div>';
inconvenience. </div>';
$form['#prefix'] = $emergency_message . '<div id="upei-roblib-ill-request-form">'; $form['#prefix'] = $emergency_message . '<div id="upei-roblib-ill-request-form">';
$form['#suffix'] = '<div class="roblib-required">* = Required Field</div></div>'; $form['#suffix'] = '<div class="roblib-required">* = Required Field</div></div>';
$type = upei_roblib_ill_get_request_variable('genre'); $type = upei_roblib_ill_get_request_variable('genre');

Loading…
Cancel
Save