function keyBasedOffDetail(detail) {
  // based off type within detail
  switch (detail.type) {
    // if site
    case "site":
      return "site_name";
    // if equipment
    case "equipment":
      return "equipment_name";
    // if maintenance event
    case "maintenance_event":
      return "event_id";
    // if default
    default:
      return "";
  }
}
// return key identifier for label dependent on detail type
return key identifier for label dependent on detail type
return key identifier for label dependent on detail type
function keyBasedOffDetail(detail) {
  switch (detail.type) {
    case "site":
      return "site_name";
    case "equipment":
      return "equipment_name";
    case "maintenance_event":
      return "event_id";
    default:
      return "";
  }
}
function keyBasedOffDetail ( detail ) { switch ( detail . type ) { case "site" : return "site_name" ; case "equipment" : return "equipment_name" ; case "maintenance_event" : return "event_id" ; default : return "" ; } }
return key identifier for label dependent on detail type
return key identifier for label dependent on detail type
// based off type within detail // if site // if equipment // if maintenance event // if default