View Single Post
Old 12-19-2010, 03:26 AM   #23
mornington
Connoisseur
mornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enoughmornington will become famous soon enough
 
Posts: 63
Karma: 732
Join Date: Nov 2010
Device: Sony PRS-650
Quote:
Originally Posted by beckywc View Post
Wow sounds complicated, but will give it a shot. Thanks
That's why I didn't do it that way in the script, but used tags/authors/series instead. Much easier.

If you're not comfortable rewriting the script for your specific needs, why not just copy the custom column values into your tags using Calibre's bulk metadata edit tool?

To do this: Select books to edit in calibre, right click, Edit metadata in bulk, "Search and Replace" tab. Set Search mode to "Regular Expression", Search field to your column name, search for to "(.+)" (without the quotes), replace with to "-\1" (again, without the quotes), destination field to "tags", mode to "append to field", ensure "use comma" is ticked then apply

Back up your library before doing this, but it should create a new tag for each book and give that tag a dash prefix so that the script will detect it and turn it into a collection. If you don't want the collection names to have a prefix then change prefixTag in the script to an empty string (the script uses the dash to identify tags to turn into collections and then removes the dash before adding the prefixTag to the name).

Last edited by mornington; 12-19-2010 at 03:34 AM.
mornington is offline   Reply With Quote