01-06-2018, 05:26 PM | #1 |
Member
Posts: 14
Karma: 10
Join Date: May 2013
Device: Pocketbook Touch Lux (Screen broken), Kobo Aura One
|
Kobo Collections from Calibre column names with prefix?
Hey
I just received my new Kobo Aura One (and I'm extremely happy with it). I configured Calibre according to https://wiki.mobileread.com/wiki/Kob...nd_Collections to create collections based on the tags and series field in calibre. What I would love to do is add a prefix to the collection name in order to end up with something like: "Series: Relevation Space" or "Tag: Science Fiction" From how I understand the collection creation works I don't think this is possible because I can either create a collection based on a value within a predefined column or I can add my own column, but there I cannot reference another. If you understand what I mean Am I overlooking something or is it really not possible? Please move the thread if it rather belongs to the calibre forum, I wasn't sure. Thank you! |
01-06-2018, 07:44 PM | #2 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
You should be able to do this with a custom column. I'm sure I've seen the suggestion before, most likely in the original collections discussion thread.
|
Advert | |
|
01-07-2018, 06:23 AM | #3 | |
Resident Curmudgeon
Posts: 76,075
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
01-07-2018, 06:56 AM | #4 | |
Grand Sorcerer
Posts: 6,366
Karma: 12117217
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
And all of them are created automatically... after the first time I created the custom column. |
|
01-07-2018, 07:02 AM | #5 | |
Grand Sorcerer
Posts: 6,366
Karma: 12117217
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
Advert | |
|
01-07-2018, 07:22 AM | #6 |
Member
Posts: 14
Karma: 10
Join Date: May 2013
Device: Pocketbook Touch Lux (Screen broken), Kobo Aura One
|
Exactly! That's what I want to do. In order to be able to do that I'd need to define a column name which contains another column name. And I don't know a way in which calibre could quote a column name.
|
01-07-2018, 07:44 AM | #7 | ||
I need a chapter break
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
|
Quote:
Quote:
Code:
{series:|Series: |} Here for one tag. Code:
program:str_in_list(field('tags'),",", "Science Fiction", "Tag: Science Fiction","") Last edited by oren64; 01-07-2018 at 08:30 AM. |
||
01-07-2018, 08:48 AM | #8 |
Member
Posts: 14
Karma: 10
Join Date: May 2013
Device: Pocketbook Touch Lux (Screen broken), Kobo Aura One
|
Thank you! That is what I was looking for
If I can do it for the series it's already really helpful. |
01-07-2018, 09:06 AM | #9 | |
I need a chapter break
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
|
Quote:
Lookup name: myseries Column heading: My Series Column type: Column built from other columns Template: {series:|Series: |} ok > apply > restart calibre. Go to KoboTouch or Kobo Touch Extended driver > Collections > Collections columns > type #myseries. Last edited by oren64; 01-07-2018 at 09:27 AM. |
|
01-07-2018, 10:15 AM | #10 |
Member
Posts: 14
Karma: 10
Join Date: May 2013
Device: Pocketbook Touch Lux (Screen broken), Kobo Aura One
|
Your fist hint was already successful But maybe it's also helpful for other people to have that documented.
Thanks! |
01-07-2018, 04:37 PM | #11 |
I need a chapter break
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
|
Here a template for all tags:
Use a column type: Column built from other columns, behaves like tags. Code:
program:strcat(test(field('tags'), "Tag: ", ""),re(field('tags'),", ", ", Tag: ")) Here a template for specific tags, for example "Mystery, Thriller" you can add more if you like: Code:
program:strcat(test(list_intersection(field('tags'),"Mystery, Thriller", ", "), "Tag: ", ""), re(list_intersection(field('tags'),"Mystery, Thriller", ", "),", ", ", Tag: ")) Last edited by oren64; 01-10-2018 at 08:46 AM. |
01-07-2018, 06:03 PM | #12 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Code:
program: strcat('Tag: ', raw_list('tags', ', Tag: ')) |
|
01-07-2018, 06:59 PM | #13 | |
I need a chapter break
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
|
Quote:
I add a test function, to prevent the show of "Tag: " if there is no tags. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo H2O - calibre convert to kepub and collection names | Maillemom | Kobo Reader | 1 | 07-30-2017 01:20 AM |
Calibre, Kobo and Collections | Sir Loyne | Kobo Reader | 39 | 05-20-2017 12:36 PM |
error on line 12 at column 82: Namespace prefix 'o' not declared | GentlemanGamer | Sigil | 6 | 08-30-2016 10:05 PM |
file names column | Vince197 | Library Management | 9 | 05-07-2011 03:25 AM |
Kobo reader cannot parse html file names with space/apostrophes. Can calibre fix this | Bismar | Calibre | 1 | 05-20-2010 01:12 PM |