the rev oliver rankin became professor of old testament language, literature and theology in the university of edinburgh in 1937. robert was named after his grandfather, robert rankin, who was minister of lamington, lanarkshire.

How would the previous sentence be correctly capitalized?
The Rev Oliver Rankin became Professor of Old Testament Language, Literature and Theology in the University of Edinburgh in 1937. Robert was named after his grandfather, Robert Rankin, who was Minister of Lamington, Lanarkshire.