John Martin, a former antiques dealer who worked on the Grassmarket, stood trial over four days at Edinburgh Sheriff Court