]> git.donarmstrong.com Git - org-ref.git/commitdiff
Fix for wrong variable name
authorSyohei YOSHIDA <syohex@gmail.com>
Thu, 26 Mar 2015 02:34:45 +0000 (11:34 +0900)
committerSyohei YOSHIDA <syohex@gmail.com>
Thu, 26 Mar 2015 02:34:45 +0000 (11:34 +0900)
arxiv.el
org-ref.el
wos.el

index 5b4a8e0427cdf6600a73aa94dfe5f1e134c0138e..4ca96afa9f6e24964776a0c49a43215d74cdba69 100644 (file)
--- a/arxiv.el
+++ b/arxiv.el
     (url-copy-file pdf-url pdf)
     ;; now check if we got a pdf
     (with-temp-buffer
-      (insert-file-contents pdf-file)
+      (insert-file-contents pdf)
       ;; PDFS start with %PDF-1.x as the first few characters.
       (if (not (string= (buffer-substring 1 6) "%PDF-"))
          (progn
            (message "%s" (buffer-string))
-           (delete-file pdf-file))
-       (message "%s saved" pdf-file)))
+           (delete-file pdf))
+       (message "%s saved" pdf)))
 
     (org-open-file pdf)))
 
index a3ad826e09d77d2951c0ea402332609c040c61e9..080fa5e6162d515d2ec44c19475ffb10560e4de4 100644 (file)
@@ -972,7 +972,7 @@ ARG does nothing."
                    (org-ref-count-labels label))))
  (lambda (keyword desc format)
    (cond
-    ((eq format 'html) (format "(<label>%s</label>)" path))
+    ((eq format 'html) (format "(<label>%s</label>)" keyword))
     ((eq format 'latex)
      (format "\\label{%s}" keyword)))))
 
@@ -1051,7 +1051,7 @@ ARG does nothing."
  ;formatting
  (lambda (keyword desc format)
    (cond
-    ((eq format 'html) (format "(<ref>%s</ref>)" path))
+    ((eq format 'html) (format "(<ref>%s</ref>)" keyword))
     ((eq format 'latex)
      (format "\\ref{%s}" keyword)))))
 
diff --git a/wos.el b/wos.el
index ff72a67ed34cd52303b7d0282f05b8781ca0b6f4..b8bbba840d71159f225091dc09f270ea575fea54 100644 (file)
--- a/wos.el
+++ b/wos.el
@@ -36,7 +36,7 @@
    (format "<a href=\"%s\">%s</a>"
            (format  "http://gateway.webofknowledge.com/gateway/Gateway.cgi?topic=%s&GWVersion=2&SrcApp=WEB&SrcAuth=HSB&DestApp=UA&DestLinkType=GeneralSearchSummary"
              (s-join "+"
-              (split-string path)))
+              (split-string link)))
            (format "wos:%s" link)
            )))