Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Req] Show number of holds in each libraries #2

Open
p1nkyy opened this issue Jul 23, 2023 · 5 comments
Open

[Req] Show number of holds in each libraries #2

p1nkyy opened this issue Jul 23, 2023 · 5 comments

Comments

@p1nkyy
Copy link

p1nkyy commented Jul 23, 2023

Hello, is it possible to also show how many holds for each titles are? Thank you in advance.

@Dylancyclone
Copy link
Owner

Hi! I understand the value in seeing how many holds each book has, but I'm struggling to think of a good way to display that information. When looking at a book in goodreads, it possible that there are many results available for the same book (for example, different editions). In some cases, there can be more than a dozen results available. I don't believe there is a clean way to show the number of holds for each result, especially with dozens of results across many libraries.

How do you envision seeing how many holds there are for each title? Are you thinking something like:

11 📕 (8 without holds) / 4 🎧 (1 without holds)

I'm worried that would make the table too dense to read comfortably

Or maybe

8(11) 📕 | 1(4) 🎧
8/11 📕 | 1/4 🎧

@thehale
Copy link

thehale commented Oct 27, 2023

How about...

📕 8/11 available | 🎧 1/4 available

@p1nkyy
Copy link
Author

p1nkyy commented Oct 27, 2023

How about...

📕 8/11 available | 🎧 1/4 available

This will be good but it's only showing the book's availability, not holds. If the books aren't available it would just show
0/11 available then, just like the way it's showing now.
I'm not an expert in UI/UX but this is how the other extension related to Overdrive is showing holds

image

perhaps this can be of an inspiration.

@Dylancyclone
Copy link
Owner

just like the way it's showing now

Right now it shows how many titles match the search, not how many are available

I like the way that shows how many holds there are on the one copy, how does it handle multiple versions/editions of the book? For example, when I look up a tale of two cities, most of my libraries have many different versions of the book. Some might be available while others have holds on them
image

If for example one of the many editions were available, would it show
📕 1/14 available | 🎧 1/10 available
And then if none are available, something like

📕 0/14 available | 🎧 0/10 available
   (14 holds)    |    (33 holds)

I'm hesitant to do this especially with audiobooks, which may have abridged and unabridged editions under the same name (or the same book with a different narrator), and saying that one of them has "33 holds" hides the other versions, which may be the version the user's actually interested in.

But at the same time, it's hard to fit in the hold status of a dozen editions of the same book

I would love to know how that extension does it, if they've got a clever way I'm all for implementing something similar

@p1nkyy
Copy link
Author

p1nkyy commented Oct 27, 2023

You can check it out here: https://www.libraryextension.com/ you can set it to work in certain websites such as GR, Amazon, B&N, and many others. It's slow however (because it needs to search in each libraries one by one depending on the response of each library's server) and it consumes A LOT of RAM and I prefer a script like yours which is quite fast and light.
Rather than using keyword search like yours, this extension uses the exact OD/Libby page so it will definitely refer to a certain title/edition. For books with multiple editions, I will show all of the versions available in OD to pick from as well. Each link will open the respective OD page.

image

I just realized this may be hard to implement but glad I could give you input and perhaps some time in the future if it isn't too tricky hopefully this can be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants