|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1051 | |
|
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Oct 2014
Location: Schweiz [Switzerland]
Device: Pocketbook Verse Pro
|
Thank you for your answer chaley
First I should say, I have absolutely no talent for programming (unfortunately). Quote:
I tried to get help from ChatGPT, but we couldn't get that to work either. I would appreciate any help. |
|
|
|
|
|
|
#1052 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,529
Karma: 8075938
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
{#genre:subitems(1,3)}
Code:
program: subitems($#genre, 1,3) |
|
|
|
|
|
|
#1053 | |
|
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Oct 2014
Location: Schweiz [Switzerland]
Device: Pocketbook Verse Pro
|
Dear Chaley,
Eureka. Thanks to your help Quote:
That's perfect. Thanks again. |
|
|
|
|
|
|
#1054 |
|
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Oct 2014
Location: Schweiz [Switzerland]
Device: Pocketbook Verse Pro
|
I used your second approach.
It seems to be the better one, and I'll use it.
|
|
|
|
|
|
#1055 |
|
Member
![]() Posts: 21
Karma: 10
Join Date: Jun 2026
Device: none
|
Hi. How can I add thousand separator to this template:
{identifiers:select(grvotes)} |
|
|
|
|
|
#1056 |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,347
Karma: 7990245
Join Date: Sep 2020
Device: Libra Colour
|
|
|
|
|
|
|
#1057 |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,347
Karma: 7990245
Join Date: Sep 2020
Device: Libra Colour
|
good idea, BTW. I changed mine
More resources here: https://www.mobileread.com/forums/sh...d.php?t=245647 Last edited by Comfy.n; 06-19-2026 at 10:11 AM. |
|
|
|
|
|
#1058 |
|
Member
![]() Posts: 21
Karma: 10
Join Date: Jun 2026
Device: none
|
|
|
|
|
|
|
#1059 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,135
Karma: 1502844
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
That template changes the values a lot for me.
Last edited by dunhill; 06-20-2026 at 07:40 PM. |
|
|
|
|
|
#1060 |
|
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,347
Karma: 7990245
Join Date: Sep 2020
Device: Libra Colour
|
Last edited by Comfy.n; 06-20-2026 at 05:30 PM. |
|
|
|
|
|
#1061 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,135
Karma: 1502844
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
solved in spanish
Code:
program:
v=select(field("identifiers"), "grvotes");
if v then
re(format_number(v, "{0:,.0f}"), ",", ".")
fi
|
|
|
|
|
|
#1062 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,070
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
@dunhill, please attach all of your images. The problem will be when others come to read this thread and some of your images are gone because they've expired the image host.
|
|
|
|
|
|
#1063 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,135
Karma: 1502844
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
|
|
|
|
|
|
#1064 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2026
Device: Kindle Paperwhite 11
|
Replace Certain Tags in List But Maintain List
![]() I have a huge library that I'd like to organize and reduce some redundancy from the raw metadata and tags for shelving in KOReader. One example is for fandoms. I've got some with many fandoms that I'd like consolidated in name, and then for the unchanged names to be returned as part of the list for tags. Example: Raw metadata fandom tags for 1 fic: The Avengers, Harry Potter - J. K. Rowling, Marvel Cinematic Universe, Lucifer Cleaned up fandom tags: Marvel Cinematic Universe, Harry Potter, Lucifer I've tried the code below which DOES do what I want but it gets tedious because I have to repeat the same block of if... then and else list_item for each potential item number. This would also need updating if new names need to be changed in each repeating segment or the list number increases. Code:
program:
list_join(', ',
if 'Avengers' in list_item($#sourcefandom,0,', ')
then 'Marvel Cinematic Universe'
else
if 'Harry Potter' in list_item($#sourcefandom,0, ', ')
then 'Harry Potter'
else
list_item($#sourcefandom,0,', ')
fi fi
,', ',
## if...then and list_item statements repeated with item numbers 1, 2, 3... etc.
,', ',
)
Code:
program:
sf = field('#sourcefandom');
list_join(', ',
if list_contains(a, ', ', 'Harry Potter', '1', '')
then 'Harry Potter'
fi
,', ',
if list_contains(a, ', ', 'Avengers', '1', '')
then 'Marvel Cinematic Universe'
fi
,', ',
|
|
|
|
![]() |
| Tags |
| custom column, tag, tags |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Should composite columns appear in Grouped Searches? | ownedbycats | Library Management | 3 | 02-13-2021 03:43 PM |
| Having problems with composite columns and save/send templates | Trel | Calibre | 4 | 09-26-2016 03:21 PM |
| Tooltips for narrow columns | theducks | Library Management | 7 | 03-16-2015 10:58 PM |
| Techniques to use plugboards, custom columns and templates | kovidgoyal | Library Management | 0 | 01-26-2011 04:21 PM |