Dinosaurs and the fossil record