For centuries, libraries adopted new ideological agendas and physical structures as societal values changed.