Skip to content

Commit

Permalink
add note on zen4R submitRecordToCommunities
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed May 27, 2024
1 parent 55af3b8 commit 5311933
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inst/actions/zen4R_deposit_record.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5311933

Please sign in to comment.