07-05-2017, 02:51 PM | #1 |
Enthusiast
Posts: 35
Karma: 10
Join Date: Jun 2014
Device: Paperwhite
|
Add Column Icon to all Author’s Books if…
Let’s say my database contains 10 books by author John Smith. One of these books won a notable award, and is therefore tagged “winner”. This tag will allow for an icon to be added next to his name.
Is there a way to mark all remaining books by the same author with a second icon signify that this is an author of some importance, but without adding an extra tag? I understand that I could simply add an additional tag to all non-winning books, even something simple such as a + sign, but that might require some maintenance down the line that I would prefer to avoid. Example included. |
07-05-2017, 02:56 PM | #2 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Sorry, what "database" are you referring to? If your question relates to a specific device or tool, you should ask it in the appropriate forum for that device or tool. Nobody is going to know what you're talking about if you ask here.
|
Advert | |
|
07-05-2017, 04:33 PM | #3 |
Just a Yellow Smiley.
Posts: 19,161
Karma: 83862859
Join Date: Jul 2015
Location: Texas
Device: K4, K5, fire, kobo, galaxy
|
It looks like Calibre, but I'm not sure.
|
07-06-2017, 02:41 AM | #4 |
Groupie
Posts: 167
Karma: 158116
Join Date: Oct 2015
Device: Kobo Glo HD (landscape), Kobo Aura One
|
Does this help
In setting choose first icon. last tab will be «colum symbol» Add rule eg. add icon without text, into column xx, if column yy is equal zz |
07-06-2017, 02:54 AM | #5 |
Resident Curmudgeon
Posts: 73,897
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I think it's Calibre and thus the thread should be moved. The screen grab looks like it's Calibre.
|
Advert | |
|
07-07-2017, 12:40 AM | #6 |
Enthusiast
Posts: 35
Karma: 10
Join Date: Jun 2014
Device: Paperwhite
|
Oh dear..
Should have payed more attention, I thought I was in the Calibre Forum.
Sorry about that. Can someone move it over or do I need to re-post elsewhere? Thanks |
07-07-2017, 12:41 AM | #7 |
Enthusiast
Posts: 35
Karma: 10
Join Date: Jun 2014
Device: Paperwhite
|
Thanks Katja. Will Work on it.
|
07-07-2017, 01:48 AM | #8 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Moved to the Calibre forum.
|
07-07-2017, 03:09 AM | #9 |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
If I understand the question properly then the answer is no. Calibre's column icon and column coloring feature uses the template language, which can interrogate the metadata for the book in question, not other books that share metadata. In other words, the template language cannot answer the question "does some other book by this author have the XXX tag?"
That said, one of DaltonST's plugins might be able to help. They provide a large grab bag of features. I have no idea if one of them might be a way to express cross-book queries. If you choose to go with adding information (the "tag"), I suggest that you dedicate a custom column to it. That way you don't pollute the tags with what is really administrative information. It also could make maintenance easier. |
07-07-2017, 03:48 AM | #10 | |
null operator (he/him)
Posts: 20,553
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Last edited by BetterRed; 07-07-2017 at 03:51 AM. |
|
07-07-2017, 04:26 AM | #11 | |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
To fill out your example:
If you want to use a hierarchical category then two things must be true.
|
|
07-07-2017, 04:51 AM | #12 |
null operator (he/him)
Posts: 20,553
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@chaley -
@madeleinelevy - I hope this gives you what you want. I suggest you install the User Categories plugin, it will allow addition and removal of Authors to/from the Important Authors UC from the book list, thus avoiding having to dodge in and out of the Tag Browser->Configuration menu when you want to add or remove an Author to the list. I find it works best from the context menu. BR |
07-07-2017, 05:03 AM | #13 | |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Thinking about it, one can avoid making the composite column by using an advanced rule in coloring/icons.
Quote:
|
|
07-07-2017, 05:47 AM | #14 |
null operator (he/him)
Posts: 20,553
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@chaley - l'll let the OP try the Advanced Rule route.
I implemented the custom column solution on an 8347 book library, start up time was 5.5 secs - library is on WD Caviar Black HDD, config is on a Toshiba HG6 SSD. That seems good enough to me. Because it's not keyboard navigable I rarely show the tag browser tree - unless of course I want to Manage Authors, Tags etc. When I first started using calibre it sort of was, as was book details - sort of Can anyone tell me what the following line in debug is about. I haven't had an Apple anything since a IIe and Lisa 30 years ago, and I have never installed the Fanficfare plugin. And the file doesn't exist, see attachment macmenuhack file_path:C:\_Calibre\Configuration_64bit\plugins\ fanficfare_macmenuhack.txt. calibre Debug log Spoiler:
BR Last edited by BetterRed; 07-07-2017 at 05:50 AM. |
07-07-2017, 07:38 AM | #15 |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
The attached image shows how to do it with an advanced rule.
Here is the template text shown in the image. The "Foo Bar" is there because that is the name of my test user category. Code:
program: contains(user_categories(), 'Foo Bar', 'ok.png', '') |
Tags |
column, icon, preferences, rule |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Column to filter books by author | mariaclaudia | Calibre | 1 | 06-12-2016 11:32 AM |
Add tag from author and specific column | P.K.Dick | Library Management | 1 | 10-13-2014 03:20 PM |
add books - author FN/ LN issue - kindle books | cybmole | Calibre | 2 | 01-29-2014 03:07 PM |
Calibre will only add 2 books from same author onto KF | Hope | Kindle Fire | 1 | 01-11-2012 10:24 AM |
Add Books Author Problem | PCreighton | Calibre | 2 | 09-03-2010 07:18 PM |