Bookshelves stack to 64, and while they are usually placed in the world, can be stored in stationary containers. They cannot be used to store lore items.