My dck walk a lot every day too. My trick for getting them to behave in the library is having our long walk first so they just wanted to seat and read quietly in the library. No more energy for jumping there hehe...