insert doi as external id if no external id is set