+ '#default_value' => isset($node->mkdru->pz2_path) ? $node->mkdru->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' => isset($node->mkdru->use_sessions) ? $node->mkdru->use_sessions : 1,
+ );
+
+ $form['sp_settings'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Service Proxy specific settings'),
+ '#collapsible' => TRUE,
+ '#collapsed' => TRUE
+ );
+ $form['sp_settings']['sp_user'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Service Proxy username'),
+ '#description' => t('Service Proxy username'),
+ '#required' => FALSE,
+ '#default_value' => isset($node->mkdru->sp_user) ?
+ $node->mkdru->sp_user : '',
+ );
+ $form['sp_settings']['sp_pass'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Service Proxy password'),
+ '#description' => t('Service Proxy password'),
+ '#required' => FALSE,
+ '#default_value' => isset($node->mkdru->sp_pass) ?
+ $node->mkdru->sp_pass : '',
+ );
+
+ $form['display_settings'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('Display settings'),
+ '#collapsible' => TRUE,
+ '#collapsed' => FALSE
+ );
+ $form['display_settings']['source_max'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Number of sources to display'),
+ '#required' => TRUE,
+ '#default_value' => isset($node->mkdru->source_max) ? $node->mkdru->source_max : 10,
+ '#size' => 3,
+ '#maxlength' => 3,
+ );
+ $form['display_settings']['author_max'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Number of authors to display'),
+ '#required' => TRUE,
+ '#default_value' => isset($node->mkdru->author_max) ? $node->mkdru->author_max : 10,
+ '#size' => 3,
+ '#maxlength' => 3,
+ );
+ $form['display_settings']['subject_max'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Number of subjects to display'),
+ '#required' => TRUE,
+ '#default_value' => isset($node->mkdru->subject_max) ? $node->mkdru->subject_max : 10,
+ '#size' => 3,
+ '#maxlength' => 3,