Prevent adding duplicates to the book library.