View Single Post
Old 07-12-2018, 07:11 AM   #805
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Penny_Dreadful View Post
I kind of figured this out, I have two separate columns but it looks fine.

In case any one else wants this here is how I did it (Thanks to chaley who helped me out a couple of years ago with another column icon issue)

I made two empty columns "Text, Shown in Tag Browser" called OD and KU

Then in Column Icons, I these two had advance rules

program:
a = select(field('identifiers'),'odid');
contains(a, 'wapldmc', 'overdrive.png','');

program:
a = select(field('identifiers'),'odid');
contains(a, 'unlimited', 'kunlimited.png','');


I would like to be able to sort by these columns, which I can't do as they don't have any real data in them, so I'll keep on poking at it until I understand a bit more than I do right now.
It isn't clear why you made two columns. Why not put both icons on one composite column, since they are related to the same thing, the identifier "odid"? If you do that then you can sort.

Start by making a "Column built from other columns" (a 'composite' column). Check the box "Show in tag browser", assuming you really want to see the column & values listed there. Set the template to
Code:
program:
	a = select(field('identifiers'),'odid');
so that the content is the value of the identifier. You can then use basic "composed icon" rules to add the icons to the column, with or without displaying the identifier text.
chaley is offline   Reply With Quote