Minecraft wiki entry for Bookshelf, associated text: Naturally occurring bookshelves in a village. (Before Village & Pillage).
Naturally occurring bookshelves in a stronghold.
Bookshelves obtained by trading with a villager.
Bookshelves powering an enchanting table.