Quote:
Originally Posted by Distorted Vision
Thanks. I tried:
{@category}/{title} - {authors} [{publisher}, {pubdate}]/{title} - {authors} [{publisher}, {pubdate}]
and it didn't work. I'm not sure where I'm going wrong.
|
I did some playing around and I'm going to guess that the result you got gave you Liar's Poker - Michael Lewis [W. W. Norton, 1989]\Liar's Poker - Michael Lewis [W. W. Norton, 1989] but not the category (Finance), correct?
I'm not a programmer so someone with more technical know-how can probably give you a better answer but I think that the categories created using the User Category Editor are essentially internal categories only, they're not exportable from Calibre.
I think what you want/need to set up is a custom column that either uses a single level tag system or one that uses a hierarchy system. Using option A you'd create a custom column called Categories by going to Preferences->Add Your Own Columns. Name your new column categories in both fields and then select (Text, column shown in the tag browser). Each book would then be labelled with a single tag - Finance, Economics, etc. You would then use {#categories} in your save to disk template and it would return Finance\Liar's Poker - Michael Lewis [W. W. Norton, 1989]\Liar's Poker - Michael Lewis [W. W. Norton, 1989].
Or if you wanted option B follow the same steps - Preferences->Add Your Own Columns, name the column Categories, only choose (Comma-separated text, like tags, shown in the tag browser). Click Okay, Apply, Close, and then restart Calibre. Go to Preferences -> Look and Feel -> Tag Browser and enter the lookup name #categories into the “Categories with hierarchical items” box. Press Apply, and you are done with setting up. You would then give your books tags like - Finance.Textbook. This time when you do the Save To Disk export it will return Finance.Textbook\Liar's Poker - Michael Lewis [W. W. Norton, 1989]\Liar's Poker - Michael Lewis [W. W. Norton, 1989]
If you're concerned at this point about having to go in and populate this custom column it's actually pretty easy. Once you have the column setup just select all books that you want to have a particular tag then click Edit Metadata and it will bring up the Bulk Edit screen. Click Custom Metadata at the top and then enter the tag into the correct column field. Click Okay and all of those books will now have that tag.
Hope that helps.