View Single Post
Old 09-07-2020, 08:32 AM   #355
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by chaley View Post
Could people running the latest beta (4.99.14) please verify that all column icon/color rules and composite columns still work? It is unfortunately possible that I broke something and I would rather know now than after calibre 5 is released.
It all looks good here.

I have a few icon and colour rules across my libraries. Some are simple comparisons, but a few use general program mode.

My metadata plugboard that adds last read, rating, page and word count to the comments is working fine. That only adds the value and text if the value exists. And, I just realised I have versions in both template program and general program modes.

And as a last test, I changed one of the recent templates I wrote for someone here:

Code:
program:
test(
	field('series'),
	strcat('__Series__/',field('series'),'/',format_number(field('series_index'),'{0:02d}'),' - ',field('title'),' - ',field('author_sort')),
	strcat(substr(field('author_sort'),0,1),'/',field('author_sort'),'/',field('title'))
	)
To:

Code:
program:
if field('series') then
	strcat('__Series__/',field('series'),'/',format_number(field('series_index'),'{0:02d}'),' - ',field('title'),' - ',field('author_sort'));
else
	strcat(substr(field('author_sort'),0,1),'/',field('author_sort'),'/',field('title'))
fi
That is in a custom column and works perfectly.
davidfor is offline