[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] isbn-to-bibtex (from org-ref) fails
From: |
John Kitchin |
Subject: |
Re: [O] isbn-to-bibtex (from org-ref) fails |
Date: |
Mon, 09 May 2016 13:10:27 -0400 |
User-agent: |
mu4e 0.9.16; emacs 25.1.50.1 |
In this particular case 0062190377 does not seem to be a known ISBN.
i.e. this
http://xisbn.worldcat.org/webservices/xid/isbn/0062190377?method=getMetadata&format=json&fl=*
leads to this:
{
"stat":"unknownId"}
I modified this function a bit to avoid this issue. It does not help
with this isbn, but gives a better error.
I assume you were looking for Seveneves: A Novel? Maybe it is too new
for xisbn. BTW: Did you read it? Is it good?
Julien Cubizolles writes:
> Julien Cubizolles <address@hidden> writes:
>
>> John Kitchin <address@hidden> writes:
>>
>>> I found a (save-buffer) in the bibtex entry clean functions and took
>>> that out. I think it solves this problem.
>>
>> It's working fine now, thanks.
>
> Actually it seems to be broken again:
>
> --8<---------------cut here---------------start------------->8---
> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
> isbn-to-bibtex("0062190377" "~/enseignement/papiers/bibliography.bib")
> funcall-interactively(isbn-to-bibtex "0062190377"
> "~/enseignement/papiers/bibliography.bib")
> call-interactively(isbn-to-bibtex record nil)
> command-execute(isbn-to-bibtex record)
> helm-M-x(nil "isbn-to-bibtex")
> funcall-interactively(helm-M-x nil "isbn-to-bibtex")
> call-interactively(helm-M-x nil nil)
> command-execute(helm-M-x)
> --8<---------------cut here---------------end--------------->8---
>
> Also, the first time I call it, it doesn't even prompt for the ISBN
> number. When call it with point on an ISBN number, I get the ISBN
> prompt, with this value already filled for all subsequent calls, but
> with the same wrong-type-argument error.
>
> Regards,
>
> Julien.
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu