Quote:
Originally Posted by 1ily
I have a separate column for my tags and my shelves, and my shelves are automatically imported to my kobo as collections.
I want to populate my shelf column based on the tags that get pulled from any download metadata.
I use the tags column to populate the subtitle on my kobo, so I want it separate from my collections. Anyone have any ideas?
|
Here's a simplified version of the template I use to populate my #kobocoll column using Action Chains' single-field edit.
Code:
program:
subjects = $#subjects;
admintags = $#admintags;
existing_colls = $#kobocoll;
new_colls = strcat(
if 'omnibus' inlist admintags then 'Omnibus,' fi,
if 'OVERDRIVE' inlist approximate_formats() then 'Loans,' fi,
if $#booktype=='Fanfiction' then 'Fanfiction' fi,
if '^Cozy Mystery$' inlist subjects then 'Cozy Mysteries,' fi,
if '(Juvenile|Young Adult)' inlist subjects then 'Juvenile & Young Adults,' fi,
if '^(Fantasy|Paranormal|Science Fiction)$' inlist subjects then 'Fantasy & Sci-Fi,' fi,
);
merged_colls = list_union(new_colls, existing_colls, ',');