[KBibTeX] [Bug 484418] Support for searching and adding book citations (e.g. from Google Books, WorldCat)

2024-05-18 Thread Thomas Fischer
https://bugs.kde.org/show_bug.cgi?id=484418

Thomas Fischer  changed:

   What|Removed |Added

  Latest Commit|ffe0fb736ac6a377b772bc6f5a7 |37858b41ce6a19158586546d5ca
   |b7edb0e004b18   |15998dc4124b1

-- 
You are receiving this mail because:
You are watching all bug changes.

[KBibTeX] [Bug 484418] Support for searching and adding book citations (e.g. from Google Books, WorldCat)

2024-04-15 Thread Thomas Fischer
https://bugs.kde.org/show_bug.cgi?id=484418

Thomas Fischer  changed:

   What|Removed |Added

  Latest Commit|8e723e9f3cf7b0f8b9895edeb6b |ffe0fb736ac6a377b772bc6f5a7
   |83147c4e4033c   |b7edb0e004b18

--- Comment #3 from Thomas Fischer  ---
(In reply to Adam Fontenot from comment #2)
> Thanks for working on this! It took some effort to build against Qt6, but I
> did succeed and all the books I've tried so far are working.
KBibTeX's master branch (still) supports Qt5 and Qt6 equally well, so you can
continue to use it with your existing KF5 installation.

> It probably makes sense to synthesize an ID field rather than using the
> Google Books ones that look like "GoogleBooks:fnG8BAAAQBAJ".
Ok, changed to use the ISBN.
> The URL field has a bunch of useless stuff in it, all of the following links
> for this book are previews of the book:
>[..]
> It would be better to link to the official Google Books page, even if the
> link has to be synthesized: https://books.google.com/books?id=fnG8BAAAQBAJ
Fixed.

There were some other issues and bugs I fixed as well. I also noted that Google
Books allows to download BibTeX code directly via another URL, but the data,
even for the same book, is not the same. Thus, this revised search uses both
sources/methods and then merges the results.

I made a force-push, in case you wonder.

-- 
You are receiving this mail because:
You are watching all bug changes.

[KBibTeX] [Bug 484418] Support for searching and adding book citations (e.g. from Google Books, WorldCat)

2024-04-14 Thread Adam Fontenot
https://bugs.kde.org/show_bug.cgi?id=484418

--- Comment #2 from Adam Fontenot  ---
Thanks for working on this! It took some effort to build against Qt6, but I did
succeed and all the books I've tried so far are working.

Couple of thoughts:

It probably makes sense to synthesize an ID field rather than using the Google
Books ones that look like "GoogleBooks:fnG8BAAAQBAJ".

The URL field has a bunch of useless stuff in it, all of the following links
for this book are previews of the book:

{http://books.google.com/books/download/Ecoregions-sample-epub.acsm?id=fnG8BAAAQBAJ=epub=acs4_fulfillment_token_type=sample=gbs_api
http://books.google.com/books/download/Ecoregions-sample-pdf.acsm?id=fnG8BAAAQBAJ=pdf=acs4_fulfillment_token_type=sample=gbs_api
http://play.google.com/books/reader?id=fnG8BAAAQBAJ==gbs_api}

It would be better to link to the official Google Books page, even if the link
has to be synthesized: https://books.google.com/books?id=fnG8BAAAQBAJ

-- 
You are receiving this mail because:
You are watching all bug changes.

[KBibTeX] [Bug 484418] Support for searching and adding book citations (e.g. from Google Books, WorldCat)

2024-04-14 Thread Thomas Fischer
https://bugs.kde.org/show_bug.cgi?id=484418

Thomas Fischer  changed:

   What|Removed |Added

  Latest Commit||8e723e9f3cf7b0f8b9895edeb6b
   ||83147c4e4033c
   Version Fixed In||0.11
 Status|REPORTED|ASSIGNED
 Ever confirmed|0   |1

--- Comment #1 from Thomas Fischer  ---
I agree that having an ISBN search is useful. I was not aware that Google Books
offered an API for that without the need for registration or API keys. I made
an initial version. Please test and check if it is working.
https://invent.kde.org/thomasfischer/kbibtex/-/commit/8e723e9f3cf7b0f8b9895edeb6b83147c4e4033c

For WorldCat OCLC, KBibTeX had support until 5-10 years ago. It was removed as
API keys became necessary and KBibTeX didn't get one. Scrapping webpages would
only a last resort as it can break at any point in time.

-- 
You are receiving this mail because:
You are watching all bug changes.