refactor oa_core_get_titles, allow 'link' to be optional