Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-21-2020, 12:28 PM   #226
kcar181
Member
kcar181 began at the beginning.
 
kcar181's Avatar
 
Posts: 15
Karma: 10
Join Date: Jul 2020
Device: none
Thanks my friend. Great plugin by the way
kcar181 is offline   Reply With Quote
Old 07-21-2020, 12:51 PM   #227
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
If you run Calibre in DEBUG mode, it will show you exactly what codes it got from where.

FAST codes are gotten along with DDC and LCC from the official OCLC Classify API.

LCEAD codes are "keywords" gotten from WorldCat via LC-specific webscraping.

There does appear to be an overlap (they pertain to the same book after all), with some books having more common tags and others having fewer. However, they are usually not identical, especially for Non-Fiction.

Code:
-----------------------------------------------
 book: 71
oclc:  1077784
final loc_lccn_dict:  {}
new value for LC Extra Author Data:  Einsteinˏ Albert : 1879-1955
new value for LC Extra Author Data:  Harrisˏ Alan [Translator; Creator]
----------------------------------------------------------------------------------------------------------
edit_metadata_action.apply_metadata_changes(id_map, callback=self.finish_displaying_results_of_ddc_lcc(payload)):
id_map - book:  71
id_map - mi:      Title               : Unknown
Author(s)           : Unknown
Tags                : Factual:People-Albert Einstein, Factual:Science-Physics
Identifiers         : viaf_author_id:75121530, lc_authority_name:n79022889, isbn:9781453204948, isni:000000012281955, oclc-owi:3754588294, oclc:1077784, lccn:lccn-n79022889
FAST Tags           : Jews, Peace, Physics, Science--Philosophy, Science, Einstein, Albert, 1879-1955, Science--Social aspects, Religion and science
DDC                 : 081
LCC                 : AC35
----------------------------------------------------------------------------------------------------------
DaltonST is offline   Reply With Quote
Old 07-21-2020, 01:38 PM   #228
kcar181
Member
kcar181 began at the beginning.
 
kcar181's Avatar
 
Posts: 15
Karma: 10
Join Date: Jul 2020
Device: none
Thanks for the quick response

I've come up with this.

https://pastebin.com/9paVZ9Xw

