Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-04-2014, 04:21 PM   #1
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 100
Karma: 8524
Join Date: Aug 2013
Location: Texas
Device: Nexus 7
[GUI Plugin] Author Book Count Hierarchy

[GUI Plugin] Author Book Count Hierarchy

This plugin updates a new custom column for the total number of books written by each author and each co-author in a partionable pattern for every book in a library.

This plugin is designed specifically for those users who desire details about books with multiple authors.

Main Features of the Author Book Count Hierarchy Plugin:

This plugin updates the custom column “abc_hierarchy” for the total number of books for every author and co-author for each book your library. It always updates all books in the open library. That custom column may optionally be combined with the field Author in another optional custom column “abc_abc_hierarchy” and the results displayed in the left browser pane under "ABC_ABCH or anything else you wish to choose. It is yours. Only custom column abc_hierarchy is required. All others are optional.


Installation Notes:

1. Calibre > Preferences > Custom Columns > Add a new custom column called "abc_hierarchy" with a title of "ABC Hierarchy" 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.

2. Calibre > Preferences > Plugins > Load Plugin from File and load the attached zip file. Save your work and restart Calibre.

3. Calibre > Preferences > Toolbar > Main Menu Toolbar and then add the icon for ABC Hierarchy. Save your work. Close the window.

4. If you do not want to see the data in the Book Details view, go to Calibre > Preferences > Look and Feel > Book Details and customize the view to your taste.

5. 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 instructions.

