Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-21-2019, 01:46 PM   #1
Vaesse
Zealot
Vaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolate
 
Vaesse's Avatar
 
Posts: 107
Karma: 33020
Join Date: May 2011
Device: Kindle Paperwhite
Exclamation Merged Custom Column of Names

I have a library of comic books and graphic novels. I have created custom columns for all of the various artists that may be involved (Artist, Penciller, Inker, Colorist, Letterer, Cover) and am trying to create a different custom column (Art) that will take all of those columns and make one list of everyone involved in art for the comic.

I have figured out how to pull all the columns into Art:

Code:
{#artist}{#pencil:| & |}{#ink:| & |}{#color:| & |}{#letter:| & |}{#cover:| & |}
However, if there are multiple people in any one category, they are treated as one. I tried to use the "sublist" function, but it doesn't work the way I thought it did (never did manage to get it to actually separate items in the Art column). Also, if one artist fills more than one role, they'd be repeated in Art, which is less than ideal. And the separators aren't perfect, since if some but not all of the sub-columns are filled in, extra separators are likely to appear.

I think there's probably a better way to be doing what I'm doing, so I came here for help.
Vaesse is offline   Reply With Quote
Old 06-21-2019, 05:29 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,724
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Try Preferences ->Searching->Group Searches

BR
BetterRed is online now   Reply With Quote
Advert
Old 06-21-2019, 07:25 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I think something like this will work.
remember to repeat the capture in the source template (.+){1,}
target value \1 (optional description)
Append to the destination

Repeat for each source column
OH: I did this with Bulk mode S&R
theducks is offline   Reply With Quote
Old 06-21-2019, 07:45 PM   #4
Vaesse
Zealot
Vaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolate
 
Vaesse's Avatar
 
Posts: 107
Karma: 33020
Join Date: May 2011
Device: Kindle Paperwhite
Yeah, I really want it in a custom column, not a search or a replace.. :-/

I'll keep futzing at it, I guess, unless anyone else has other ideas.
Vaesse is offline   Reply With Quote
Old 06-21-2019, 07:58 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Vaesse View Post
Yeah, I really want it in a custom column, not a search or a replace.. :-/

I'll keep futzing at it, I guess, unless anyone else has other ideas.
You can use S&R to move/copy data to any column (of the correct type )
That is why it allows specifiy both Source and destination
theducks is offline   Reply With Quote
Advert
Old 06-21-2019, 08:18 PM   #6
Vaesse
Zealot
Vaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolate
 
Vaesse's Avatar
 
Posts: 107
Karma: 33020
Join Date: May 2011
Device: Kindle Paperwhite
Yeah, but it won't change dynamically. It's a solution, just not my preference.
Vaesse is offline   Reply With Quote
Old 06-21-2019, 08:24 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,724
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Did you try group searches ?
BetterRed is online now   Reply With Quote
Old 06-21-2019, 08:30 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,724
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BetterRed View Post
Did you try group searches ?
If it doesn't do what you want, then if you tell us why not we might get a better idea of what might work for you. I use it for exactly what I think your trying to do.

BR
BetterRed is online now   Reply With Quote
Old 06-21-2019, 10:20 PM   #9
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Vaesse View Post
I have a library of comic books and graphic novels. I have created custom columns for all of the various artists that may be involved (Artist, Penciller, Inker, Colorist, Letterer, Cover) and am trying to create a different custom column (Art) that will take all of those columns and make one list of everyone involved in art for the comic.

I have figured out how to pull all the columns into Art:

Code:
{#artist}{#pencil:| & |}{#ink:| & |}{#color:| & |}{#letter:| & |}{#cover:| & |}
However, if there are multiple people in any one category, they are treated as one. I tried to use the "sublist" function, but it doesn't work the way I thought it did (never did manage to get it to actually separate items in the Art column). Also, if one artist fills more than one role, they'd be repeated in Art, which is less than ideal. And the separators aren't perfect, since if some but not all of the sub-columns are filled in, extra separators are likely to appear.

I think there's probably a better way to be doing what I'm doing, so I came here for help.
Did you create these columns as "Comma separated text, like tags, shown in the tag browser" and selected the "Contains names" checkbox? And is the column you are now creating a "Column built from other column, behaves like tags"? If so, to combine two, you could use:

Code:
{#artist:'list_union($,"{#pencil}", " & ")'}
That will give you a list of all the unique names separated by an ampersand. For more than three columns, it looks something like:

Code:
{#artist:'list_union($,list_union(field("#pencil"),field("#ink")," & "), " & ")'}
And adding more columns means nesting more "list_union"s and I'd get lost in matching the parentheses and quotes. So, I'd use program mode for and get something like:

Code:
program:
     people = list_union(field('#artist'), field('#pencil'), " & ");
     people = list_union(people, field('#ink'), " & ");
     people = list_union(people, field('#color'), " & ");
     people = list_union(people, field('#letter'), " & ");
     people = list_union(people, field('#cover'), " & ");
I haven't tested the full version as I had to add a second column for names in my test library. But, it mostly works with two columns and the rest is extrapolation of that.

This does produce an ampersand separated list. It only has each name one. The tag browser show each name separately. But, the sorting is probably not correct. I don't see a way to have them treated as names. So, the sorting will be "FN LN" rather than "LN, FN" like it would for the authors column.
davidfor is offline   Reply With Quote
Old 06-21-2019, 10:45 PM   #10
Vaesse
Zealot
Vaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolate
 
Vaesse's Avatar
 
Posts: 107
Karma: 33020
Join Date: May 2011
Device: Kindle Paperwhite
Sorting isn't an issue, nor is last first. This looks like EXACTLY what I wanted. I'll try it. Thanks!
Vaesse is offline   Reply With Quote
Old 06-21-2019, 11:13 PM   #11
Vaesse
Zealot
Vaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolate
 
Vaesse's Avatar
 
Posts: 107
Karma: 33020
Join Date: May 2011
Device: Kindle Paperwhite
Okay... tried this, only one thing didn't work... I have one place where instead of one colorist I have two. And they are still showing up as one list item (both names separated by an &).
Vaesse is offline   Reply With Quote
Old 06-22-2019, 07:32 AM   #12
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Sorry, that seemed to work here, but, looking again, I didn't look at all the possibilities.

Unfortunately, I can't see how to do this as an ampersand separated list like the authors. Best I can do is as a comma separated list. Then each name is shown in the tag browser as separate entries under the column.

The following should to work:
Code:
program:
     people = list_union(raw_list('#artist',','), raw_list('#pencil',','), ',');
     people = list_union(people, raw_list('#ink',','), ',');
     people = list_union(people, raw_list('#color',','), ',');
     people = list_union(people, raw_list('#letter',','), ',');
     people = list_union(people, raw_list('#cover',','), ',');
The column has to be defined as mentioned above.

To get the result treated as names, it would require a change in calibre.
davidfor is offline   Reply With Quote
Old 06-22-2019, 08:34 AM   #13
Vaesse
Zealot
Vaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolateVaesse is generous with chocolate
 
Vaesse's Avatar
 
Posts: 107
Karma: 33020
Join Date: May 2011
Device: Kindle Paperwhite
That worked! Thank you again so much! I'm not overly worried about the difference between "tag" and "name" in this instance (though name would obviously be ideal), so this is absolutely perfect.
Vaesse is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding custom column with any lookup-name gives me empty column as a result? Ahu Lee Library Management 16 06-09-2019 12:14 PM
Move selected data from series column to a new custom column fvdham Library Management 3 06-02-2017 03:49 PM
Custom column returns value based on value of another custom column? calvin-c Calibre 3 09-14-2013 02:24 PM
how to move value(s) of tag column to a custom made column zoorakhan Library Management 0 12-08-2012 03:53 AM
Merge/Keep First Book - Yes/No Column Not Merged Correctly nynaevelan Library Management 1 08-07-2011 09:52 AM


All times are GMT -4. The time now is 01:59 AM.


MobileRead.com is a privately owned, operated and funded community.