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.
Last edited by davidjoseph1; 06-14-2024 at 12:18 PM.
Reason: add dewey q
|