Project

General

Profile

« Previous | Next » 

Revision 276f39f6

Added by Katja Luther over 5 years ago

add the treeview as third variant for the specimen page

View differences:

modules/cdm_dataportal/includes/occurrences.inc
773 773
function create_specimen_array(array $specimenOrObservations){
774 774
    $items_specimen = array();
775 775
    $items = array();
776
    $children = array();
776

  
777 777
    //we need one more item to contain the items of one level (fieldunit, derivate data etc.)
778 778
    foreach ($specimenOrObservations as &$specimenOrObservation) {
779 779
        $items['data'] = $specimenOrObservation->listLabel;
......
824 824
            'titleCache',
825 825
            'listLabel',
826 826
            'protectedTitleCache',
827
            'derivedUnitMedia',
828
            'created',
829
            'publish',
830
            'updated',
831 827
            'class',
832 828
            'uuid',
833 829
            'collectionDTO'
......
985 981
                            'galleryLinkUri' => NULL,
986 982
                        ));
987 983

  
988
                         @_description_list_group_add($groups, cdm_occurrence_field_name_label($field), $gallery_html);
984
                         //@_description_list_group_add($groups, cdm_occurrence_field_name_label($field), $gallery_html);
989 985
                         break;
990 986

  
991 987
                    case 'sources':
......
1055 1051
                            $min_max_markup = min_max_measure($value, 'absoluteElevation');
1056 1052
                            @_description_list_group_add($groups, cdm_occurrence_field_name_label('absoluteElevation'), $min_max_markup);
1057 1053
                        }
1058
                        if (isset($value->distanceToGround)) {
1054
                        if (isset($value->distanceToGround) && $value->distanceToGround >0) {
1059 1055
                            $min_max_markup = min_max_measure($value, 'distanceToGround');
1060 1056
                            @_description_list_group_add($groups, cdm_occurrence_field_name_label('distanceToGround'), $min_max_markup);
1061 1057
                        }
1062
                        if (isset($value->distanceToWaterSurface)) {
1058
                        if (isset($value->distanceToWaterSurface) && $value->distanceToWaterSurface > 0) {
1063 1059
                            $min_max_markup = min_max_measure($value, 'distanceToWaterSurface');
1064 1060
                            @_description_list_group_add($groups, cdm_occurrence_field_name_label('distanceToWaterSurface'), $min_max_markup);
1065 1061
                        }
......
1138 1134
            '#attributes' => array('class' => html_class_attribute_ref($specimenOrObservation)),
1139 1135
        );
1140 1136
        $output = drupal_render($occurrence_elements);
1137
        $output .= $gallery_html;
1141 1138

  
1142 1139

  
1143 1140

  

Also available in: Unified diff