I also do not condone copyright violation. But I don't think there is a separate "digital lending right" that automatically accrues to a publisher or the author, beyond the purchase price of the book. A library should be able to lend out its legally acquired copy of the book, whether there's an internet or a fancy system of mirrors in the middle, or not.