4
Librarian: Quick copy of family ID
J
jeroenltFeb 28, 2023
It takes some clicking and scrolling to go from a book to copying the family ID for merging.
It would really help to have a quick "Copy family ID" link in the Librarian Links that will put the ID on the clipboard. That should hopefully be a small change, but one that would make family merging a lot faster.
(Goodreads has librarian tools that allows you to select duplicate families from a list of all the author's books -- easy tools make it much more likely that people will make a quick correction when they see the issue)
Comments
Wanted to open a topic like this and saw it already existed.
To me it would be really helpful to have:
I mainly use a laptop with only a touchpad, and when I spend a long time with librarian duties i think i'm going to end up with a carpal tunnel for having to select the different UUIDs around :D
In case it's useful for anyone else, i created this two bookmarklets to quick copy the ids. You just have to add this code as a favourite in your browser bookmarks (like if it was the url of a favourite webpage), and by clicking them it just automatically copy the ids to your clipboard. I keep them in the bookmark bar so I have them just right on top of the website and it's just one click to copy. I tested them only on firefox.
Copy book id
javascript:(function(){ const parts = window.location.pathname.split("/").filter(Boolean); const idx = parts.indexOf("books"); if (idx !== -1 && parts[idx+1]) { navigator.clipboard.writeText(parts[idx+1]); } else { alert("Book ID not found in URL"); } })();
This will take the book id directly from the url, so it works in pages such as the book page, the book editions page (it copies the one from the current book), the book edit page
Copy family book id
javascript:(function(){ const label = Array.from(document.querySelectorAll("div.font-heading")) .find(el => el.textContent.includes("Book Family ID")); if (label) { const p = label.nextElementSibling; if (p && p.tagName === "P") { navigator.clipboard.writeText(p.textContent.trim()); } else { alert("Book Family ID not found, go to the editions page"); } } else { alert("Book Family ID not found, go to the editions page"); } })();
This copy the book family id directly from the html code of the page, it works only if you are already in the book editions page
We'll definitely have this option! It's been suggested a few times in the Librarian Discord. That, as well as other advanced tooling over time! I struggle to prioritise it sometimes but it is important to us!