Project

General

Profile

« Previous | Next » 

Revision 69fb3dbb

Added by Andreas Kohlbecker over 5 years ago

ref #5956 improving classification breadcrumb nav

  • avoiding boxes that are not being closed on mouse out
  • more consistent UI by adding ... as trigger for the last element
  • boxes are hidden by slideup effect

View differences:

modules/cdm_dataportal/includes/pages.inc
995 995
    . font_awesome_icon_markup('fa-chevron-right')
996 996
    . ' </span>';
997 997
  $more_children_icon = font_awesome_icon_markup('fa-sitemap fa-rotate-270');
998
  $more_children_label = '...';
998 999

  
999 1000
  $items[] = $node_name;
1000 1001

  
......
1036 1037
  // add more button to the end
1037 1038
  if(!$parent_taxon_nodes) {
1038 1039
    // not taxon focused yet, adding button to make  the root nodes available
1039
    $items[] = '<span class="taxonomic-children-button" data-classification-uuid="' . $current_classification_uuid
1040
      . '" data-rank-limit-uuid="' . $rank_limit_uuid . '" > '
1041
      . $more_children_icon
1042
      . '&nbsp;</span>';
1040
    $items[] = '<span>'
1041
      . $more_children_icon . '&nbsp;' .
1042
      '<span class="taxonomic-children-button" data-classification-uuid="' . $current_classification_uuid
1043
      . '" data-rank-limit-uuid="' . $rank_limit_uuid . '" > ' . $more_children_label . '<span>'
1044
      . '</span>';
1043 1045
  } else if($more_children_for){
1044 1046
    // last parent item has child taxon nodes
1045
    $items[] = ' <span class="taxonomic-children-button" data-cdm-taxon-uuid="' .$more_children_for
1046
      . '" data-cdm-classification-mode="children" >'
1047
      . $more_children_icon
1048
      . '&nbsp;</span>';
1047
    $items[] = ' <span>'
1048
      . $more_children_icon . '&nbsp;' .
1049
      '<span class="taxonomic-children-button" data-cdm-taxon-uuid="' .$more_children_for
1050
      . '" data-cdm-classification-mode="children" >' . $more_children_label . '</span>'
1051
      . '</span>';
1049 1052

  
1050 1053
  }
1051 1054

  
......
1054 1057
  return $render_array;
1055 1058
}
1056 1059

  
1060

  
1057 1061
/**
1058 1062
 * @param $specimen_uuid
1059 1063
 * @return array

Also available in: Unified diff