Public libraries are trusted local institutions with an impressive record of adapting to changing social needs.