07-12-2024, 11:32 AM | #1 |
Connoisseur
Posts: 53
Karma: 130472
Join Date: May 2011
Device: Onyx Boox M90, M92 (*3),M96, N96,I86ml,C67ml,Kepler,Poke,Poke2,Nova3
|
[GUI-Plugin] Library Codes-SRU
[GUI Plugin] Library Codes-SRU
A forked version of the original Library Codes by DaltonST: see posted updates on the legacy plugin thread. Functions and Features: [1] Automatically creates new Custom Columns (if desired) for Dewey Decimal Code and/or Library of Congress Code and/or OCLC-OWI and/or FAST Tags. [2] A. Derives the desired Library Codes using a book's ISBN or ISSN [Selected Books]. B. Derives the desired Library Codes using a book's Author and Title [Selected Books]. [3] NOT WORKING YET Optionally creates Identifiers: OCLC-OWI; OCLC-WORLDCAT; and VIAF_AUTHOR_ID. This allows the use of composite Custom Columns to be shown in the Book Details as a hot-link to the respective URLs. [4] Optionally Converts ISBN-10 to ISBN-13 [Selected Books]. This function will also automatically "sanitize" ISBNs to remove any dashes, etc. even if the ISBN is already an ISBN-13. [5] Optionally extracts ISSNs from PDFs for Magazines and Periodicals. The other LC functionality then may be executed for the PDFs for which ISSNs were extracted. View the LC Menu ToolTips for more information. [6] Optionally maps either a LCC or a DDC for each book to a 'Genre', and updates a Text custom column with that mapping. LC comes preloaded for DDC mappings, but a template .csv file for LCC mappings is attached below. Please read the ToolTips in the LC customization settings. For a full Open Source DDC listing for your own use: https://raw.githubusercontent.com/Jo...master/fdc.txt Code décimal de Dewey en français: https://www.mobileread.com/forums/sh...4&postcount=94 Version History[/B][/U] Spoiler:
Last edited by davidjoseph1; 08-01-2024 at 11:04 PM. Reason: clarify functions for new version |
07-12-2024, 12:54 PM | #2 |
Connoisseur
Posts: 53
Karma: 130472
Join Date: May 2011
Device: Onyx Boox M90, M92 (*3),M96, N96,I86ml,C67ml,Kepler,Poke,Poke2,Nova3
|
I want to make a couple of use notes:
1) there is a hard-coded per IP query limit of forty requests per minute. Exceed that at the lx2.loc.gov:210/LCDB SRU server, and it will lock you out and not respond to any requests at all for fifteen minutes or so. The response time is so quick that you can exceed that rate. When I modified SRU, I put in a five second pause so that the rate limit would not be exceeded. 2) The record matching is brittle against identifier. The value-add of the OCLC Classify backend was the wideness of applicable responses, and the Library of Congress look up will fail against Most e-book isbns. My suggestion, until I modify library codes further to accept title author ISBN 3-tuple searching, Is to use SRU to get an applicable ISBN, which can be served with fully adequate Dewey and LC call number. When I figure out how to get title author going o I will update. Future efforts will also include getting the field 650 and field 655 subject headings, implementing an authority look up for author names against the name and subject authority servers at the Library of Congress, getting VIAF Authority records returned, and figuring out someway to Horse, the free OCLC worldcat web lookup to get OCLC worldcat numbers. However, without any subscription to OCLC Metadata, Which is not possible for non-library entity, it is very hard to do anything with that world, cat number, except for a slightly faster search on the free OCLC world cat page. |
07-12-2024, 07:02 PM | #3 |
null operator (he/him)
Posts: 20,997
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
This will not appear in calibre->Preferences->Plugins until an entry for it is inserted into the Plugin Index sticky thread at the top of this forum.
Suggest @pdurrant should do that. BR |
07-14-2024, 07:32 AM | #4 |
Resident Curmudgeon
Posts: 76,402
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why fork the plugin when changes like this should be in the original thread?
|
07-14-2024, 09:20 PM | #5 |
Connoisseur
Posts: 53
Karma: 130472
Join Date: May 2011
Device: Onyx Boox M90, M92 (*3),M96, N96,I86ml,C67ml,Kepler,Poke,Poke2,Nova3
|
Changes like this are in the original thread, and after I posted the rewrite it was suggested that I post a new thread because DaltonST has been awol for more than a year, and there was no way to add it to the in-application distribution channel without a new plugin thread.
|
07-19-2024, 03:16 PM | #6 |
Member
Posts: 21
Karma: 24
Join Date: Jul 2019
Device: none
|
dude, you are a God send!
|
07-20-2024, 09:12 PM | #7 |
Gaming Ludographer
Posts: 10
Karma: 10
Join Date: Feb 2019
Device: Windows 11 PC
|
I see your fork and the original as updates. The original is in deprecated status. Should it be removed?
|
07-20-2024, 09:52 PM | #8 | |
Connoisseur
Posts: 53
Karma: 130472
Join Date: May 2011
Device: Onyx Boox M90, M92 (*3),M96, N96,I86ml,C67ml,Kepler,Poke,Poke2,Nova3
|
Quote:
I ought to update it soon to put in a two-second pause so it doesn't overwhelm the query limit on the LOC server. |
|
07-22-2024, 10:27 AM | #9 |
Connoisseur
Posts: 53
Karma: 130472
Join Date: May 2011
Device: Onyx Boox M90, M92 (*3),M96, N96,I86ml,C67ml,Kepler,Poke,Poke2,Nova3
|
|
07-26-2024, 12:05 PM | #10 |
Evangelist
Posts: 448
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Would it be possible to do a lookup based on title and author, maybe with a fuzzy match (there are some fuzzy match libraries on pypi)? I'm just looking to translate to a top-level genre, if that matters.
I see there's a plugin to extract ISBNs: https://www.mobileread.com/forums/sh...d.php?t=126727 Last edited by foosion; 07-26-2024 at 12:13 PM. |
07-27-2024, 05:24 PM | #11 | |
Connoisseur
Posts: 53
Karma: 130472
Join Date: May 2011
Device: Onyx Boox M90, M92 (*3),M96, N96,I86ml,C67ml,Kepler,Poke,Poke2,Nova3
|
Quote:
this is the current sketch of code I have to apply author title search. Not working yet. |
|
07-30-2024, 04:07 PM | #12 | |
Connoisseur
Posts: 94
Karma: 124056
Join Date: Nov 2010
Location: Canada
Device: Kobo Clara HD, Kindle Paperwhite 10th Gen, Kindle 7th Gen
|
Quote:
|
|
07-31-2024, 02:22 PM | #13 |
Connoisseur
Posts: 53
Karma: 130472
Join Date: May 2011
Device: Onyx Boox M90, M92 (*3),M96, N96,I86ml,C67ml,Kepler,Poke,Poke2,Nova3
|
New Version: author-title search works.
|
08-01-2024, 06:12 PM | #14 |
Junior Member
Posts: 6
Karma: 10
Join Date: Mar 2017
Device: k4, nook touch
|
FAST tags aren't updating for me. Possible I have a setting wrong? Or is it not working right now? The rest of it is working great, and I'm so grateful to you for resurrecting this plugin.
|
08-01-2024, 11:09 PM | #15 | |
Connoisseur
Posts: 53
Karma: 130472
Join Date: May 2011
Device: Onyx Boox M90, M92 (*3),M96, N96,I86ml,C67ml,Kepler,Poke,Poke2,Nova3
|
Quote:
FAST tags (which are an OCLC thing, FAceted Application of Subject Terminology) will not be working. Instead, I will use LCSH subject headings for the same thing. But it's not working yet. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source Plugin] SRU - Library of Congress & GBV (ger) | vform | Plugins | 14 | 08-01-2024 06:50 PM |
[GUI Plugin] Library Codes | DaltonST | Plugins | 373 | 07-12-2024 12:04 PM |
[GUI Plugin] Library Splitter | DaltonST | Plugins | 31 | 07-11-2022 04:09 AM |
How about using LC (Library Codes) plugin, w/ FAST/LCC/DDC derived tags? | anoukaimee | Library Management | 0 | 02-09-2022 06:25 AM |
[GUI Plugin]Problems retrieving LCC, Dewey etc codes | birkmaggs | Plugins | 2 | 05-11-2018 11:43 PM |