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
Check whether ISBN already exists if manually adding a book #7113
Comments
Hi, I will start working on this issue |
Maybe when the patron clicks on the isbn field, if they have js enabled, then we will check /isbn/{isbn} to see if the item exists and if so, show a popup with the existing matching books and say "go to book" or "keep adding" (please actually come up with better text than those examples) |
@MingdaMa please let us know if you need help with this issue:
|
Thanks for the instruction, it's my first time working on this project so I'm a bit slow. I'll keep working on it! |
@MingdaMa, are you still interested in this? If you are, then great! Please ask any and all questions you have. But if not, I'd like to make it a bit easier to find for those who might wish to work on this. |
Thanks for checking in! I am still interested in this, the problem I have right now is when I try to call the api, I will get a CORS error and I'm still trying to figure this out. |
Assignees removed automatically after 14 days. |
Hey @jimchamp can this be assigned to me? |
@Dwayne-Lacey, you've been assigned. Let me know if you have any questions or run into any issues. |
Hey @jimchamp so I've been working on adding the fetch request and I was having some issues getting any sort of response when using openlibrary.org/isbn/0553381687 to test. I was wondering if there might've been something I was missing or if the endpoint should be something else. This was the snippet of my test code, just trying to look at what the response itself would look like, but I kept receiving a timeout due to typeError
|
Sorry for the delay! The Try using the If that doesn't help, you may want to open your browser's devtools and check request and response in the "Network" tab. |
It's poorly documented and that is something I want to improve, but this comment has a bit of an explanation of the The short of it is that to immediately attempt an import by ISBN and return JSON, the request would be to, e.g., https://openlibrary.org/isbn/0553381687.json?high_priority=true |
@scottbarnes, do these |
@mekarpeles, if the |
That said, when one queries
In terms of what this means for clobbering, I guess that depends on the mechanics of the change. I do not think it would clobber anything from the patron, though. From the current PR my understanding is that if a match is found, that is reported back to the patron (and we need to do decide what to do), and if a match isn't found, then if any metadata was found in step (3), it would be |
When searching for a book or author, it is sometimes not found. Searching for an ISBN might cause a delayed import that will not be found immediately.
In that case, I feel inclined to manually import a book. Despite entering the ISBN, there is no check whether this ISBN already exists. This might cause duplicates.
Describe the problem that you'd like solved
If I enter an ISBN in the add book page, there should be a background check on whether this ISBN already exists to prevent duplicates.
If a work already exists, I should get a notification and be asked whether those books might need to be merged or an error needs to be reported (for example, because an edition is connected to the wrong work).
Proposal & Constraints
The author field has a similar functionality, which looks for author with similar spellings.
Additional context
#3473
#7055
Stakeholders
@mekarpeles @cdrini
The text was updated successfully, but these errors were encountered: