The district attorney is the successor to the office of solicitor-general as it existed prior to July 1, 1977.