07-29-2023, 09:10 AM | #31 |
Custom User Title
Posts: 8,807
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'm not sure for all of then, but try using 'paper' in $$#formats if it's a list-type column.
|
07-30-2023, 05:19 AM | #32 |
Leftutti
Posts: 406
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
I've managed it by splitting my symbols column into symbols - source - formats, and by help from you @obc - thank you so much.
It was your post here https://www.mobileread.com/forums/sh...62&post4316762 |
07-30-2023, 11:05 AM | #33 |
Grand Sorcerer
Posts: 11,774
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Same questions as in post 26: do all of those icons exist in the cc_icons folder? Said another way, do you see those icons if you make a basic rule?
Is there another rule higher up the list for the same column? If so, it must be a "composed" icon rule so it doesn't take priority. Edit: sorry, didn't see the other answers before I posted. Last edited by chaley; 07-30-2023 at 11:08 AM. |
07-30-2023, 11:20 AM | #34 |
Custom User Title
Posts: 8,807
Karma: 62032371
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Minor note, but also note that the custom has_data() isn't needed anymore as has_extra_files() exists now.
|
08-01-2023, 02:16 PM | #35 |
Leftutti
Posts: 406
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
thx obc, already implemented.
@chaley: I see an icon if I have only one format or source. But as soon as I have two entries, no icon for format/source appears at all anymore. |
08-01-2023, 03:42 PM | #36 | |
Grand Sorcerer
Posts: 11,774
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Here is the booklist: The icons are on the author column. Here is the cc_icons folder: Here is the icon rule screen: And here is the template, which is the same as yours except the one change mentioned above and changing the 'uk.png' icon name to 'beautify.png': Code:
program: def add_icon(icon, val): if ! val then return icon fi; if icon == '' then icon = val else icon = icon & ':' & val fi; return icon fed; icon = ''; if $languages == 'eng' then icon = add_icon(icon, 'beautify.png') fi; icon = add_icon( icon, switch( $$#toread, 'true', 'toread.png', 'false', 'false.png', '')); if $$#formats == 'paper' then icon = add_icon(icon, 'paper.png') fi; if $$#read == 'true' then icon = add_icon(icon, 'ok.png') fi; if $$#source == 'geniallokal' then icon = add_icon(icon, 'geniallokal.png') fi; if $$#source == 'wbg' then icon = add_icon(icon, 'wbg.png') fi; if $$#readinglist != '' then icon = add_icon(icon, 'reading_list.png') fi; if $$#annots != 'NONE' then icon = add_icon(icon, 'annotations.png') fi; if list_count($authors, '&') > 1 then icon = add_icon(icon, 'series_authors.png') fi; return icon Code:
if 'paper' inlist $#formats then icon = add_icon(icon, 'paper.png') fi; |
|
08-02-2023, 01:27 PM | #37 |
Leftutti
Posts: 406
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
|
11-17-2023, 12:26 PM | #38 |
Leftutti
Posts: 406
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
I've tried to add an icon to a column for has_notes similar to extra_files
Code:
if has_extra_files() then icon = add_icon(icon, 'extra_files.png') fi; |
11-17-2023, 02:51 PM | #39 | |
Grand Sorcerer
Posts: 11,774
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Are you sure you want to do this? Check for a note on any item in any column? Edit: I won't be able to provide an example for a while. Last edited by chaley; 11-17-2023 at 02:53 PM. |
|
11-17-2023, 03:50 PM | #40 |
null operator (he/him)
Posts: 20,655
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@chaley - it would be a hint to look in Book Details to see which category items have Notes. Would I make use of it? Probably not.
Decorating a category cell that that has notes attached to the applied items with a colour or icon might be useful - more so for single item categories such as Publisher and Series than multi-item categories such as Tags. This is not a request that it be implemented. BR |
11-17-2023, 09:54 PM | #41 | |
Grand Sorcerer
Posts: 11,774
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I don't know if the performance will be acceptable, especially if lots of items in lots of columns have notes. Code:
python: def evaluate(book, context): db = context.db.new_api notes_on_book = db.items_with_notes_in_book(book.id) return '' if not notes_on_book else ', '.join(notes_on_book.keys()) |
|
11-17-2023, 10:01 PM | #42 | |
Grand Sorcerer
Posts: 11,774
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
program: keys = notes_in_book() if '^publisher$' inlist keys then icon='whatever.jpg' else icon='' fi; icon |
|
11-18-2023, 05:22 AM | #43 |
null operator (he/him)
Posts: 20,655
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
The Ctrl+Shift+N keyboard shortcut will pop the Notes browser, if pressed it shows all the notes for all category items that have a note.
It would be nice to have radio buttons similar to those we now have in Manage Categories:- Show all category item notes and Only show notes for category items applied to the selected books. I did try putting an icon on the Publisher column if it had a note, but for me it's clutter. I'd rather glance at the relevant item in BD, which I do already for Links, if the Notes icon is present I would press Ctrl+Shift+N to see the note. BR Last edited by BetterRed; 11-19-2023 at 02:16 AM. |
11-18-2023, 12:33 PM | #44 |
Leftutti
Posts: 406
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
|
Tags |
column icons, customize, icons, preferences |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
added custom column icons render larger than original icons | masp | Library Management | 12 | 01-22-2019 04:07 PM |
customized column icons now Micro-icons | Gary_M_Mugford | Calibre | 10 | 09-05-2016 04:05 AM |
View list of custom column settings? | BookJunkieLI | Calibre | 8 | 07-25-2014 09:36 AM |
Multiple icons in a column? | RenoA | Library Management | 2 | 09-09-2013 03:20 AM |
REMOVE multiple files in Book view | wizard2b | Sigil | 1 | 05-09-2011 09:14 PM |