Skip to content

Commit

Permalink
refactored interactive signature of oa-coa
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jan 6, 2024
1 parent 1deafaa commit cc4b2b8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions openalex.el
Original file line number Diff line number Diff line change
Expand Up @@ -643,13 +643,19 @@ institution if an author is listed multiple times. Sometimes this
is empty, and sometimes an author has multiple institutions
listed.
There may be duplicates for people who have different names in
OpenAlex, e.g. missing initials, differences in abbreviations,
including having a period or not.
Your name will be included, you will need to delete this manually
in the Excel sheet.
This only gets the coauthors in publications known to OpenAlex.
Recently published papers are probably missing.
"
(interactive "sORCID:\nfCOA-file")
(interactive (list (read-string "ORCID: ")
(when (y-or-n-p "Save to file?")
(read-file-name "File: "))))
(let* ((url (format
"https://api.openalex.org/works?filter=author.orcid:https://orcid.org/%s&email=%s"
orcid
Expand Down Expand Up @@ -735,7 +741,8 @@ Recently published papers are probably missing.
row)
"\t")
"\n"))
current-authors)))))
current-authors))
(message "COA data on the clipboard."))))


(provide 'openalex)
Expand Down

0 comments on commit cc4b2b8

Please sign in to comment.