02-03-2013, 05:02 PM | #1 |
Addict
Posts: 374
Karma: 1408579
Join Date: Jul 2012
Location: UK
Device: Kindle Touch, Ipod Touch, Ipad Air
|
Custom Column Icon Help
Hi,
I have a custom column which is configured for long text like comments. I use this column to keep track of what i have done with that book, mainly Read of Reading. I am trying to put a custom icons in this column to replace the text. eg an open book for reading and a closed book for Read. The problem i am having is that when i set the icon to match the word read it also picks up on the word Reading. Is there any way to restrict it to just Read and not the word Reading. |
02-04-2013, 03:09 AM | #2 |
Grand Sorcerer
Posts: 11,704
Karma: 6658935
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You should use the "pattern" match with a regular expression. Although it isn't possible to say what regexp to use without knowing all the possible text structures in the column, the general approach is to use a pattern that matches only "read". Perhaps you could match "read" at the end of the string (read$), or "read" not followed by an i (read[^i]), or use two contains conditions to check read and not reading.
|
Advert | |
|
02-04-2013, 03:30 AM | #3 |
Addict
Posts: 374
Karma: 1408579
Join Date: Jul 2012
Location: UK
Device: Kindle Touch, Ipod Touch, Ipad Air
|
Thanks (read[^i]) worked great.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with Tag Browser Custom Icon for Languages | MartyTX | Library Management | 1 | 02-03-2013 03:44 AM |
how to move value(s) of tag column to a custom made column | zoorakhan | Library Management | 0 | 12-08-2012 03:53 AM |
custom date column from two state column | Dopedangel | Library Management | 7 | 01-03-2012 08:20 AM |
Can custom book data be displayed in a custom column? | kiwidude | Development | 9 | 03-02-2011 05:35 AM |
Custom Icon Issues | allovertheglobe | iRex | 0 | 10-26-2008 03:40 PM |