Notwithstanding any other provision of law, professional personnel and other persons actively engaged in school work in this state shall be required to serve on any jury during the period of his contract with a Board of Education unless excused therefrom by judge of the court. In the case of service on a jury the board shall pay the difference between that allowed for such jury service and the amount of salary due the person for such period of time.