From 0db6b6051906f6974aaec62c2e3ccea7edca8429 Mon Sep 17 00:00:00 2001 From: Richard Hallett Date: Thu, 9 Jan 2020 16:41:49 +0100 Subject: [PATCH] Add in new repos service contact info to export --- app/controllers/export_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index 643f050ba..02025513f 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -243,6 +243,9 @@ def repositories accountDescription accountWebsite generalContactEmail + serviceContactEmail + serviceContactGivenName + serviceContactFamilyName created deleted doisCountCurrentYear @@ -264,6 +267,9 @@ def repositories accountDescription: client.description, accountWebsite: client.url, generalContactEmail: client.system_email, + serviceContactEmail: client.service_contact_email, + serviceContactGivenName: client.service_contact_given_name, + serviceContactFamilyName: client.service_contact_family_name, created: client.created.present? ? client.created.strftime("%Y-%m-%d") : nil, deleted: client.deleted_at.present? ? client.deleted_at.strftime("%Y-%m-%d") : nil, doisCountCurrentYear: client_totals[client_id] ? client_totals[client_id]["this_year"] : nil,