Quote:
-----------------------------------------------
current target_url is: https://www.worldcat.org/oclc/1145418550/
[2] SOURCE_TYPE_OCLC
Looking for multiple LC Extra Author Detail rows...
https://www.worldcat.org/oclc/ -- title is: Tool of war (Book, 2018)
-----------------------------------------------
new value for LC Extra Author Data: Alchemy Fiction
new value for LC Extra Author Data: Magic Fiction
new value for LC Extra Author Data: Plants Fiction
new value for LC Extra Author Data: Bangkok (Thailand) Fiction
new value for LC Extra Author Data: Bioterrorism Social Aspects Fiction
new value for LC Extra Author Data: Science Fiction
new value for LC Extra Author Data: Terrorism Fiction
new value for LC Extra Author Data: East Indian Americans
new value for LC Extra Author Data: East Indian Americans Fiction
new value for LC Extra Author Data: East Indian Americans Juvenile Fiction
new value for LC Extra Author Data: Hispanic Americans
new value for LC Extra Author Data: Hispanic Americans Fiction
new value for LC Extra Author Data: Dictators Fiction
new value for LC Extra Author Data: Environmental Degradation
new value for LC Extra Author Data: Environmental Degradation Fiction
new value for LC Extra Author Data: Epic Fiction
new value for LC Extra Author Data: Conduct Of Life
new value for LC Extra Author Data: Conduct Of Life Fiction
new value for LC Extra Author Data: Dystopias Juvenile Fiction
new value for LC Extra Author Data: Recycling (Waste
new value for LC Extra Author Data: Science Fiction
new value for LC Extra Author Data: Science Fiction

..........library_codes_generic_webscraping_api: main function. source_dict: 2330 373482688 https://www.worldcat.org/oclc/[REFERENCENUMBER]
-----------------------------------------------
kcar181 is offline   Reply With Quote
Old 07-21-2020, 06:01 PM   #229
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Way too many books run at one time. Do a single debug Calibre session debug log for one (1) book. The point is to compare FAST Tags to LCEAD Tags. Just want to look at the FAST Tags added for the same book for which LCEAD Tags are being added simultaneously. There should be a single debug log.

Added: I am working on a new menu selection to automatically remove redundant LCEAD Tags in favor of FAST Tags. This will be useful regardless of anything else going on.





DaltonST

Last edited by DaltonST; 07-21-2020 at 06:04 PM.
DaltonST is offline   Reply With Quote
Old 07-21-2020, 06:46 PM   #230
isra00
Junior Member
isra00 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2017
Device: Kobo Forma
Hello! Based on your _lc_genre_mapping_csv.txt and my own list of DDC headings, you I've written a template function to calculate nested DDC headings from DDC codes (see attached screenshot). The difference is that instead of including each sublevel in the list, the function calculates the nested levels from the superior decimal codes. You can find the template function attached, I hope you find it useful!

Click image for larger version

Name:	ddc_screenshot2.png
Views:	356
Size:	91.9 KB
ID:	180836

Of course, to view it you must add a custom column with that template function:

Click image for larger version

Name:	ddc_head_custom_column.png
Views:	323
Size:	26.1 KB
ID:	180837

ddc_head.py
isra00 is offline   Reply With Quote
Old 07-21-2020, 07:55 PM   #231
kcar181
Member
kcar181 began at the beginning.
 
kcar181's Avatar
 
Posts: 15
Karma: 10
Join Date: Jul 2020
Device: none
Oops

https://pastebin.com/38nFHPZC

that should be a bit clearer. And isra00 that looks interesting
kcar181 is offline   Reply With Quote
Old 07-21-2020, 09:12 PM   #232
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Looks correct to me. LCEAD values have some unique tags, some tags identical to FAST tags, and some similar but not identical.

All things being equal, Fiction and non-Fiction have different expected results for FAST and LCEAD usage. LCEAD seems to be more useful for non-Fiction. In both cases, you just get what you get. Mass deletion for Fiction is always an option.

The new LC menu option I mentioned in a post above will take care of the identical overlapping tags.

I should upload the new version by Friday.



DaltonST
DaltonST is offline   Reply With Quote
Old 07-21-2020, 09:47 PM   #233
kcar181
Member
kcar181 began at the beginning.
 
kcar181's Avatar
 
Posts: 15
Karma: 10
Join Date: Jul 2020
Device: none
Ok thanks for looking at it keep up the good work
kcar181 is offline   Reply With Quote
Old 07-22-2020, 12:25 PM   #234
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Version 1.0.46 - New menu option to remove redundant LCEAD Tags

Version 1.0.46 - 2020-07-22 New menu option to remove redundant LCEAD Tags that already exist as FAST Tags for the same selected books.

Note that LCEAD Tags for Fiction are often the same or similar to FAST Tags, whereas for Non-Fiction they are much more useful.



DaltonST
DaltonST is offline   Reply With Quote
Old 08-11-2020, 12:39 PM   #235
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Version 1.0.47 Qt tweaks for small displays.

Version 1.0.47 - 2020-08-11 Qt tweaks for small displays.


DaltonST
DaltonST is offline   Reply With Quote
Old 11-23-2020, 08:58 PM   #236
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,981
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by DaltonST View Post
Qt blank menu lines show up that way for all plugins that use Qt blank menu lines.

All GUI plugins use the identical Favourites-plugin compatibility code originally written by kiwidude when he wrote the Favourites plugin years ago.



DaltonST
Several months later, I still haven't gotten the Library Codes menu entries to work correctly with the Favourites menu.

Here's my steps to replicate:

1. Completely uninstall Library Codes by deleting both the plugin and the json config.
2. Reinstall it from the plugin manager. (Calibre 5.5 now.) Configure it again.
3. Open the Favourites menu config. Add "Convert ISBN-10 to ISBN-13" to the menu.

Expected result: That it appears in the menu and works properly.
Actual result: It appears as an iconless "Library Codes." Clicking on it does nothing, even when I ensure there's at least one book with an ISBN-10 identifier.

Click image for larger version

Name:	2020-11-23 21_56_49-calibre - __ My Books __.png
Views:	279
Size:	35.6 KB
ID:	183549

Any ideas what I may have broken here? I have a few Job Spy entries in the Favourites menu and they work correctly. As well, the Library Codes menu works when added as a whole, but I'd like to avoid accidentally clicking "Scrub ISBNs" when I'm trying to convert them.

Last edited by ownedbycats; 11-23-2020 at 09:39 PM.
ownedbycats is offline   Reply With Quote
Old 11-24-2020, 09:59 AM   #237
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Collision of Favourites unique names?

This has nothing to do with, nor is impacted by, the removal and reinstallation of LC and its .json file.

I reproduced your results, and the Favourites plugin apparently cannot handle your scenario, losing the icon that clearly exists.

Adding the entire LC menu works, of course. Not just a single menu item for LC when the entire LC is also added to Favourites.

Added:
You have added both LC itself, plus a single menu item to Favourites. In my opinion, that is the root cause of your issue. It causes a collision of Favourites unique names. Either do one, or the other, not both, and see if your issue disappears.




DaltonST

Last edited by DaltonST; 11-24-2020 at 10:11 AM.
DaltonST is offline   Reply With Quote
Old 11-24-2020, 11:21 AM   #238
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,981
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I removed LC from the Favourites menu. Adding the Convert ISBN item still doesn't work.
ownedbycats is offline   Reply With Quote
Old 11-24-2020, 11:23 AM   #239
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Restart Calibre to restart Favourites.
DaltonST is offline   Reply With Quote
Old 11-24-2020, 11:35 AM   #240
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,981
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Restarting also didn't work.

Also, opening the Favourites config menu again shows that it now fails to recognize the item I added.

Click image for larger version

Name:	2020-11-24 12_32_00-Customize Favourites Menu.png
Views:	264
Size:	80.3 KB
ID:	183581
ownedbycats is offline   Reply With Quote
Reply

Tags
ddc, dewey decimal, lcc, library of congress, oclc


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] SmartEject JimmXinu Plugins 125 05-08-2025 12:27 AM
[GUI Plugin] Consolidate All Library Metadata (CALM) DaltonST Plugins 334 02-02-2025 02:28 PM
[GUI Plugin] Astro-ph iatheia Plugins 14 07-25-2015 11:41 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 10:36 PM.


MobileRead.com is a privately owned, operated and funded community.