TRUE, '#type' => 'textfield', '#size' => 200, '#title' => t('The Relais AddRequest URL'), '#description' => t('The URL for the Relais ILL server AddRequest service, the default is https://caul-cbua.relais-host.com/portal-service/request/add'), '#default_value' => variable_get('upei_roblib_ill_add_url', 'https://caul-cbua.relais-host.com/portal-service/request/add'), ]; $form['upei_roblib_ill_auth_url'] = [ '#required' => TRUE, '#type' => 'textfield', '#size' => 200, '#title' => t('The Relais Auth URL'), '#description' => t('The URL for the Relais ILL server Auth service (retrieve the aid), the default is https://caul-cbua.relais-host.com/portal-service/user/authentication'), '#default_value' => variable_get('upei_roblib_ill_auth_url', 'https://caul-cbua.relais-host.com/portal-service/user/authentication'), ]; $form['upei_roblib_ill_library_symbol'] = [ '#required' => TRUE, '#type' => 'textfield', '#size' => 200, '#title' => t('Your Relais Library Symbol'), '#description' => t('Your Relais Library Symbol'), '#default_value' => variable_get('upei_roblib_ill_library_symbol'), ]; $form['upei_roblib_ill_relais_key'] = [ '#required' => TRUE, '#type' => 'textfield', '#size' => 200, '#title' => t('The Relais API key'), '#description' => t('The API key used to communicate with the Relais API, Contact Relais International to get your key'), '#default_value' => variable_get('upei_roblib_ill_relais_key'), ]; $form['upei_roblib_ill_doi_openurl_pid'] = [ '#required' => TRUE, '#type' => 'textfield', '#size' => 200, '#title' => t('OpenURL PID'), '#description' => t('An identifier to call yourself, for the OpenURL endpoint. To use this service you first need to register for an account here: http://www.crossref.org/requestaccount/'), '#default_value' => variable_get('upei_roblib_ill_doi_openurl_pid'), ]; $form['upei_roblib_ill_contact_email'] = [ '#required' => TRUE, '#type' => 'textfield', '#size' => 200, '#title' => t('Contact Email'), '#description' => t('The email address we want to show after a user has submitted an ILL request'), '#default_value' => variable_get('upei_roblib_ill_contact_email', 'ill@upei.ca'), ]; $form['upei_roblib_ill_contact_phone'] = [ '#required' => TRUE, '#type' => 'textfield', '#size' => 200, '#title' => t('Contact Phone Number'), '#description' => t('The phone number we want to show to the user after a user has submitted an ILL request'), '#default_value' => variable_get('upei_roblib_ill_contact_phone', '902-566-0445'), ]; $form['upei_roblib_ill_header_message'] = [ '#required' => TRUE, '#type' => 'textarea', '#title' => t('ILL Header Message'), '#description' => t('The message that appears at the top of the ILL form, recently used for Covid messages. Leave this blank for no message to appear at the top of the form.'), '#default_value' => variable_get('upei_roblib_ill_header_message', ''), ]; return system_settings_form($form); }