In localities where there is no office of the institution mentioned in article L. 5312-1 or an office of the bodies that have concluded an agreement with the institution mentioned in article L. 5312-1 in application of the provisions of article L. 5312-3, the mayors are responsible for receiving and recording the declarations of jobseekers and forwarding them to these bodies or, in the absence of an agreement, to the institution mentioned in article L. 5312-1.