Revision 276f39f6
Added by Katja Luther over 5 years ago
modules/cdm_dataportal/settings.php | ||
---|---|---|
28 | 28 |
define('CDM_DATAPORTAL_ALL_FOOTNOTES', 0); |
29 | 29 |
define('CDM_DATAPORTAL_ANNOTATIONS_FOOTNOTES', 0); |
30 | 30 |
define('CDM_DATAPORTAL_LAST_VISITED_TAB_ARRAY_INDEX', 999); |
31 |
define('CDM_DATAPORTAL_SPECIMEN_DERIVATE_TREE', 0); |
|
31 | 32 |
|
32 | 33 |
/* annotationTypeKeys */ |
33 | 34 |
$annotationTypeKeys = array_keys(cdm_vocabulary_as_option(UUID_ANNOTATION_TYPE)); |
... | ... | |
2546 | 2547 |
'#default_value' => variable_get('cdm_dataportal_compressed_specimen_derivate_table_page_size', CDM_DATAPORTAL_COMPRESSED_SPECIMEN_DERIVATE_TABLE_PAGE_SIZE), |
2547 | 2548 |
); |
2548 | 2549 |
|
2549 |
$featureTrees = cdm_get_featureTrees_as_options(TRUE); |
|
2550 |
$form['taxon_specimens']['cdm_dataportal_specimen_derivate_tree'] = array( |
|
2551 |
'#type' => 'checkbox', |
|
2552 |
'#title' => t('Show specimen derivatives in a tree view'), |
|
2553 |
'#default_value' => variable_get('cdm_dataportal_specimen_derivate_tree', CDM_DATAPORTAL_SPECIMEN_DERIVATE_TREE), |
|
2554 |
'#description' => t('If checked, the specimen will be listed in a tree view.'), |
|
2555 |
); |
|
2556 |
|
|
2557 |
|
|
2558 |
$featureTrees = cdm_get_featureTrees_as_options(TRUE); |
|
2550 | 2559 |
$profile_feature_tree_uuid = variable_get(CDM_OCCURRENCE_FEATURETREE_UUID, UUID_DEFAULT_FEATURETREE); |
2551 | 2560 |
if(!isset($featureTrees['options'][$profile_feature_tree_uuid])) { |
2552 | 2561 |
$profile_feature_tree_uuid = UUID_DEFAULT_FEATURETREE; |
... | ... | |
2664 | 2673 |
'#default_value' => variable_get('cdm_dataportal_search_items_on_page', CDM_DATAPORTAL_SEARCH_ITEMS_ON_PAGE), |
2665 | 2674 |
'#description' => t('Number of results to display per page.'), |
2666 | 2675 |
); |
2667 |
|
|
2676 |
|
|
2668 | 2677 |
$form['search_settings'][SEARCH_RESULTS_SHOW_THUMBNAIL_CHECKBOX] = array( |
2669 | 2678 |
'#type' => 'checkbox', |
2670 | 2679 |
'#title' => t('Show the') . ' <i>' . t('Display image thumbnails') . '</i>' . t('button') . ':', |
Also available in: Unified diff
add the treeview as third variant for the specimen page