PREVIOUSLY inaccessible court records dating back to the Middle Ages will be compiled into an online database after a university was awarded nearly £400,000.

The records include marriage, slander and defamation cases that came before the church courts and contain a wealth of information valuable to social, economic and legal historians.

The documents constitute one of the most extensive collections of ecclesiastical papers in Europe and take up 540 metres of shelf space.

They include two million case papers containing information on more than 13,000 cases dating from 1300 to 1858.

They have never been catalogued and, because they have to be accessed manually, many have never been read, denying vast amounts of information to researchers.

The archive covers the York Diocese, which runs from the A19 to the east coast of Yorkshire, spreading between the rivers Humber and Tees and down to the foot of the Yorkshire Dales.

It is currently housed at the University of York's Borthwick Institute for Archives.

But, a $744,000 (£375,270) grant from the US-based Andrew W Mellon Foundation, means an online database can be compiled. Work begins this month and will take more than three years.

The former head of the Borthwick Institute, Canon John Purvis, created basic indices for the collection in the Forties. Much of the work was done while he was on fire watch duty in the Second World War.

The new database will be compiled jointly by the Borthwick Institute and the university's department of history and will make information more accessible across the full range of papers.

University vice-chancellor Brian Cantor said: "It is both an honour and a privilege to receive this grant from the Andrew W Mellon Foundation.

"Their generosity will enable us to unlock a hitherto untapped resource of enormous value to the research community. It will give an extraordinary insight into social history across more than six centuries."

Head of history Mark Ormrod said: "This major award from the Andrew W Mellon Foundation recognises the extraordinary scholarly importance of the archival resources in the Borthwick Institute for Archives and attests to the university's exceptional record of achievement in humanities research."

The Borthwick Institute carried out a successful pilot study to develop a format for the database with support from the foundation in 2005.