Skip to content

Commit

Permalink
#133 fix getDepositionByDOI
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed May 14, 2024
1 parent be4b560 commit 793acf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ZenodoManager.R
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ ZenodoManager <- R6Class("ZenodoManager",
result <- self$getDepositions(q = query, all_versions = TRUE, exact = TRUE)
if(length(result)>0){
result <- result[[1]]
if(result$doi == doi){
if(result$pids$doi$identifier == doi){
infoMsg = sprintf("Successfully fetched record for DOI '%s'!",doi)
cli::cli_alert_success(infoMsg)
self$INFO(infoMsg)
Expand Down

0 comments on commit 793acf8

Please sign in to comment.