From: John Kitchin Date: Wed, 4 Mar 2015 17:15:31 +0000 (-0500) Subject: add date added to the entry X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=commitdiff_plain;h=646f1132e95b6d8dc56425dffb7c445258a15b17 add date added to the entry --- diff --git a/doi-utils.org b/doi-utils.org index 442aaa7..8428cc8 100644 --- a/doi-utils.org +++ b/doi-utils.org @@ -603,6 +603,8 @@ org-ref, and tries to download the corresponding pdf." (interactive "sDOI :") (insert (doi-utils-doi-to-bibtex-string doi)) (backward-char) + ;; set date added for the record + (bibtex-set-field "DATE_ADDED" (current-time-string)) (if (bibtex-key-in-head nil) (org-ref-clean-bibtex-entry t) (org-ref-clean-bibtex-entry)) @@ -610,6 +612,7 @@ org-ref, and tries to download the corresponding pdf." (doi-utils-get-bibtex-entry-pdf) (save-selected-window (org-ref-open-bibtex-notes))) + #+END_SRC It may be you are in some other place when you want to add a bibtex entry. This next function will open the first entry in org-ref-default-bibliography go to the end, and add the entry. You can sort it later.