(a)
If the contract has been in effect for at least five years and was approved by an ordinance or resolution adopted by the governing body of the contracting agency, the governing body may terminate it by the adoption of a resolution giving notice of intention to terminate, and by the adoption, not less than one year thereafter by the affirmative vote of two-thirds of the members of the governing body, of an ordinance or resolution terminating the contract. Termination shall be effective with board approval on the date designated in the ordinance or resolution terminating the contract.
(b)
If the contract is a joint contract and the joint contract has been in effect for at least five years, the contract may be terminated by the adoption of trial court and county resolutions giving notice of intention to terminate, and by the adoption, not less than one year thereafter by the affirmative vote of two-thirds of the members of the governing body of the county, and by the presiding officer of the trial court, of an ordinance or resolution terminating the contract. Termination shall be effective with board approval on the date designated in the ordinance terminating the contract.