One-click adding generic editions of works?
Aderi ao LibraryThing para poder publicar.
Este tópico está presentemente marcado como "adormecido"—a última mensagem tem mais de 90 dias. Pode acordar o tópico publicando uma resposta.
The request is to build a greasemonkey script that allows you to one-click add a book to your Read but unowned collection.
I'm already half-way there with the LT Copy Book script. I could also use rsterling's idea about using the ISBN from the Amazon link (if present). That would allow me to avoid something that makes me a little queasy, which would be to add a bunch of ISBN-less entries. I'd feel a little bad about adding a bunch of these that might make combination/separation a little annoying.
I'm not 100% sure about the "one click" thing, but I could probably do it by faking up the form. I'd have to inspect a bit and see how that form works to be positive, though. Note that the LT Copy Book script is a two-click deal.
I understand the queasiness about the lack of ISBN, but for my purposes, I prefer to not have ISBNs unless it's the one specific to the edition I read/own.
Though, ideally, I think what I'm looking for is similar to the Combiners script/bookmarklet - when I'm browsing the web or LT, I can click the bookmarklet, enter title/author, and have a new generic entry to edit later. That might be a bit beyond what you're talking about, and far too open to problematic entries.
The ways around this require either writing a full-fledged browser addon (not my bag) or having official support from Tim to do something on the librarything.com server (unlikely).
The only other way I can see it is possibly opening a new window/tab when the bookmarklet is clicked. That'd probably work, but would kind of destroy any "one-clickness" about it. It'd open a new window that would be the manual entry page on LT. Then a second script would have to be listening there (much like the LT Copy Book one does) and fill out all the data. Then you'd click the submit button on the manual entry and close the tab.
I'll keep thinking about it a while, though, and see what else comes to mind.
Like keristars, I wouldn't want the ISBN for generic editions, but if you felt too guilty to leave it out, it wouldn't be a big job for me to delete it later.
I do understand the problems you listed in #3, brightcopy, which is why I said it's "ideal" - not necessarily feasible without official help.
Would it be possible to have a bookmarklet that does throw open a new tab with the addbooks.php page, filled in for title and author as specified in the dialogue box, then I'd have to manually save it myself?
Because that's honestly the most annoying part of adding these generic books to my catalogue - having to go to the add books page and type it all in. I think the Copy Book script might help a lot, but it won't be as useful from the Recommendations page or from a talk thread.
I'm going to cogitate on it a while before I actually try to code anything, though. Sometimes I think of better ideas later.
So would you be willing to do anything on the LT side, however minimal it might be? What would work well and be easy is for me to send a JSONP request like:
Where the key would be the one you use for the JSON API (to avoid other people adding books to your account). It would then add a copy of the book with that author and title and put it in those collections. Then the js it spits back will call the callback so we know it's successful. Easy peasy.
That way the API... OK, I'm making it up now. My point is your code seems to have fallen foul of the HTML parser!
Pay no attention to the edited date! I only went back to... Add a comma I forgot.