A librarian at the University of Cambridge sued for race discrimination after being refused holiday leave for whole term, a tribunal heard.