]> git.eshelyaron.com Git - emacs.git/commitdiff
Support the biblatex journaltitle field
authorTassilo Horn <tsdh@gnu.org>
Wed, 6 May 2015 05:49:20 +0000 (07:49 +0200)
committerTassilo Horn <tsdh@gnu.org>
Wed, 6 May 2015 05:49:20 +0000 (07:49 +0200)
* lisp/textmodes/reftex-cite.el (reftex-format-bib-entry):
Support the biblatex journaltitle field.

lisp/textmodes/reftex-cite.el

index b22e8b1dcc0a7429566ba3ac201a0b85325d80e4..17e8cfdc83c957af404633226dee84f788023efc 100644 (file)
@@ -543,7 +543,14 @@ If FORMAT is non-nil `format' entry accordingly."
        (extra
         (cond
          ((equal type "article")
-          (concat (reftex-get-bib-field "journal" entry) " "
+          (concat (let ((jt (reftex-get-bib-field "journal" entry)))
+                    ;; biblatex prefers the alternative journaltitle
+                    ;; field, so check if that exists in case journal
+                    ;; is empty.
+                    (if (zerop (length jt))
+                        (reftex-get-bib-field "journaltitle" entry)
+                      jt))
+                  " "
                   (reftex-get-bib-field "volume" entry) ", "
                   (reftex-get-bib-field "pages" entry)))
          ((equal type "book")