This plugin updates a new custom column for the total number of books written by each author. This is done for every book in your library. It provides functionality that standard Calibre does
not provide, specifically the ability to search using queries constructed with integers for an integer custom column. Example: ((#abc_numeric:">6") and (#abc_numeric:"<47")). Also, its normal ABC column in the Tag Browser has full Tag Browser functionality based specifically on ABC.
Also see: "Author Book Count Hierarchy", a plugin designed for perusing complex Co-Author relationships, not just ABC counts.
Main Features ABC:
This plugin updates a custom column for the total number of books for an author for each book of each author in your library. It always updates all books in the open library. The results are displayed in the left browser pane under "ABC". A menu selection to "Read Instructions" is available.
Installation Notes:
- Calibre > Preferences > Custom Columns > Add a new custom column called "author_book_count" with a title of "ABC" and with the default "text, with column shown in the tag browser". Uncheck the new column to hide it. Save your work and restart Calibre. Refer to the attached configuration image file.
- Calibre > Preferences > Plugins > Load Plugin from File and load the attached zip file. Save your work and restart Calibre.
- Calibre > Preferences > Toolbar > Main Menu Toolbar and then add the icon for Author Book Count. Save your work. Close the window.
- If you don't want to see the count in the Book Details view, go to Calibre > Preferences > Look and Feel > Book Details and customize the view to your taste.
- The Calibre tag-browser defaults to sorting by Text instead of by Numbers within Text. To change this: Calibre > Preferences > Tweaks > Recognize Numbers Within Text When Sorting > and set numeric_collation = True. See the attached image file for reference.
- Optionally, you may create a second new custom column called “abc_numeric”. Choose the type as “integer”. This custom
column will be populated with the integer version of author_book_count, but only if the column exists. Search criteria valid only for integers would then be possible, such as: #abc_numeric:">7"
Execution Notes:
- Click the icon for Author Book Count. Agree to continue, and it will execute. It has been optimized for speed, so it is very fast.
- You should not be running any other jobs when you run ABC. It is very fast, averaging in testing ~1 second per ~1,000 ebooks.
Special Notes:
- Requires Calibre version 6.0.0 or later.
- Bear in mind that a single book has a single author book count, so anthologies with a dozen authors will show the count for the author that has the lowest Calibre author id, which is to say the author that was first added to Calibre. If you see a discrepancy between the tag browser for ABC and the books shown in the window, simply right click one of their books and then > Similar Books > Books by Same Author. You should then see the books for which that author was one of multiple authors, and was not the first author listed in the list of authors. This behavior is not a bug, but rather the nature of having only a single value for a single custom column for a single book in Calibre. The count is correct, but the browser pane info on the left of the main gui has to be interpreted properly for books with multiple authors.
- Remember to back up your metadata.db file(s) not infrequently, and especially before starting Installation Step 1, above.
- This plugin does not update any ebooks or "real" metadata other than the linked new custom column that you defined in Installation Step 1, above.
- This plugin can be safely and simply uninstalled and the custom column and associated custom column data deleted via Preferences > Plugins > Remove and also Preferences > Custom Columns > Delete if you so desire.
- It is advisable to compact your Calibre metadata.db database periodically. The menu path is Calibre > Library > Library Maintenance > Check Library. It will perform a SQLite Vacuum operation to condense/compact/defrag the database. Example before and after a Vacuum:
Before compacting<<<----------->>>After compacting:
Page Count = 118,342<<<---------->>>Page Count = 3,606
Database Size = 121,182,208 bytes<<>>Database Size = 3,692,544 bytes
So, the metadata.db file went from over 121mb to less than 4mb in size.
- This plugin does not directly interact with the ABC Hierarchy plugin. Each has a different purpose. Use one or both; it is up to you.
Version History: