request: "add to library" and "add to wishlist" buttons that use ISBN

CharlasHacking LibraryThing

Únete a LibraryThing para publicar.

request: "add to library" and "add to wishlist" buttons that use ISBN

Este tema está marcado actualmente como "inactivo"—el último mensaje es de hace más de 90 días. Puedes reactivarlo escribiendo una respuesta.

1rsterling
Ene 16, 2012, 8:58 pm

This is a question and request for those of you adept at writing greasemonkey scripts.

Would it be possible to write a script that changed the URL in the "add to library" and "add to wishlist" buttons on the work page? What would be useful is to change the URL so that it did not search for the work title, but instead for the most popular(?) ISBN (at least, the ISBN used for the "direct" link next to the Amazon quick link).

2brightcopy
Ene 16, 2012, 9:08 pm

Yep, that's definitely doable (using the ISBN from the amazon direct link). Do you think it'd be better to replace the URLs on the existing buttons or create a second couple of buttons for "Add to your library by ISBN" and "Add to wishlist by ISBN"? I'm leaning towards the latter.

3rsterling
Ene 16, 2012, 10:37 pm

A second set of buttons would be just fine.

4rsterling
Ene 16, 2012, 10:39 pm

One possible complication: I think the direct link might change depending on whether you're looking at the work or at someone's specific copy. Might need testing on the two kinds of page. I found one page that seemed to try to use the first 10 digits of an ISBN-13 in the direct link; possibly because I had the book and mine had the ISBN-13? In most cases it won't matter, since if you want to add the book, you probably don't already have it.

5rsterling
Ene 16, 2012, 10:44 pm

The other thing I'd love is something that would let me add to my LT wishlist directly from Amazon (or, even better, from other sellers too). I imagine the basic URL you'd need to end up on is almost the same as the one you'd use for this button, but I don't really know what would be involved in making a script for another site (or for LT for that matter). I had a look at your source code for one of the previous scripts, but my experience of scripts is limited to very short things I've inserted into websites, and it would take me more free time than I have now to learn how to write one of these.

6brightcopy
Ene 22, 2012, 1:59 pm

Just a note to let you know I read this and the original request should be doable when I can find the time. Doing the amazon wishlist thing is a little beyond how much time I'll possibly have. This guy isn't getting any less demanding. ;)

7rsterling
Ene 22, 2012, 3:19 pm

Cool. The wishlist thing is covered now that legallypuzzled has updated the bookmarklets