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 12-03-2023, 12:18 PM   #1
wildfire070
Connoisseur
wildfire070 is on a distinguished road
 
Posts: 62
Karma: 72
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma, Tab Mini // Supernote
Custom column template help

I'm trying to build a custom column based on the Tags column. I'd like to filter certain tags from the Tags column and if they appear there, I'd like to have them show up in my custom column.

For example: Tags column contains "A", "B", "C". I'd like it if "B" and "C" are in the Tags column, that my custom column would show "B", "C".

Is this possible?
wildfire070 is offline   Reply With Quote
Old 12-03-2023, 12:21 PM   #2
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,216
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Code:
program:
	list_intersection($tags, 'B,C', ',')
capink is offline   Reply With Quote
Old 12-03-2023, 01:33 PM   #3
wildfire070
Connoisseur
wildfire070 is on a distinguished road
 
Posts: 62
Karma: 72
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma, Tab Mini // Supernote
Perfect! Thank you!
wildfire070 is offline   Reply With Quote
Old 12-05-2023, 03:53 AM   #4
Ghostcat
Connoisseur
Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.
 
Posts: 68
Karma: 582370
Join Date: Apr 2023
Device: Kobo Clara 2E, Pocketbook Inkpad 4
Quote:
Originally Posted by capink View Post
Code:
program:
	list_intersection($tags, 'B,C', ',')
Is there a why of handling Hierarchical tags using regex?
Ghostcat is offline   Reply With Quote
Old 03-22-2024, 12:28 PM   #5
wildfire070
Connoisseur
wildfire070 is on a distinguished road
 
Posts: 62
Karma: 72
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma, Tab Mini // Supernote
Is this possible with a custom column as the column to filter from? The custom column lookup name is "#fictags" so I tried:

Code:
program: list_intersection($#fictags, 'B,C', ',')
of course, replacing "B,C" with the terms I'm trying to filter, but get no results.

Last edited by wildfire070; 03-22-2024 at 12:41 PM.
wildfire070 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me with Custom Column template nqk Library Management 3 09-23-2016 11:22 PM
Custom Column with sub-folder template Tanjamuse Library Management 6 01-13-2014 01:22 AM
Template for custom column BeeTee-Ess Library Management 5 10-04-2013 09:55 PM
[Custom Column - Composite] Template Help Requested Ealdwulf Library Management 2 06-16-2012 05:58 AM
Help with template for custom column from tags africalass Library Management 2 07-16-2011 12:47 PM


All times are GMT -4. The time now is 06:34 PM.


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