If it is a public sidewalk and they do not obstruct access to the sidewalk or the entry/walkway to the library, they should be okay to protest there. That might mean they have to keep moving and not be stationary, but, if that's the price they pay for protesting so be it.