A library foundation is a separate legal entity formed for the purpose of enhancing and expanding library programs and services . Its primary function is to secure financial and in-kind donations for programs, services, collections, and capital projects.