Fix for #4 - extract document ids in get_publications