![]() |
#1 |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Dec 2016
Device: Kindle
|
Combining two custom columns?
Hi,
I have a question but I apologize if this is not the proper place to ask. If so, plse kindly let me know where I should ask my question. Many thanks in advance. Is it possible to create a custom column where you can enter new text that complements an existing set of defined values? For instance, if I have a column with values A, B, and C, I may want to enter a value D which will be added to the existing list. Is it possible in calibre? I cannot see any such option. Many thanks in advance for any help. Patrik |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,524
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Moderator Notice
Made into its own thread |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,524
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
program:list_union(field('tags'), field('#mytextmult'), ',') If you want the list sorted then use list_sort: Code:
program:list_sort(list_union(field('tags'), field('#mytextmult'), ','), '0', ',') |
|
![]() |
![]() |
![]() |
#4 | |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Dec 2016
Device: Kindle
|
Do you use calibre to manage your printed books library?
Quote:
And how or where do I use the Code:
program:list_sort(list_union(field('tags'), field('#mytextmult'), ','), '0', ',') Sorry, I'm a beginner in customizing calibre. Many thanks in advance for your answer. |
|
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,524
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,680
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
If you don't mind, let's go a step back: You have column A which admits three values. Is that a predefined column or an existing column?
If it is a predefined one, you would have to go with chaley solution: 1.- Create custom column B, which will have only the new values 2.- Create custom column C (composite created based on other columns), and the function will be the function chaley has written before. So, now you will have to introduce values in A or B depending of the value and C will show always the proper value. If A is a custom column, the easiest way to do it is to modify column A to add new values. I guess it will be predefined, but only to be sure. |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,524
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Dec 2016
Device: Kindle
|
How to get a custom value managed like Authors field?
Hi,
I have another pending question. I have created a custom Foreword column in which it is possible to specify who wrote a foreword to the currently selected book. When I right-click on the value in it and select Manage Foreword, I would like to get the same dialog box as when I right-click Author's name and select Manage Author. In other words I would like to handle Foreword as if it were an Author's name. How can I get this result? Many thanks in advance. |
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,524
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
However, right-clicking on the "Forward" label in the tag browser will give you a "Manage" dialog that might solve the problem. |
|
![]() |
![]() |
![]() |
#10 | |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Dec 2016
Device: Kindle
|
Combining two custom columns?
Quote:
That is what I'm in search of. Let us say I have a list of book types. Initially it is a set of predefined values but later on I realize I had not thought of one specific type and would like to add it to my existing list. How can I do to create a custom column that allows me to do so? I hope I made it clearer. Many thanks in advance for any help. |
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,524
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Is there some reason you don't want to add the new type as one of the possible pre-defined values? You do that by editing the column definition.
|
![]() |
![]() |
![]() |
#12 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,206
Karma: 60406678
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Note that you can't change the TYPE once created, but just about anything else can be updated. BEWARE of changing the lookup name if you have used it in plugins or scripts, Calibre can't suss out all uses, so those can now fail. |
|
![]() |
![]() |
![]() |
#13 | |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Dec 2016
Device: Kindle
|
Combining two custom columns?
Quote:
Plse find hereattached two screenshots: One is for Manage Authors dialog box. The other is for Manage Foreword (Préface in French) dialog box. How can I get the latter behave similar to the first one? Many thanks in advance. |
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,524
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You can't. The Authors column is special, having value, sort and link. The names-like column has only value.
|
![]() |
![]() |
![]() |
#15 | |
Connoisseur
![]() Posts: 60
Karma: 10
Join Date: Dec 2016
Device: Kindle
|
How to get a custom value managed like Authors field?
Quote:
Thanks again. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom columns | ChipAHoy | Library Management | 1 | 02-23-2018 02:50 AM |
Custom Columns | docmartn | Library Management | 3 | 08-30-2016 02:18 PM |
Composite column problem combining two tag type columns | At_Libitum | Recipes | 1 | 08-29-2013 12:31 PM |
Custom Columns - How are you using yours? | nynaevelan | Library Management | 19 | 04-18-2011 12:42 AM |
0.7.46 and custom columns | meme | Library Management | 4 | 02-21-2011 04:21 AM |