Hat collection at library is a crowning success