For PMID there is one interactive function that inserts a bibtex entry: pubmed-insert-bibtex-from-pmid.
+This library is complementary to [[./doi-utils.org]].
* Header
#+BEGIN_SRC emacs-lisp :tangle pubmed.el
;;
;; Lisp code to interact with pubmed databases, links to pubmed
;; identifiers. See pubmed.org.
+;;;
+;; This library provides links that go to pubmed resources, e.g.
+;;
+;; pmcid:PMC3498956
+;;
+;; pmid:23162369
+;;
+;; and nihmsid:NIHMS395714
+;;
+;; See http://www.ncbi.nlm.nih.gov/pmc/about/public-access-info/#p3 for details of these identifiers.
+;;
+;; For PMID there is one interactive function that inserts a bibtex
+;; entry: `pubmed-insert-bibtex-from-pmid`.
#+END_SRC
* PMID (from PubMed) link and functions
** PMID to bibtex entry
The point of parsing the MEDLINE text is so we can make bibtex entries. We only support Journal articles for now.
-Issues:
-1. The year is not quite right, it has the month in it.
-2. I do not use all the fields.
-
#+BEGIN_SRC emacs-lisp
(defun pubmed-pmid-to-bibtex (pmid)
"Convert a PMID to a bibtex entry."