I had the exact same issue. This one took me a sec before I realized a bookshelf was only in the right place if the particle effects started activating. The enchanter has some super finicky rules.
Bookshelves cannot be below the y level of the enchanter.
Bookshelves cannot be above 2 blocks...