all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* isbn-to-bibtex (from org-ref) fails
@ 2016-04-04 15:56 Julien Cubizolles
  2016-04-04 17:31 ` John Kitchin
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Cubizolles @ 2016-04-04 15:56 UTC (permalink / raw)
  To: emacs-orgmode

I've just tried isbn-to-bibtex with the isbn entry "0201500647" (Feynman
lectures on physics). It fails with:

--8<---------------cut here---------------start------------->8---
funcall-interactively: Wrong type argument: stringp, [((url . ["http://www.worldcat.org/oclc/67451431?referer=xid"]) (publisher . "Addison-Wesley") (form . ["BA"]) (lccn . ["89000433"]) (lang . "eng") (city . "Reading, Mass.") (author . "Feynman, Leighton, Sands.") (ed . "8th print.") (year . "1996") (isbn . ["0201500647"]) ...)]
--8<---------------cut here---------------end--------------->8---

However, isbn-to-bibtex-lead gets me to the right page with a bibtex
entry ready to be copied.


Julien.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: isbn-to-bibtex (from org-ref) fails
  2016-04-04 15:56 isbn-to-bibtex (from org-ref) fails Julien Cubizolles
@ 2016-04-04 17:31 ` John Kitchin
  2016-04-07  4:20   ` Julien Cubizolles
  0 siblings, 1 reply; 7+ messages in thread
From: John Kitchin @ 2016-04-04 17:31 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode

thanks for the report. I think I have fixed it in a recent push.

Julien Cubizolles writes:

> I've just tried isbn-to-bibtex with the isbn entry "0201500647" (Feynman
> lectures on physics). It fails with:
>
> --8<---------------cut here---------------start------------->8---
> funcall-interactively: Wrong type argument: stringp, [((url . ["http://www.worldcat.org/oclc/67451431?referer=xid"]) (publisher . "Addison-Wesley") (form . ["BA"]) (lccn . ["89000433"]) (lang . "eng") (city . "Reading, Mass.") (author . "Feynman, Leighton, Sands.") (ed . "8th print.") (year . "1996") (isbn . ["0201500647"]) ...)]
> --8<---------------cut here---------------end--------------->8---
>
> However, isbn-to-bibtex-lead gets me to the right page with a bibtex
> entry ready to be copied.
>
>
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: isbn-to-bibtex (from org-ref) fails
  2016-04-04 17:31 ` John Kitchin
@ 2016-04-07  4:20   ` Julien Cubizolles
  2016-04-18 16:09     ` John Kitchin
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Cubizolles @ 2016-04-07  4:20 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode

John Kitchin <jkitchin@andrew.cmu.edu> writes:

> thanks for the report. I think I have fixed it in a recent push.

It now gets the bibtex entry right however its behaviour is strange: it
asks twice for a file name to save. The first query seems ok but if you
give again the bib file as argument the second time, you get a worrying
message about overwriting it.

Julien.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: isbn-to-bibtex (from org-ref) fails
  2016-04-07  4:20   ` Julien Cubizolles
@ 2016-04-18 16:09     ` John Kitchin
  2016-04-26  8:01       ` Julien Cubizolles
  0 siblings, 1 reply; 7+ messages in thread
From: John Kitchin @ 2016-04-18 16:09 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode

I found a (save-buffer) in the bibtex entry clean functions and took
that out. I think it solves this problem.

Julien Cubizolles writes:

> John Kitchin <jkitchin@andrew.cmu.edu> writes:
>
>> thanks for the report. I think I have fixed it in a recent push.
>
> It now gets the bibtex entry right however its behaviour is strange: it
> asks twice for a file name to save. The first query seems ok but if you
> give again the bib file as argument the second time, you get a worrying
> message about overwriting it.
>
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: isbn-to-bibtex (from org-ref) fails
  2016-04-18 16:09     ` John Kitchin
@ 2016-04-26  8:01       ` Julien Cubizolles
  2016-05-03  8:33         ` Julien Cubizolles
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Cubizolles @ 2016-04-26  8:01 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode

John Kitchin <jkitchin@andrew.cmu.edu> 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.

Regards,

Julien.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: isbn-to-bibtex (from org-ref) fails
  2016-04-26  8:01       ` Julien Cubizolles
@ 2016-05-03  8:33         ` Julien Cubizolles
  2016-05-09 17:10           ` John Kitchin
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Cubizolles @ 2016-05-03  8:33 UTC (permalink / raw)
  To: John Kitchin; +Cc: emacs-orgmode

Julien Cubizolles <j.cubizolles@free.fr> writes:

> John Kitchin <jkitchin@andrew.cmu.edu> 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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: isbn-to-bibtex (from org-ref) fails
  2016-05-03  8:33         ` Julien Cubizolles
@ 2016-05-09 17:10           ` John Kitchin
  0 siblings, 0 replies; 7+ messages in thread
From: John Kitchin @ 2016-05-09 17:10 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode

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 <j.cubizolles@free.fr> writes:
>
>> John Kitchin <jkitchin@andrew.cmu.edu> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-05-09 17:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-04 15:56 isbn-to-bibtex (from org-ref) fails Julien Cubizolles
2016-04-04 17:31 ` John Kitchin
2016-04-07  4:20   ` Julien Cubizolles
2016-04-18 16:09     ` John Kitchin
2016-04-26  8:01       ` Julien Cubizolles
2016-05-03  8:33         ` Julien Cubizolles
2016-05-09 17:10           ` John Kitchin

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.