Revision 8d0c3f5f
Added by Andreas Kohlbecker about 3 years ago
modules/cdm_dataportal/cdm_dataportal.css | ||
---|---|---|
884 | 884 |
max-width: 100%; |
885 | 885 |
} |
886 | 886 |
|
887 |
/* TMP */ |
|
888 |
|
|
889 |
.unit-details { |
|
890 |
border: 1px solid #c5c5c5; |
|
891 |
} |
|
892 |
|
modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
33 | 33 |
module_load_include('inc', 'cdm_dataportal', 'includes/media'); |
34 | 34 |
module_load_include('inc', 'cdm_dataportal', 'includes/maps'); |
35 | 35 |
module_load_include('inc', 'cdm_dataportal', 'includes/occurrences'); |
36 |
module_load_include('inc', 'cdm_dataportal', 'includes/occurrences_new'); // tmp file, shoud be merged later with occurrences.inc |
|
36 | 37 |
module_load_include('inc', 'cdm_dataportal', 'includes/descriptions'); |
37 | 38 |
module_load_include('inc', 'cdm_dataportal', 'includes/pre-drupal8'); |
38 | 39 |
|
... | ... | |
325 | 326 |
); |
326 | 327 |
} |
327 | 328 |
|
328 |
function _add_js_ui_accordion(){
|
|
329 |
_add_jquery_ui();
|
|
330 |
drupal_add_js('jQuery(document).ready(function() {
|
|
331 |
jQuery( "#accordion" ).accordion();
|
|
332 |
});',
|
|
333 |
array('type' => 'inline')
|
|
334 |
);
|
|
335 |
}
|
|
329 |
function _add_js_ui_accordion(){ |
|
330 |
_add_jquery_ui(); |
|
331 |
drupal_add_js('jQuery(document).ready(function() { |
|
332 |
jQuery( "#accordion" ).accordion(); |
|
333 |
});', |
|
334 |
array('type' => 'inline') |
|
335 |
); |
|
336 |
} |
|
336 | 337 |
|
337 | 338 |
|
338 | 339 |
function _add_js_utis_client($jquery_selector){ |
... | ... | |
438 | 439 |
); |
439 | 440 |
} |
440 | 441 |
|
442 |
function _add_js_derivation_tree($jquery_selector){ |
|
443 |
drupal_add_js(drupal_get_path('module','cdm_dataportal') . '/js/derivation-tree.js'); |
|
444 |
drupal_add_js('jQuery(document).ready(function() { |
|
445 |
jQuery( "' . $jquery_selector . '" ).derivationTree(); |
|
446 |
});', |
|
447 |
array('type' => 'inline') |
|
448 |
); |
|
449 |
} |
|
450 |
|
|
441 | 451 |
/** |
442 | 452 |
* Provides the markup for an font awesome icon. |
443 | 453 |
* |
modules/cdm_dataportal/includes/pages.inc | ||
---|---|---|
118 | 118 |
); |
119 | 119 |
} |
120 | 120 |
else if(($current_view_mode == CDM_SPECIMEN_LIST_VIEW_MODE_OPTION_DERIVATE_TREE)){ // FIXME this seems to be wrong |
121 |
$render_array['specimen_list'] = compose_specimen_table_top_down($root_unit_dtos); |
|
121 |
$render_array['specimen_list'] = compose_specimen_table_top_down_new($root_unit_dtos);
|
|
122 | 122 |
$render_array['specimen_list']['#weight'] = 2; |
123 | 123 |
} else { |
124 | 124 |
$specimen_table = compose_specimens_table_bottom_up($specimensOrObservations); |
Also available in: Unified diff
ref #7599 derivative tree view: unit details collapsible