emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Julien Cubizolles <j.cubizolles@free.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: isbn-to-bibtex (from org-ref) fails
Date: Mon, 09 May 2016 13:10:27 -0400	[thread overview]
Message-ID: <m2posvyx6k.fsf@Johns-MacBook-Air.local> (raw)
In-Reply-To: <87y47r5yny.fsf@free.fr>

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

      reply	other threads:[~2016-05-09 17:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2posvyx6k.fsf@Johns-MacBook-Air.local \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=j.cubizolles@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).