6. Calibre > Preferences > Custom Columns > Add Optionally add another new custom column called "abc_abc_hierarchy" with a title of "ABC_ABCH" and with the type "column built from other columns, behaves like tags". The template could either be: {author}.{#abc_hierarchy} or perhaps {#author_book_count}.{author}.{#abc_hierarchy}. Of course, you may customize this template to please yourself. This column is not to be shown. Uncheck it to hide it.

7. Go to Calibre > Preferences > Look and Feel > Tag Browser and configure it based upon the image shown in the instructions. You may change the Tag Browser configuration to suit your personal taste. Experiment until you find a combination that pleases you. If your optional template from above is {#author_book_count}.{author}.{#abc_hierarchy}, then author probably should be allowed to be partioned.

Execution Notes:

1. Click the icon for ABC Hierarchy. Agree to a restart after it finishes, and it will execute. It has been optimized for speed, so it is fairly fast. Allow it to Restart Calibre when it finishes and asks for confirmation.

2. This plugin requires you to agree to allow it to restart upon job completion. If you accidentally click the icon, it will give you the option of aborting the execution and doing nothing, or continuing.

3. As this runs as a job in the background, you must not execute other tasks either in the foreground or background while it is running. That means that you should not be running any other jobs when you run ABC Hierarchy. You must restart Calibre when it finishes. Since it is fairly fast, you likely will not have any time to get any other tasks properly begun before it finishes anyway. In testing, it updated 2,300 books in about 9 seconds, and then asked to restart.


Special Notes:

1. Requires Calibre version 1.48.0 or later.

2. This plugin can be safely and simply uninstalled and the custom columns and associated custom column data deleted via Preferences > Plugins > Remove and also Preferences > Custom Columns > Delete if you so desire. Remember to also deconfigure Calibre > Preferences > Look and Feel > Tag Browser for any deleted Custom Column; otherwise, Calibre will generate multiple error messages related to “formatter.py” when it loads in debug mode. Deleted Custom Columns may not remain as residual items in miscellaneous configuration items, such as for the Tag Browser.

3. The ABC Hierarchy plugin does not interact with the ABC plugin that uses the "author_book_count" custom column. You may have both installed in Calibre if you wish, or only one of them. They each answer different questions. ABC is not designed specifically for multiple authors of a single book, but rather is generic. ABC Hierarchy is specifically designed for multiple authors of a single book, as well as single authors. Different plugins for different people with different needs and different tastes.

4. 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.


PayPal Donations:

• If you find this or my other plugins (ABC and Derive Genres) useful please feel free to show your appreciation. I have spent many hundreds of unpaid hours in their development and support so any encouragement for me to continue is appreciated.

https://www.paypal.com/cgi-bin/websc...=NR6TAMBLZG2B4



Spoiler:

Version 1.0.4 - 5 September 2014 Changes due to Calibre 2.2.0 Refactor
Version 1.0.3 - 10 August 2014 Revised Instructions; Improved ABCH format.
Version 1.0.2 - 6 August 2014 Changed format of ABCH literal
Version 1.0.1 - 5 August 2014 Added additional Template suggestions to instructions.
Version 1.0.0 - 4 August 2014 Initial release of the Author Book Count Hierarchy plugin.
Attached Thumbnails
Click image for larger version

Name:	Using_ABC_plus_ABCHierarchy_plus_3d_Custom_Column_Simultaneously.JPG
Views:	127
Size:	50.9 KB
ID:	126381  
Attached Files
File Type: pdf abch_instructions.pdf (692.8 KB, 30 views)
File Type: zip author_book_count_hierarchy.zip (860.6 KB, 2053 views)

Last edited by DaltonST; 09-11-2014 at 11:32 AM. Reason: Version 1.0.4 Released Due to Changes in Calibre 2.2.0
DaltonST is offline   Reply With Quote
Old 08-04-2014, 04:46 PM   #2
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
Posts: 6,501
Karma: 10683802
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch (Wifi only)
How does this differ from the count already offered in the tag browser for {author}?
eschwartz is offline   Reply With Quote
Old 08-04-2014, 04:55 PM   #3
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 100
Karma: 8524
Join Date: Aug 2013
Location: Texas
Device: Nexus 7
It is totally different in purpose and nature. This plugin was developed specifically for users who found the existing functionality of Calibre lacking. They use my ABC plugin frequently, but still want "more" when it comes to multiple authors for books. Everyone is different and wants and/or needs different things. If you need it, you will know. If not, you will know that too.
DaltonST is offline   Reply With Quote
Old 08-04-2014, 05:02 PM   #4
eschwartz
Irrational Optimist
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
Posts: 6,501
Karma: 10683802
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch (Wifi only)


I am sure this does something calibre doesn't already have. I am just curious what, since I don't seem to understand.
eschwartz is offline   Reply With Quote
Old 08-05-2014, 10:15 AM   #5
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 100
Karma: 8524
Join Date: Aug 2013
Location: Texas
Device: Nexus 7
See a new attached image showing how to use ABC with ABCH simultaneously for 3 different views of your Authors. The instructions were also updated yielding release 1.0.1 dated 5 August 2014.
DaltonST is offline   Reply With Quote
Old 08-06-2014, 09:42 AM   #6
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 100
Karma: 8524
Join Date: Aug 2013
Location: Texas
Device: Nexus 7
New Version 1.0.2 Released: ABCH Format Readability Improvement

New Version 1.0.2 Released: ABCH Format has been changed to increase its readability.

It is now (example): ->7_Evangeline Anderson ->1_Reese Dante ->1_Barb Rice

This means: These are the 3 co-authors for this book, sorted from highest to lowest number of total books each has written (i.e., ABC). Evangeline Anderson has written 7, Reese Dante 1, and Barb Rice 1. There are no other co-authors.

If there were 25 co-authors, then the ABCH would reflect all 25 of them sorted by ABC from left to right. That is what ABCH is all about.

Last edited by DaltonST; 08-07-2014 at 09:51 AM.
DaltonST is offline   Reply With Quote
Old 08-09-2014, 07:26 PM   #7
asllearner
Member
asllearner began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2011
Device: none
Thanks and quick observations

Good job. Quick observations, but with grain of salt cause I am just beginning to understand what is going on:

legibility? Duplicate info?:
Quote:
ABC_ABCH: Eric Donald Hirsch & Joseph F. Kett & James S. Trefil.->1_Joseph F. Kett ->1_James S. Trefil ->1_Eric Donald Hirsch
would be clearer to me as:
Quote:
ABC_ABCH: Joseph F. Kett (1), James S. Trefil (1), Eric Donald Hirsch (1)
This would also make the Tag browser look nicer as now the grouped entries hold only the name, and then don't repeat it for the actual entries, but the names that stand alone have the full duplicated info, which is distracting. See attached "Bath Spa University"

My tag browser seems to look a bit different than yours, but not sure why. If I figure it out I will let you know. I think it is because I am not, and prefer not to, partition, so it may be ok.

pdf instructions: "portioned". should read "partitioned". It might help to clarify that this is a check box in the "tab browser" tab of the "look and feel" preferences pane.
asllearner is offline   Reply With Quote
Old 08-09-2014, 07:31 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,673
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
delete post

Last edited by JSWolf; 08-10-2014 at 12:19 PM.
JSWolf is offline   Reply With Quote
Old 08-10-2014, 09:15 AM   #9
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 100
Karma: 8524
Join Date: Aug 2013
Location: Texas
Device: Nexus 7
ABC_ABCH Special Custom Column Is Optional, Not Required

asllearner,

Based on your preference for a value of "Joseph F. Kett (1), James S. Trefil (1), Eric Donald Hirsch (1)", you do not need the ABC_ABCH (abc_abc_hierarchy) Custom Column at all. I suggest that you delete it, keeping only the ABC Hierarchy (abc_hierarchy) visible in the Tag Browser.

If you delete the ABC_ABCH Custom Column, and if you have a large library, Calibre will load much faster too because the ABC_ABCH Custom Column is made by joining other Custom Columns (e.g. ABC, Author and ABCH) and must be done dynamically every time you start Calibre or switch libraries.

You may also not need the ABC (author_book_count) Custom Column. Just the ABC Hierarchy (abc_hierarchy) Custom Column. ABCH does not use the ABC data, but makes its own. The count is obviously the same, though.

I am going to release a new version of Author Book Count Hierarchy, since I like your suggested format of "Joseph F. Kett (1), James S. Trefil (1), Eric Donald Hirsch (1)". The current format came from the a post on the ABC thread when the need for ABCH first arose, so it was just a placeholder until a better one came along. One just has.


Thanks for your suggestions.
DaltonST is offline   Reply With Quote
Old 08-10-2014, 12:12 PM   #10
DaltonST
Developer
DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.DaltonST shines like a glazed doughnut.
 
DaltonST's Avatar
 
Posts: 100
Karma: 8524
Join Date: Aug 2013
Location: Texas
Device: Nexus 7
ABCH Version 1.0.3 - 10 August 2014 Has Been Released

A new version of ABCH, Version 1.0.3 - 10 August 2014, has been released. It has highly revised Instructions plus an improved ABCH format for greater readability.

This plugin requires custom column abc_hierarchy.

The plugin instructions explain how to use another optional custom column, abc_abc_hierarchy, if you so desire. The latter is totally optional.

This plugin does not require or use the custom column author_book_count, which belongs to plugin Author Book Count.

You may safely use both ABC and ABCH together or singly. They are independent of each other, and provide very different functionality.
DaltonST is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Count Pages kiwidude Plugins 666 10-08-2014 01:48 AM
[GUI Plugin] Manage Sony x50 Reader Book List kpw Plugins 170 10-02-2014 08:23 PM
[GUI Plugin] Author Book Count DaltonST Plugins 24 08-25-2014 02:39 PM
[GUI Plugin] Copy book covers as Standby images (Sony/PocketBook/Kindle/Nook) jackie_w Plugins 115 08-04-2014 10:49 AM
[GUI Plugin] Book Sync **Deprecated** kiwidude Plugins 111 06-07-2011 07:47 PM


All times are GMT -4. The time now is 05:44 PM.


MobileRead.com is a privately owned, operated and funded community.