View Single Post
Old 10-16-2024, 09:45 PM   #3
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,054
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by 1ily View Post
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, ',');
ownedbycats is offline   Reply With Quote