Being paid for your work is all well and good, but in the case of some authors (e.g. JK Rowling), it seems like the publisher would rather NOT be paid. Harry Potter isn't available in ebook form legally, so shutting down sites that offer those books for download isn't "losing book sales", it's not making any sales at all since there is no viable alternative from the publisher.
And keep in mind, ereaders these days are expensive, a person who can afford one these days isn't going to balk at paying ~$10 (Kindle bestseller list and that's the high end) for an ebook so if a person is downloading books illegally, it's probably a combination of the "hoarding factor" (similar to downloading every movie possible, just for the sake of having them, without ever watching all of them) and somebody who can't read the official ebook version on their device because of DRM.
Another thing, this situation isn't the same with music. Libraries allow a large selection of ebooks to be downloaded legally, is that considered a lost sale? In fact, the publishers are just angry that they aren't making more money. They hate the used book market, which they've effectively killed in electronic form because of DRM, there is no ebook used book market.
1. Lose the DRM on ebooks, works great for iTunes and its music. Charge more if you have to for an unDRMed ebook.
2. Actually offer the ebooks for sale! Why do you think there are so many pirates? Books aren't available or aren't available for their ereader.
3. Embrace the ebook future, works great for Baen Publishing, all their books are available and with noDRM.