View Single Post
Old 06-14-2024, 12:03 PM   #9
davidjoseph1
Connoisseur
davidjoseph1 can tell if an avocado is ripe without touching it.davidjoseph1 can tell if an avocado is ripe without touching it.davidjoseph1 can tell if an avocado is ripe without touching it.davidjoseph1 can tell if an avocado is ripe without touching it.davidjoseph1 can tell if an avocado is ripe without touching it.davidjoseph1 can tell if an avocado is ripe without touching it.davidjoseph1 can tell if an avocado is ripe without touching it.davidjoseph1 can tell if an avocado is ripe without touching it.davidjoseph1 can tell if an avocado is ripe without touching it.davidjoseph1 can tell if an avocado is ripe without touching it.davidjoseph1 can tell if an avocado is ripe without touching it.
 
Posts: 56
Karma: 130472
Join Date: May 2011
Device: BooxM90,M92*3,M96,N96, I86ml,C67ml,Kepler, Poke2,Nova3,MaxLumi2,TabUPC
I've rewritten the SRU plugin to retrieve Library of Congress classification codes and import them as tags, and have inserted timeout delays in the code in order to prevent your IP address from being blocked by the LOC SRU server for too many requests in a minute. This version is named somewhat differently so it can be installed alongside the earlier version and configured independently.

I can rewrite this to also grab the Dewey Decimal information the same way.

Tips for use? set the plugin and your metadata preferences only to retrieve tag metadata. select the books for which you wish to retrieve classification cataloguing, clear the existing tags field for all of the selected books, then run this, which pulls the '050' 'a' and 'b' MARC21 fields in and imports them as tags prefixed with 'lcca_" and "lccb_" and then bulk edit metadata from the selected books as a regex 'lcc?' without separators into a new sortable taglike column which can contain your Library of Congress classification number.

I probably will alter the query to request MODS Object Defined XML instead of the MARCXML default, which will allow me to pull in the Library of Congress Classification number as a single field which can then be cleanly bulk-copied without any regex.

I have another version which loads those fields into the 'Summary' field in the calibre core metadata, but which is not working correctly yet.
Attached Thumbnails
Click image for larger version

Name:	lccsru1.jpg
Views:	488
Size:	85.3 KB
ID:	208858   Click image for larger version

Name:	lccsru2.jpg
Views:	441
Size:	30.7 KB
ID:	208859   Click image for larger version

Name:	lccsru3.jpg
Views:	431
Size:	179.7 KB
ID:	208860   Click image for larger version

Name:	lccsru4.jpg
Views:	481
Size:	46.8 KB
ID:	208861   Click image for larger version

Name:	lccsru6.jpg
Views:	463
Size:	52.5 KB
ID:	208862   Click image for larger version

Name:	lccsru7.jpg
Views:	466
Size:	75.7 KB
ID:	208863   Click image for larger version

Name:	lccsru9.jpg
Views:	463
Size:	108.0 KB
ID:	208864  
Attached Files
File Type: zip sru-dglcc3.zip (20.5 KB, 411 views)

Last edited by davidjoseph1; 06-14-2024 at 12:18 PM. Reason: add dewey q
davidjoseph1 is offline   Reply With Quote