Bookmarklet to move Publisher Series next to Series

DiscussãoHacking LibraryThing

Aderi ao LibraryThing para poder publicar.

Bookmarklet to move Publisher Series next to Series

Este tópico está presentemente marcado como "adormecido"—a última mensagem tem mais de 90 dias. Pode acordar o tópico publicando uma resposta.

Editado: Jun 30, 2011, 11:47am

(Reposting part of an old post from here to make it easier to find.)

I have a possible workaround for people who are going through and editing a lot of books to move Series stuff into Publisher Series. This should work in Firefox, Safari, Internet Explorer, Chrome, whatever. No special addons needed.

First, rearrange your work page so that the "Common Knowledge" section is the top one. (You don't HAVE to do this, but it just helps if you're going to be doing a lot of them back-to-back.)

Now copy the following block:

javascript:(function(){fe=function(p,e){return document.evaluate(p,e,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue}; pr=fe('//td[@fieldname="publisherseries"]',document.body); prrow=pr.parentNode.parentNode.parentNode.parentNode.parentNode; r=fe('//td[@fieldname="series"]',document.body); rrow=r.parentNode.parentNode.parentNode.parentNode.parentNode; prrow.parentNode.removeChild(prrow); rrow.parentNode.insertBefore(prrow,rrow); fe('.//a[class="fwikiEditPencil"]',prrow).onclick(); fe('.//a[class="fwikiEditPencil"]',rrow).onclick()})()

Create a new bookmark and paste this in as the URL.

Now, go to a work page and click this bookmark. It will move the Publisher Series field up to the top above Series. It will also click on the pencil on both of them. That way you can make whatever edits you need and click Save on the appropriate ones. Should save you some clicking and scrolling.

(This works on both the main work page and the ck page for the work.)