From 2eb105285a6361b20d87c90680a0b85200a2d975 Mon Sep 17 00:00:00 2001 From: ppound Date: Wed, 18 Mar 2020 09:56:30 -0300 Subject: [PATCH] disable ill with message regarding covid-19 --- includes/form.inc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/includes/form.inc b/includes/form.inc index 543815f..7b6a484 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -38,6 +38,8 @@ function upei_roblib_ill_form($form, &$form_state) { */ function upei_roblib_ill_form_validate($form, &$form_state) { 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 (!valid_email_address($form_state['values']['DeliveryAddress'])) { form_set_error('DeliveryAddress', t('Your email address appears to be invalid.')); @@ -181,10 +183,10 @@ function upei_roblib_ill_auth_form($form, &$form_state) { module_load_include('inc', 'upei_roblib_ill', 'includes/utilities'); $form['#prefix'] = upei_roblib_format_biblio_info($form_state); $form['#suffix'] = '
* = Required Field
-
Protection of Privacy - The personal information requested -on this form is collected under the authority of Section 31(c) of the PEI +
Protection of Privacy - The personal information requested +on this form is collected under the authority of Section 31(c) of the PEI Freedom of Information and Protection of Privacy Act and will be protected - under Part 2 of that Act. It will be used for the purpose of administering + under Part 2 of that Act. It will be used for the purpose of administering and providing library service. Direct any questions about this collection to Health Sciences and Scholarly Communications Librarian at ill@upei.ca, 550 University Ave, Charlottetown PE , 902-566-0453.
'; @@ -331,7 +333,12 @@ Freedom of Information and Protection of Privacy Act and will be protected */ function upei_roblib_ill_request_form($form, &$form_state) { module_load_include('inc', 'upei_roblib_ill', 'includes/utilities'); - $form['#prefix'] = '
'; + $emergency_message = '
Due to ongoing Public Health concerns, we are unable to + accept any Interlibrary Loan (LL) requests at this time. Requests previously + submitted are also unlikely to be filled until staff here and at our partner + libraries are able to return to their workplaces. We apologize for any + inconvenience.
'; + $form['#prefix'] = $emergency_message . '
'; $form['#suffix'] = '
* = Required Field
'; $type = upei_roblib_ill_get_request_variable('genre'); $genre = empty($type) ? 'article' : $type;