- '#title' => t('Path to Pazpar2 client library, pz2.js'),
- '#default_value' => variable_get('pz2_js_path', '/pazpar2/pz2.js'),
+ '#title' => t('Path to Pazpar2 client library'),
+ '#description' => t('Absolute path to the directory containing pz2.js within the current domain. Do not include leading slash.'),
+ '#default_value' => variable_get('pz2_js_path', 'pazpar2/js'),
+ '#required' => TRUE
+ );
+ $form['search_settings'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Pazpar2/Service Proxy search settings'),
+ '#collapsible' => TRUE,
+ '#collapsed' => FALSE
+ );
+ $form['search_settings']['pz2_path'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Pazpar2/Service Proxy path'),
+ '#description' => t('Path that takes Pazpar2 commands via HTTP'),
+ '#required' => TRUE,
+ '#default_value' => variable_get('pz2_path','/pazpar2/search.pz2')
+ );
+ $form['search_settings']['use_sessions'] = array(
+ '#type' => 'checkbox', '#title' => t('Session handling'),
+ '#description' => t('Disable for use with Service Proxy'),
+ '#default_value' => variable_get('use_sessions', '1')