Andrew Pettegree and Arthur der Weduwen give the people who build, dismantle, and rebuild collections as much attention as the books. The long span helps put today’s public-library ideal in context, especially the recurring question of who is allowed access.