09-05-2015, 10:14 AM | #1 |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
How to swop LN,FN to FN LN in template
Someone told me how to do this ages ago, but I've long since lost that template. Please can someone tell me where and exactly what to append to {author} in a template to swop LN,FN to FN LN. (By default my library is in LN,FN order.)
Many thanks |
09-05-2015, 11:08 AM | #2 |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
use {author_sort} for Export
This does not affect the Library Preferences: Adding books for adding options The Quality check PI for author Fixing tools |
Advert | |
|
09-05-2015, 12:17 PM | #3 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
{author:swap_around_comma()} |
|
09-06-2015, 04:43 AM | #4 |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Thanks - I already do that. However, that affects only the exported folder titles, as far as I can see, and what I am after is changing the display in the jacket.
I am just exploring alternatives and trying to get to understand templates better, with limited success so far. Last edited by Hoods7070; 09-06-2015 at 04:56 AM. |
09-06-2015, 07:27 AM | #5 | ||
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
Quote:
Code:
<td class="cbj_author" colspan="2">{author}</td> Code:
{author:swap_around_comma()} Previously, I had added a hidden column containing FN LN (sans comma) and called that from my jacket template, but I am darned if I can remember or find out how to add that second author column correctly. Again, I have tried various things (adding custom column) to no useful avail. I think BetterRed helped me out, but can't find the relevant thread. Sorry to be so dim. Old age is a b**ch. |
||
Advert | |
|
09-06-2015, 07:30 AM | #6 | |
Well trained by Cats
Posts: 29,809
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:
Remember to put code hacks (substitutes) into the Calibre Configuration folder using the exact same program relative path. That way is safe against being overwritten during weekly upgrades (although, it might fail at some future time) . |
|
09-06-2015, 07:45 AM | #7 | |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
|
|
09-06-2015, 07:50 AM | #8 | ||
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Code:
<tr> <td class="cbj_author" colspan="2">{_myauthor}</td> </tr> EDIT: I hadn't seen your last post. Try _fnln where I put _myauthor |
||
09-06-2015, 08:11 AM | #9 | |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
But chaley has given you the answer - I do have a vague memory that on first sight 'swap around comma' reminded me of Arlo Guthrie's "Ring around Rosie Rag" from Alice's Restaurant. BR 'Age cannot wither her, nor custom stale' , Shakespeare, Antony and Cleopatra |
|
09-06-2015, 06:29 PM | #10 | |
Groupie
Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
@chaley_not_charley, AHAH!!! For the want of a flipping underscore!!! Added that and viola! (sic) - THANK you.
@ducks, I found that post, and had been hacking away, but it didn't contain the vital info -- chaley's underscore. @br Quote:
As they say, when the age is in, the wit is out. Shakespeare, Much Ado About Nothing Many thanks all of you. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Delete template | imans314 | Library Management | 15 | 04-26-2023 09:01 PM |
Template Generation | BetterRed | Library Management | 4 | 10-02-2014 06:40 AM |
Template suggestion? | phossler | Editor | 1 | 06-21-2014 01:37 PM |
Help with template | KALKITO | Library Management | 1 | 07-02-2012 02:54 PM |
A little help with a save template...? | Belfaborac | Library Management | 2 | 02-04-2011 09:47 PM |