Public librarians around the country have been the target of attacks from groups who want to ban library books they disapprove of.