in medieval times a bishopric was the focus of great authority and wealth , and the university belonged to the church ; indeed , it had been formed and was maintained on monastic lines , for the education and studies of the clergy .