Skip to content

Commit a2a5e30

Browse files
bryjbrownDiegoPino
authored andcommitted
Makes facet limits required enhances description of max facet limit (#351)
1 parent 908ef24 commit a2a5e30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

includes/admin.inc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,20 +477,23 @@ function islandora_solr_admin_settings($form, &$form_state) {
477477
'#size' => 5,
478478
'#description' => t('The minimum number of results required to display a facet'),
479479
'#default_value' => variable_get('islandora_solr_facet_min_limit', '2'),
480+
'#required' => TRUE,
480481
);
481482
$form['islandora_solr_tabs']['facet_settings']['islandora_solr_facet_soft_limit'] = array(
482483
'#type' => 'textfield',
483484
'#title' => t('Soft limit'),
484485
'#size' => 5,
485486
'#description' => t('The number of results which should be displayed initially. If there are more, then the a "Show more" button will allow the rest up to the value below to be displayed. Use 0 to disable.'),
486487
'#default_value' => variable_get('islandora_solr_facet_soft_limit', '10'),
488+
'#required' => TRUE,
487489
);
488490
$form['islandora_solr_tabs']['facet_settings']['islandora_solr_facet_max_limit'] = array(
489491
'#type' => 'textfield',
490492
'#title' => t('Maximum limit'),
491493
'#size' => 5,
492-
'#description' => t('The maximum number of terms that should be returned to the user. For example, if there are 100 possible subjects in a faceted result you may wish to only return the top 10.'),
494+
'#description' => t('The maximum number of terms that should be returned to the user. For example, if there are 100 possible subjects in a faceted result you may wish to only return the top 10. Use -1 to show all facets.'),
493495
'#default_value' => variable_get('islandora_solr_facet_max_limit', '20'),
496+
'#required' => TRUE,
494497
);
495498

496499
// Advanced search block.

0 commit comments

Comments
 (0)