All ordinances, passed by the president and board of trustees, shall be recorded by the clerk in a book, kept for village ordinances. The original shall be filed in the office of the clerk and due proof of publication of all ordinances requiring publication shall be procured by the clerk, such proof or affidavit of publication shall be attached to and filed away with such ordinances and the clerk shall also note on such book of ordinances, at the foot of the record of each ordinance, a memorandum of the date of the passage of and, if published or posted, the date of the publication or posting of such ordinance.