07-24-2014, 02:52 PM | #1 |
Zealot
Posts: 114
Karma: 6288
Join Date: Dec 2012
Device: iphone
|
Manage Authors Link Column
In Metadata there is a link to Manage Authors that has Author, Author Sort and Link. How do I create a custom column to show whatever I put in the Link column. I don't want to put a url in there just a reference word.
Can I create the custom column showing the Link column? Thanks |
07-24-2014, 04:22 PM | #2 |
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,
|
I can't get into calibre at the moment to check for sure but I'm fairly certain the answer is yes.
You would create a custom column using the 'Column built from other columns' type and then either the 'contains' or the 'test' function. It would look something along the lines of: Code:
{column:test(Link,No Link)} Code:
{column:contains(value,Link,No Link)} http://manual.calibre-ebook.com/temp...l#if-then-else http://manual.calibre-ebook.com/temp...-function-mode |
07-24-2014, 07:41 PM | #3 |
Zealot
Posts: 114
Karma: 6288
Join Date: Dec 2012
Device: iphone
|
I think you misunderstand. I want it to show whatever is in the column. much the same way that author_sort is. I have set up a new column with "column built from other columns and {Link} but it doesn't work. I also tried {author_link} neither one works. What field will it recognize?
|
07-24-2014, 08:35 PM | #4 | |
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
07-24-2014, 09:32 PM | #5 | |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
07-24-2014, 10:00 PM | #6 |
Zealot
Posts: 114
Karma: 6288
Join Date: Dec 2012
Device: iphone
|
ok if I can't use that can anyone make another suggestion. Basically I just want to assign each author one of 3 of four categories. and I have a lot of authors so I only want to do it once. if i had been able to use link I could have just put the category there, that way every time I added a John Sandford novel it would have automatically populated the custom column I would have created with FICTION.
Any ideas? |
07-24-2014, 10:19 PM | #7 |
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@tarisea - Maybe you could make use of the User Category feature, you could create a category (fiction) and populate it with fiction writers, and another (script writers) with playwrights, screen writers etc.
You get to it via Alter Tag Browser->Manage Authors tags etc->Manage User categories. See Tag Browser for doco. Added : And I just stumbled on this related plug-in ==>> [GUI Plugin]User Category BR Last edited by BetterRed; 07-24-2014 at 11:13 PM. |
07-24-2014, 11:51 PM | #8 |
Zealot
Posts: 114
Karma: 6288
Join Date: Dec 2012
Device: iphone
|
this would work if i can create a custom column that displays what user category it is in. can it be done?
|
07-25-2014, 12:58 AM | #9 | |
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
A 'standard' category item (author, publisher etc) can be in more than one user category. Example Kerstin Ekman could be in the Crime and Favourites User Categories. Maybe one of the template genii can some up with some trick. You can create VLs based on User Categories - @<user_cat_name>:true. You could request an enhancement that the author_link field be exposed as a column you can use in a column template - like author_sort. BR |
|
07-25-2014, 06:59 AM | #10 | |
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I added a new formatter function "author_links()". It probably will be in next week's release.
The documentation for the function is: Quote:
Code:
program: list_union( '', re( list_re(author_links(':', ' & '), ' & ', '^.*:(.)', '\1'), '&', ','), ',') EDIT2: If you are up to making a python custom template function, the map from author to the associated link is "mi.author_link_map". Last edited by chaley; 07-25-2014 at 09:30 AM. Reason: edit: fix when probably available. I thought today was Thursday. |
|
07-25-2014, 09:50 AM | #11 |
Zealot
Posts: 114
Karma: 6288
Join Date: Dec 2012
Device: iphone
|
chaley thank you for your response. when I used your program I got the error:
EXCEPTION: Formatter: unknown function author_links near author_links What I want is so simple. I have over 500 authors. I want to be able to divide them into 4 or 5 categories and have a column that shows what category they are in without having to manually add every book. eg. every time I add a John Grisham boom the column should automatically say "ReadList". Jodi Picoult "MyAuthors". Ann Rice "MyAuthors". The first time I add a new author I will assign it but after that it should be automatic. So whether it is putting the Category in the Manage Authors Links column: Author: John Grisham Author Sort: Grisham, John Link: ReadList Author: Jodi Picoult Author Sort: Picoult, Jodi Link: MyAuthors And then a column made from other columns that shows the Link column or The User Category plugin that I can add the Authors to and then have a column that will show the User Category that the author belongs to. or something else entirely. Please there has to be a way. Help Thanks |
07-25-2014, 10:00 AM | #12 | ||
Grand Sorcerer
Posts: 11,741
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
If you want to do something *right now* then you can build a custom template function (Preferences / Advanced / Template Functions). The function would have access to the underlying data (the author -> author link map) from which you can extract the info and format it however you want. Do note that you have never specified what should happen if there is more than one author. I assumed that you would want to merge the information. |
||
07-28-2014, 07:04 PM | #13 |
Connoisseur
Posts: 60
Karma: 2016606
Join Date: Apr 2012
Device: android tablets
|
Not quite the same but similar, I wish there was a way for authors to link to their alias without having to put "author name a & author aka name". eg "Stephen King & Richard Bachman"
While I have done that for many authors (it helps when looking for books by that author) it becomes horridly complicated when some authors have four and even more aka's. |
07-28-2014, 07:52 PM | #14 |
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Inferno - I add a '*' onto the end of the pseudonym name. Thus The Cuckoo's Calling has Robert Galbraith * as its author, in the Author Link for Robert Galbraith * I have the URL to my 'AuthorInfo/J. K. Rowling' folder.
The '*' tells me its a pseudonym, the author link tells me the 'real' name. Maybe if Author ends in '*' I can extract the 'name' from chaley's new author_links() function into a new '#pseudonym' custom column - e.g. 'J. K. Rowling' from 'file:///E:/Calibre%20Libraries/TestInfo/AuthorInfo/J.%20K.%20Rowling/'. BR |
07-29-2014, 01:47 AM | #15 |
Guru
Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
|
Hmm... I created a custom column #pseudonym in which I list any pen names the author released the story under.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suggestion: Add filter to manage tags, authors etc. | Peter Walters | Library Management | 6 | 04-04-2012 05:21 AM |
Can I generate Additional Authors column which shares Authors data? | GeekyGal | Library Management | 4 | 10-04-2011 09:17 PM |
Manage Authors Dialog? | mdibella | Library Management | 7 | 02-23-2011 02:47 AM |
calibre 0.7.45 Error when trying to manage authors, etc | Bertrand | Calibre | 2 | 02-12-2011 12:23 PM |
& sign in Manage authors | bigpallooka | Calibre | 7 | 11-04-2010 06:16 PM |