a better work combination workflow
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.
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.
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):
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).
Actually, probably not... I'll waste just as much time, but get more done.
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?
Hehe, I know, right?
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).
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?
Yeah, I kept thinking, "why didn't I make this sooner?". Hehe.
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.
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...
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.