Project

General

Profile

« Previous | Next » 

Revision abe0b021

Added by Katja Luther about 5 years ago

ref #7755: some order issues in specimen detail page

View differences:

modules/cdm_dataportal/includes/occurrences.inc
522 522
                                'alternativeMediaUri' => NULL,
523 523
                                'galleryLinkUri' => NULL,
524 524
                            ));
525
                            @_description_list_group_add($groups, "Detail Images:" , markup_to_render_array($gallery_html));
525
                            @_description_list_group_add($groups, "Detail Images:" , markup_to_render_array($gallery_html),'',20);
526 526
                        }
527 527

  
528 528
                       // $dd_elements[] = markup_to_render_array($gallery_html);
......
613 613

  
614 614
                    /* ---- FieldObservation --- */
615 615
                    case 'gatheringEvent':
616
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('collector'), $value->actor->titleCache);
617
                        @_description_list_group_add($groups, t('Gathering time'), timePeriodToString($value->timeperiod));
618
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('description'), $value->description);
619
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('locality'), $value->locality->text);
620
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('country'), $value->country->representation_L10n);
621
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('collectingMethod'), $value->collectingMethod);
616
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('collector'), $value->actor->titleCache, '', 1);
617
                        @_description_list_group_add($groups, t('Gathering date'), timePeriodToString($value->timeperiod), '', 2);
618
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('description'), $value->description, '', 3);
619
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('locality'), $value->locality->text, '', 10);
620
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('country'), $value->country->representation_L10n, '', 4);
621
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('collectingMethod'), $value->collectingMethod,'',5);
622 622
                        if (isset($value->absoluteElevation)) {
623 623
                            $min_max_markup = min_max_measure($value, 'absoluteElevation');
624
                            @_description_list_group_add($groups, cdm_occurrence_field_name_label('absoluteElevation'), $min_max_markup);
624
                            @_description_list_group_add($groups, cdm_occurrence_field_name_label('absoluteElevation'), $min_max_markup, '',6);
625 625
                        }
626 626
                        if (isset($value->distanceToGround)) {
627 627
                            $min_max_markup = min_max_measure($value, 'distanceToGround');
628
                            @_description_list_group_add($groups, cdm_occurrence_field_name_label('distanceToGround'), $min_max_markup);
628
                            @_description_list_group_add($groups, cdm_occurrence_field_name_label('distanceToGround'), $min_max_markup,'',7);
629 629
                        }
630 630
                        if (isset($value->distanceToWaterSurface)) {
631 631
                            $min_max_markup = min_max_measure($value, 'distanceToWaterSurface');
632
                            @_description_list_group_add($groups, cdm_occurrence_field_name_label('distanceToWaterSurface'), $min_max_markup);
632
                            @_description_list_group_add($groups, cdm_occurrence_field_name_label('distanceToWaterSurface'), $min_max_markup, '',8);
633 633
                        }
634

  
635
            if (isset($value->collectingAreas) && count($value->collectingAreas) > 0) {
634
                        if (isset($value->collectingAreas) && count($value->collectingAreas) > 0) {
636 635
                            $area_representations = array();
637 636
                            foreach ($value->collectingAreas as $area) {
638 637
                                $area_representations[] = l($area->representation_L10n, path_to_named_area($area->uuid));
......
640 639
                            @_description_list_group_add($groups, cdm_occurrence_field_name_label('collectingAreas'),
641 640
                                array(
642 641
                                    array('#markup' => implode(', ', $area_representations))
643
                                )
642
                                ),'',9
644 643
                            );
645 644
                        }
646 645
                        if (isset($value->exactLocation) && $value->exactLocation->sexagesimalString) {
......
659 658
                                        '#theme' => 'description_list',
660 659
                                        '#groups' => $sub_dl_groups
661 660
                                    ),
662
                                )
661
                                ),'',11
663 662
                            );
664 663
                        }
665 664
                        break;
......
1124 1123
                    case 'gatheringEvent':
1125 1124

  
1126 1125
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('collector'), $value->collector);
1127
                        @_description_list_group_add($groups, t('Gathering time'), timePeriodToString($value->timeperiod));
1126
                        @_description_list_group_add($groups, t('Gathering date'), timePeriodToString($value->timeperiod));
1128 1127
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('description'), $value->description);
1129
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('locality'), $value->locality);
1128
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('locality'), $value->locality, '', 10);
1130 1129
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('country'), $value->country);
1131 1130
                        @_description_list_group_add($groups, cdm_occurrence_field_name_label('collectingMethod'), $value->collectingMethod);
1132 1131
                        if (isset($value->absoluteElevation)) {
......
1171 1170
                                            '#theme' => 'description_list',
1172 1171
                                            '#groups' => $sub_dl_groups
1173 1172
                                        ),
1174
                                    )
1173
                                    ), '', 11
1175 1174
                                );
1176 1175
                            }
1177 1176
                        }

Also available in: Unified diff