Original: He then was elected Senator (1987-1992), authoring the seminal Local Government Code.
Simplified: As senator, he authored the seminal Local Government Code.