Revision 2e82a602
Added by Patrick Plitzner over 5 years ago
modules/cdm_dataportal/includes/pages.inc | ||
---|---|---|
111 | 111 |
} |
112 | 112 |
|
113 | 113 |
$by_associatedtaxon_query = http_build_query($associatedFieldUnitsQuery_parameters); |
114 |
$pagerFieldUnits = cdm_ws_get(CDM_WS_PORTAL_TAXON, array($taxon->uuid, 'associatedFieldUnits'), $by_associatedtaxon_query); |
|
114 |
$pagerFieldUnits = cdm_ws_get(CDM_WS_PORTAL_TAXON, |
|
115 |
array($taxon->uuid, 'associatedFieldUnits'), |
|
116 |
$by_associatedtaxon_query . '&pageSize=' . variable_get('cdm_dataportal_compressed_specimen_derivate_table_page_size') |
|
117 |
); |
|
115 | 118 |
// get icon images |
116 | 119 |
$expand_icon = font_awesome_icon_markup( |
117 | 120 |
'fa-plus-square-o', |
modules/cdm_dataportal/settings.php | ||
---|---|---|
22 | 22 |
|
23 | 23 |
define('CDM_DATAPORTAL_NOMREF_IN_TITLE', 1); |
24 | 24 |
define('CDM_DATAPORTAL_COMPRESSED_SPECIMEN_DERIVATE_TABLE', 0); |
25 |
define('CDM_DATAPORTAL_COMPRESSED_SPECIMEN_DERIVATE_TABLE_PAGE_SIZE', 50); |
|
25 | 26 |
define('CDM_DATAPORTAL_TAXON_AUTO_SUGGEST', 0); |
26 | 27 |
define('CDM_DATAPORTAL_COMPRESSED_SPECIMEN_DERIVATE_TABLE_SHOW_DETERMINED_AS', 1); |
27 | 28 |
define('CDM_DATAPORTAL_DISPLAY_IS_ACCEPTED_FOR', 0); |
... | ... | |
2463 | 2464 |
a collection and it can be expanded to get an overview of the specimens and their derivates.'), |
2464 | 2465 |
); |
2465 | 2466 |
|
2467 |
$form['taxon_specimens']['cdm_dataportal_compressed_specimen_derivate_table_page_size'] = array( |
|
2468 |
'#type' => 'textfield', |
|
2469 |
'#title' => t('Number of records per page') . ':', |
|
2470 |
'#default_value' => variable_get('cdm_dataportal_compressed_specimen_derivate_table_page_size', CDM_DATAPORTAL_COMPRESSED_SPECIMEN_DERIVATE_TABLE_PAGE_SIZE), |
|
2471 |
); |
|
2472 |
|
|
2466 | 2473 |
$form['taxon_specimens']['cdm_dataportal_compressed_specimen_derivate_table_show_determined_as'] = array( |
2467 | 2474 |
'#type' => 'checkbox', |
2468 | 2475 |
'#title' => t('Show "Associated with" in specimen table.'), |
Also available in: Unified diff
ref #6320 Add page size to settings for compressed specimen table