Add getPublicationsFunction