From 531193320d4626c8559b203f66a211911a3cba71 Mon Sep 17 00:00:00 2001 From: eblondel Date: Mon, 27 May 2024 11:43:28 +0200 Subject: [PATCH] add note on zen4R submitRecordToCommunities --- inst/actions/zen4R_deposit_record.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inst/actions/zen4R_deposit_record.R b/inst/actions/zen4R_deposit_record.R index 53500cac..9b26fab4 100644 --- a/inst/actions/zen4R_deposit_record.R +++ b/inst/actions/zen4R_deposit_record.R @@ -513,6 +513,8 @@ function(action, entity, config){ #if record is not in community we check pending requests pending_reqs = ZENODO$getRequests(q = sprintf("status:submitted AND receiver.community:%s AND topic.record:%s", zen_com$id, out$id)) if(length(pending_reqs)==0){ + #!! This code assumes the record has been published and is not in draft stage + #TODO investigate the API method to assign community to draft ZENODO$submitRecordToCommunities(record, communities = community) #TODO in case the geoflow user is manager for the community, give action option to accept it immediatly }