8 function mkdru_admin_settings() {
9 $form['pz2_js_path']=array(
10 '#type' => 'textfield',
11 '#title' => t('Path to Pazpar2 client library'),
12 '#description' => t('Absolute path to the directory containing pz2.js within the current domain. Do not include leading slash.'),
13 '#default_value' => variable_get('pz2_js_path', 'pazpar2/js'),
16 $form['search_settings'] = array(
17 '#type' => 'fieldset',
18 '#title' => t('Pazpar2/Service Proxy search settings'),
19 '#collapsible' => TRUE,
22 $form['search_settings']['pz2_path'] = array(
23 '#type' => 'textfield',
24 '#title' => t('Pazpar2/Service Proxy path'),
25 '#description' => t('Path that takes Pazpar2 commands via HTTP'),
27 '#default_value' => variable_get('pz2_path','/pazpar2/search.pz2')
29 $form['search_settings']['use_sessions'] = array(
30 '#type' => 'checkbox', '#title' => t('Session handling'),
31 '#description' => t('Disable for use with Service Proxy'),
32 '#default_value' => variable_get('use_sessions', '1')
35 $form['sp_settings'] = array(
36 '#type' => 'fieldset',
37 '#title' => t('Service Proxy specific settings'),
38 '#collapsible' => TRUE,
41 $form['sp_settings']['sp_user'] = array(
42 '#type' => 'textfield',
43 '#title' => t('Service Proxy username'),
44 '#description' => t('Service Proxy username'),
46 '#default_value' => variable_get('sp_user','')
48 $form['sp_settings']['sp_pass'] = array(
49 '#type' => 'textfield',
50 '#title' => t('Service Proxy password'),
51 '#description' => t('Service Proxy password'),
53 '#default_value' => variable_get('sp_pass','')
56 return system_settings_form($form);