![]() |
#226 |
Member
![]() Posts: 15
Karma: 10
Join Date: Jul 2020
Device: none
|
Thanks my friend. Great plugin by the way
![]() |
![]() |
![]() |
![]() |
#227 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ---------------------------------------------------------------------------------------------------------- |
![]() |
![]() |
![]() |
#228 | |
Member
![]() 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:
|
|
![]() |
![]() |
![]() |
#229 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#230 |
Junior Member
![]() 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!
Of course, to view it you must add a custom column with that template function: ddc_head.py |
![]() |
![]() |
![]() |
#231 |
Member
![]() Posts: 15
Karma: 10
Join Date: Jul 2020
Device: none
|
|
![]() |
![]() |
![]() |
#232 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#233 |
Member
![]() Posts: 15
Karma: 10
Join Date: Jul 2020
Device: none
|
Ok thanks for looking at it keep up the good work
|
![]() |
![]() |
![]() |
#234 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#235 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#236 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,981
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
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. Any ideas what I may have broken here? ![]() Last edited by ownedbycats; 11-23-2020 at 09:39 PM. |
|
![]() |
![]() |
![]() |
#237 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#238 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
![]() |
![]() |
![]() |
![]() |
#239 |
Deviser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Restart Calibre to restart Favourites.
|
![]() |
![]() |
![]() |
#240 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
Tags |
ddc, dewey decimal, lcc, library of congress, oclc |
|
![]() |
||||
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 |