textbrowser / biblioteq

Archive and catalog the world for today's and tomorrow's generations! Awesome and everyware.
https://textbrowser.github.io/biblioteq/
Other
216 stars 46 forks source link

OpenLibrary Lookup with OL ID #180

Closed deltz025 closed 2 years ago

deltz025 commented 2 years ago

BiblioteQ is a great tool, and makes cataloguing my books far easier, but I've run into this problem a few times. A few of my books are older and rarer, and while they're listed on Open Library, they haven't been issued an ISBN. The ability to search by other cataloging IDs, especially Open Library's own, would make this a non-issue.

Thanks for your hard work!

textbrowser commented 2 years ago

Would you like an alternate identifier?

deltz025 commented 2 years ago

I think additional identifiers, like the Open Library ID or Library of Congress Control Number, would make it easier to import data for books that don't have ISBNs.

textbrowser commented 2 years ago

The CN is already present.

textbrowser commented 2 years ago

LC Control Number.

textbrowser commented 2 years ago

I do not wish to add identifiers which are specific to protocols and the Open Library really is a protocol. Unless of course the Open Library contains actual PDFs. If it does, like BQ, then adding its identifiers is acceptable. In a proper library, books have physical representations. PDFs and/or books.

textbrowser commented 2 years ago

Storing only information about things is lazy. People should be able to store the representations of those things. Videos, games, PDFs, songs. BQ can do that.

deltz025 commented 2 years ago

Alright, I'll just look for another app that does what I need, then.

textbrowser commented 2 years ago

I wrote that we can define new identifiers. You mentioned one and I responded that it already exists: LC Control Number. I prefer that the new one be not named Open Library ID because if Open Library is abandoned, we're stuck with an identifier. In the database, it can be labeled as foreign_identifier_1 and BQ can be smart to display a custom label for you such as Open Library Identifier.

textbrowser commented 2 years ago

There are endless possible things and they can be customized to your environment.

deltz025 commented 2 years ago

If you're concerned about Open Library being abandoned, why does BiblioteQ use it to quickly import data? And if it's importing data from Open Library, it would be far more efficient to allow data import from Open Library ID or LC Control as well as ISBN, because there are a vast number of books that simply don't have ISBNs attached to them.

textbrowser commented 2 years ago

Open Library was requested and that's how it was attached to BQ. :)

SRU and Z39.50 mechanisms require ISBNs because it was logical to do so years ago. It was natural to implement this with Open Library. This can be changed and it can be changed so that they function with multiple keys. For example. BQ can attempt the query if an ISBN exists. If one does not, it can attempt it with another key and another key and another key and another key until it has exhausted all known keys.

You asked and that is the beginning. :)

textbrowser commented 2 years ago

So I will add a new identifier and it will include a new Others Option where you assign it a label and that label will percolate throughout the software. In the database it will be known as foreign_identifier_1. Google has a system as well and it may have its own identifiers. There is a request to add Google too but I am not so interested in doing that right now.

textbrowser commented 2 years ago

New column alternate_id_1 prepared for PQ and SQLite.

textbrowser commented 2 years ago

Open Library query via OL completed for books.

textbrowser commented 2 years ago

Now for OL image query via OL identifier.

textbrowser commented 2 years ago

https://user-images.githubusercontent.com/10701156/151888577-0e4a9fa9-9320-4dda-9f99-3e7e51037dcd.mp4

deltz025 commented 2 years ago

Looks great, thanks!

textbrowser commented 2 years ago

https://user-images.githubusercontent.com/10701156/151974369-358449c2-83e0-4e45-a6c2-d9cc888fd879.mp4

textbrowser commented 2 years ago

Completed. Available with the next release.

meteos77 commented 2 years ago

I come back on this great idea of having an alternative identifier to isbn

the alternative_id_1 field allows the user to enter an identifier

is alternative_id_1 dedicated to OpenLibrary or could BiblioteQ store another identifier from another online service (I think about the Ark identifier from BnF) or alternative_id_2 ?

in the Z3950 analysis (003 http://catalogue.bnf.fr/ark:/12148/cb452115699) or in the SRU analysis (ark:/12148cb43556053t</srw:recordIdentifier>)

and place the information "ark:XXXXXXX" in this field alternative_id_1.

this variable is then used for the search of the covers h_t_t_p://catalogue.bnf.fr/couverture?&appName=NE&idArk=alternative_id_1&couverture=1&largeur=100&hauteur=250 http://catalogue.bnf.fr/couverture?&appName=NE&idArk=ark:/12148/cb452115699&couverture=1&largeur=100&hauteur=250

textbrowser commented 2 years ago

https://github.com/textbrowser/biblioteq/commit/f84c6bf4f5df1d82063c59044b3dca28b1c87bbb

Screenshot_20220408_200104

meteos77 commented 2 years ago

Thank you for this new alternative for the cover images.