![]() |
#1 |
Groupie
![]() Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
|
Need help with 'Has Cover' custom column
I have the 'Has Cover' custom column in my libraries but the original library structure came from someone else so I dont know how it's supposed to work. It doesn't change to 'Yes' when a cover is added to a book and the column entries contains a mixture of blanks, some Yes's and a lot of random single words. This is what's in the column properties, can anyone help me out with this?
Thanks. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,346
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
That column should show Yes if a book has both a series and a cover, blank otherwise. That is what it does in my test library, assuming I have transcribed the template correctly.
Code:
{series:'contains($, '.', has_cover (), $)'} |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Groupie
![]() Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
|
I didn't realize there's a separate template for each library. When I checked each library the offending ones had title instead of series at the beginning:
Code:
{title:'contains($, ' ', has_cover (), $)'} |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,346
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If you are asking why the first template checks for a series before checking has_cover(), I have no idea. Nor do I understand what the "title" template is intended to accomplish. |
|
![]() |
![]() |
![]() |
#5 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,644
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
You'd need to ask the designer of the custom column that question - readers of unknown minds are in short supply 'round here ![]() BR |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 435
Karma: 572984
Join Date: Jan 2010
Location: Long Island
Device: Kobo Libra 2, Kindle 4, Nook Gl4, Nook STR, REB 1100, Ebookwise 1500,
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,346
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
{:'has_cover()'} Code:
program: has_cover() |
|
![]() |
![]() |
![]() |
#8 |
Groupie
![]() Posts: 171
Karma: 10
Join Date: Dec 2008
Device: Likebook Mars
|
I presumed there must be a good technical reason why the template was dependent on there being a Series to function, but I guess not as this works perfectly without anything in the Series column.
Code:
{:'has_cover()'} ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom column returns value based on value of another custom column? | calvin-c | Calibre | 3 | 09-14-2013 02:24 PM |
Custom yes/no column built from long text column | Philantrop | Library Management | 7 | 03-23-2013 07:44 PM |
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 |