Thread: Old FAQ posts
View Single Post
Old 09-02-2013, 05:43 AM   #35
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
How do I see/use my calibre virtual libraries in CC?

This answer assumes you want to use your calibre virtual libraries in CC. It also assumes that you are running calibre 1.1 or later.

By default, CC cannot know which virtual libraries a book is in, because that information is not part of the metadata for a book. The solution to the problem is to add a custom column to the book listing the virtual libraries the book is in. Once you have done that, then you can add that custom column to CC's grouping drawer, and long-press on a virtual library name in grouping to see only the books in that VL.

The steps:

1) In calibre, create a new custom column with type "Column built from other columns, behaves like tags". For this example I assume that the lookup name is "virtlibs" (without the quotes). This column will contain the list of virtual library names that the book is in. It is not necessary to check the box "Show in tag browser". The template to use is
Code:
{:'virtual_libraries()'}
2) Verify that the new column contains the names of the virtual libraries for each book. If it does not, check that the template box contains the correct template.

3) Connect to calibre as a wireless device. Calibre will resend metadata for all the books on your device so that the new column is available to CC.

4) In CC, add the virtlibs column to the grouping window. Go to CC's settings (tap the 3-dots then choose Settings). Find the "Display" category and tap "Make groups for custom columns". Enter the lookup name for the virtual libraries column, which in this example is "#virtlibs" (note the # character). If you are creating groups for more than one column, the lookup names must be separated by commas. Press OK

5) You will see a message saying "Making changes in database", then a dialog telling you that the database is being updated. This process may take some time, around 1 second for every 2 books on your device. The grouping drawer will be disabled while this process is running.

When the database upgrade is finished, grouping will be re-enabled. You will see #virtlibs as a choice in the grouping drawer. Tap that line and you will see the virtual libraries. Long-tap a virtual library and CC will show only books from that VL.

Last edited by chaley; 09-02-2013 at 08:19 AM.
chaley is offline