Work Editions Grid

ForumHacking LibraryThing

Melde dich bei LibraryThing an, um Nachrichten zu schreiben.

Work Editions Grid

Dieses Thema ruht momentan. Die letzte Nachricht liegt mehr als 90 Tage zurück. Du kannst es wieder aufgreifen, indem du eine neue Antwort schreibst.

1brightcopy
Bearbeitet: Apr. 8, 2013, 11:59am

(It occurred to me that I had never made a topic for this. Most of this is old, but see bottom for new feature!)

Get it here.

Creates a sortable grid for the work editions list. By default, simple sorting is done by simply clicking on a column (again the reverse the sort). In each column, subsequent appearances of the same text are grayed out to help highlight different matches. When comparing variants for graying, it ignores case and spaces, as well as non-alphanumeric characters (e.g. "Apocalipsis (The Stand)" is treated the same as "Apocalipsis / The Stand").



By clicking on the lightning bolt icon, multi-column sorting can be achieved. When in multi-column sort mode, numbers will appear next to the sort showing the sort order. The last column clicked will be added to the end of the sort order.



Title, author and ISBN can be clicked on to open searches for each. This is most useful when clicking to open these searches in a new tab or window.

The last column contains and icon for the separation link. This link is changed so it can be opened in a new tab or window. To improve readability, row colors alternate and a line is drawn every fifth row.

Above the grid there is a link to toggle between the grid and the original editions list. This allows you to see exactly what the original looked like. It also allows you to see other info like the media type designators that are currently not in the grid:



An additional feature highlights all editions with the ISBN of the book that you are currently looking:

2brightcopy
Bearbeitet: Apr. 8, 2013, 12:03pm

The new feature at the bottom is something I'm pretty proud of. It has two modes:

1) If you click on a book entry (as opposed to a work entry), the grid will highlight those editions with the same ISBN as the book has (if any)

2) If you add "?isbn=1234567890" to the URL it will highlight those ISBNs and jump you down to the first one. Example:
http://www.librarything.com/work/12761/editions/91370231?isbn=0708828701

The second mode is how the Cover Navigation script allows you to jump from a book cover to an ISBN in the grid.

BTW, if people find the green color too obnoxious I am open to changing it.

3keristars
Apr. 8, 2013, 1:43pm

The ?isbn= element is the best!

Well, the whole script is fab, but that's a great addition. I'm glad you thought to do it! I keep forgetting to separate-in-a-new-tab, and then I lose the ISBN sort, so this will save a headache, I'm sure. :)

4brightcopy
Apr. 8, 2013, 2:42pm

Thanks!

I often debate if I should make my links open in new tabs/windows. I never do, figuring people can just middle-click/ctrl-click or just choose "open in new tab" from the menu. But now that I think about it, I could make it an option on scripts you could turn on.

5Collectorator
Mai 9, 2014, 4:35pm

This member has been suspended from the site.