Added function to get covers based on local id and library code