a better work combination workflow

CharlasHacking LibraryThing

Únete a LibraryThing para publicar.

a better work combination workflow

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

1omargosh
Abr 2, 2016, 2:53 am

Howdy hackers!

I've been cooking up a new script. I made this one after getting frustrated while combining works for authors that have lots of works. It was always a tedious process of scrolling down, finding the works to combine, scrolling all the way back up or down, clicking the "Combine works" button, noticing that you had apparently accidentally selected a work you didn't mean to, hit "Cancel", finding the accidental selection and unselecting it, hit "Combine works" again, hit "Confirm", wait for the long-ass page to load again, then try to find the part of the page you were previously working on. Sigh.

https://greasyfork.org/en/scripts/18437-librarything-better-combine-works-button

This script now keeps an "inventory" of the works you selected as you go along, which stays with you in the bottom corner of the window:



When you hit this new "Combine works" button (the original ones haven't changed their functionality), instead of taking you to a new page, it keeps you right where you are a box with the confirmation pops down, including any disambigs:



When you confirm the combination, the affected works get disabled and ghosted out until you refresh the page (or leave and come back or whatever):

2omargosh
Abr 2, 2016, 3:02 am

Also, I would eventually like to advertise this in the Combiners group, but I would really appreciate if, before that, some of you'd help me by testing it out and seeing if you can't find ways to break it, or make it do things it shouldn't, since there may well be workflows I didn't consider. Oh, and I've only tested in latest FF and Chrome, so not sure about other/older browsers.

I'd appreciate feedback about any problems you find with it (for me, though, I think the biggest problem so far is that seems to have fed the combining addiction, alas).

3r.orrison
Abr 2, 2016, 4:17 am

So far so great! Thanks - I can see it's going to be a huge time-saver.

Actually, probably not... I'll waste just as much time, but get more done.

4r.orrison
Abr 2, 2016, 4:28 am

Ok, three units of feedback:

After a combination, can you detect which work still exists and not disable that one?

Can you make the (separate) links middle- or Ctrl+ clickable?

Can you make the page sort ignoring A/The?

5Noisy
Abr 2, 2016, 5:16 am

That looks like a great tool. I'll probably go on a combining kick sometime this weekend so I'll bear it in mind.

6Noisy
Abr 2, 2016, 5:20 am

Hmmm. I installed it, but the install counter on the page you linked still shows zero installs.

7Taphophile13
Abr 2, 2016, 9:21 am

Oh my gosh, omargosh. That's exactly what I wanted but didn't know it. Thank you.

8SylviaC
Abr 2, 2016, 9:47 am

That looks very useful! I'll try it out later, when I'm on the other computer.

9omargosh
Abr 2, 2016, 3:07 pm

>3 r.orrison:
Hehe, I know, right?

>4 r.orrison:
A. I'm not sure that, pre-combination at least, I'm able to tell which work number will win out (I mean, I can guess based on copy count sometimes, but I don't think it's reliable). Technically, once the form is submitted, I can get back the code of the page that you used to get redirected to (i.e. the same combination page, with the new works combined) and I suppose process parts of it in the background to get the winning work number, then reenable that work. The weirdness would be that that would take a while, i.e. longer than it takes for the popup to go away (and longer for longer author pages), so you'd have works go gray, then some seconds later, some of them come back to life. Perhaps it wouldn't look as weird as I'm guessing. (I also have some performance concerns, but maybe I'm overestimating their effect.)

B. I think ctrl-/middle-clicking used to be working in one of brightcopy's scripts, no? And then stopped working? And I actually never got around to fixing it locally, since I usually just separate from the editions page anyway (where such a script is allowing that for me). I will probably see if I can't either fix brightcopy's script or make a new dedicated one just for that.

C. That sorting stuff is a pet peeve of mine! :-) I have been meaning to make a RSI about it. But since we can't hold our breath, I might work on a script that just does that. Though I imagine that it might have reflow weirdness (i.e. the page would load or mostly load, then a bunch of things would suddenly start moving their place, though again, maybe that worry is overblown too).

>6 Noisy:
Yeah, I'm not sure why the counter doesn't update. I know when userscripts.org used to work, they had a disclaimer about how such a counter could never accurately represent actual installs. And then their counter function just stopped working at some point (I think maybe spammers were falsifying their counts?). I don't know if greaseyfork has similar issues, and/or maybe it only updates every 24 hours or something?

>7 Taphophile13:
Yeah, I kept thinking, "why didn't I make this sooner?". Hehe.

10r.orrison
Abr 2, 2016, 5:02 pm

ctrl-/middle-clicking used to be working in one of brightcopy's scripts, no?

It still works in the Editions grid, which works on editions pages, https://greasyfork.org/en/scripts/11603-librarything-work-editions-grid. I don't know if he did one for combine pages.

11omargosh
Abr 2, 2016, 9:51 pm

>10 r.orrison:
Ok, I found brightcopy's old script, made some fixes so the separation links work again as normal links (possibly breaking other functionality that I didn't understand about it :-)) and put it here: https://greasyfork.org/en/scripts/18457-librarything-sort-and-re-link-on-combine...

12Taphophile13
Abr 3, 2016, 11:51 am

Just a little feedback. Everything installed with just a click. I used it last night and it worked perfectly. So nice for those long pages when I sometimes forgot which misspelled titles I was looking for. Thanks again, omargosh.

13omargosh
Abr 3, 2016, 12:16 pm

:-)

14bernsad
mayo 28, 2016, 3:15 am

Installed today and got a lot of work done. Thanks very much.

15Keeline
mayo 29, 2016, 11:03 am

This looks to be a useful tool. I tested it on the latest Chrome for Mac OS X.

Now if I could just do something about people who decide to catalog 8 or 10 Clive Cussler books in a single entry. It's not as if these were publisher boxed sets or something like that. I am tempted to combine all such listings together to tidy up the author list.

James

16omargosh
mayo 29, 2016, 12:53 pm

Ugh, yeah, those page with entries like Such-and-Such Series: 3 books, Such-and-Such Series: 4 books, Such-and-such series: 4 books preview, etc. Those are pretty obnoxious! If only there could be a tie-in with the work-to-work relationships where the combine/separate pages would allow for hiding omnibuses, but, alas, we can't get even the most basic of w2w tie-ins (combo blocking) implemented.