Any vacancy in the municipal court due to a death, disability, or resignation of a municipal court judge shall be filled by the mayor, for the remainder of the unexpired term. The appointment shall be subject to confirmation by the legislative authority of the city or town if the legislative authority has the general power of confirmation over mayoral appointments. The appointed judge shall be qualified to hold the position of judge of the municipal court as provided in this chapter.