Quote:
Originally Posted by Penny_Dreadful
I've got as far as this
Code:
program: test(select(field('identifiers'),'amazon'),'1 ','')
which is how my goodreads identifier column works, but it's a simple yes or no query, either there is a goodreads identifier (an icon appears) or there isn't. It's the next bit, where I think I'll need a regex where I'm stumped.
|
Use an advanced column icon rule so you can use a GPM template. Here is one rule (template) that adds a wizard wand icon to the title column if an identifier matches my understanding of the pattern you specify. It uses re_group in an odd way to return a value only if the pattern matches.
You can of course put everything onto one line, making the select the first parameter to re_group. I didn't because assigning to "a" doesn't cost much (if anything) and makes the template much more readable.