02-04-2019, 05:14 AM | #1 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Custom Column with Searches
Hi.
Is it possible to either create a custom column where all the searches show up? Or just add a search to User Categories? I tried searching the forum but couldn't find anything. Thanks |
02-04-2019, 05:35 AM | #2 |
creator of calibre
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
saved searches show up under searches in the tag browser already
|
Advert | |
|
02-04-2019, 05:55 AM | #3 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Yes, I was just wondering if I could create a custom column based on that?
|
02-04-2019, 07:43 AM | #4 |
creator of calibre
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can do it with virtual libraries but not saved searches. https://manual.calibre-ebook.com/gen...tual-libraries
although note that this is pretty bad for performance. |
02-04-2019, 08:44 AM | #5 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I don't understand what you are trying to do so this comment may be irrelevant, but ...
If what you want is a column containing the the names of virtual libraries in which that book appears then the two plugins Save Virtual Libraries To Column (GUI) and Save Virtual Libraries To Column might help. They fill in a "text, behaves like tags" custom column with the names of the virtual libraries, avoiding the performance problems that come with the template function. |
Advert | |
|
02-07-2019, 01:56 AM | #6 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Thanks for the VL idea, I hadn't thought of that.
When I create a hierarchical column can I use other than . to show the levels and when I save to disk can it keep the hierarchical structure? Edit: I had searched on the wrong thing when I tried finding out if it was possible. But I found this thread: https://www.mobileread.com/forums/sh...d.php?t=288847 and that helped me create my own template. Last edited by Tanjamuse; 02-07-2019 at 03:24 AM. |
02-07-2019, 10:10 AM | #7 |
creator of calibre
Posts: 43,871
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, you cannot use a character other than the period. And you can use templates probably with functions to save the book in whatever folder hierarchy you need.
|
02-07-2019, 10:24 AM | #8 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Thanks, I might need help with a template if I can't get it to work.
|
02-07-2019, 11:06 AM | #9 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Is there any way I can change this:
Code:
{#meta_fandom:re(\.,/)}/{#story_id}/{author} - {title} example: Code:
Test.\Test2/2/author-title I hope it made sense. |
02-07-2019, 11:16 AM | #10 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
02-07-2019, 11:25 AM | #11 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Note that Calibre uses forward slashes (/) for folders in Save to disk templates.
Plus given backslash is a special character for regex, I think the use of it in tags or custom columns might prove problematic for templates. Is there a reason for using \ in tags? If it's just to create folders for Save to disk templates, then you don't need to. Example: Save to disk template Code:
{#fandom:re(\.,/)}/{#storyid}/{author} - {title} Xover.Buffy.Supernatural #storyid 9797629 author hoshi-ni-onegai title Eternal Oblivion This will give me the following structure: Code:
Xover/ Buffy/ Supernatural/ 9797629/ hoshi-ni-onegai - Eternal Oblivion.epub |
02-07-2019, 11:42 AM | #12 | |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
This didn't work:
Code:
{#meta_fandom:'re($, '\\|\.', '/')'}/{#story_id}/{author} - {title} Quote:
|
|
02-07-2019, 11:57 AM | #13 | |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
If so, then something like this might work: Code:
{#meta_fandom:'re($, '\.\\', '/')'}/{#story_id}/{author} - {title} #meta_fandom Xover.\Buffy.\Supernatural |
|
02-07-2019, 12:12 PM | #14 | |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
If you're willing to replace the .\ with a .>, then this: Code:
{#meta_fandom:'re($, '\.>', '/')'}/{#story_id}/{author} - {title} Xover.>Buffy.the.Vampire.Slayer.>Supernatural Code:
Xover Buffy.the.Vampire.Slayer Supernatural Last edited by ilovejedd; 02-07-2019 at 12:15 PM. |
|
02-07-2019, 02:03 PM | #15 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Thanks. The second one did the trick.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom column built from word count column | Montana Harper | Library Management | 3 | 10-04-2018 09:57 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 |
Custom yes/no column built from long text column | Philantrop | Library Management | 7 | 03-23-2013 07:44 PM |
how to move value(s) of tag column to a custom made column | zoorakhan | Library Management | 0 | 12-08-2012 03:53 AM |