Fix duplication of course codes in book results