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, 11:18 AM   #1
wildfire070
Member
wildfire070 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma
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, 11:21 AM   #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,091
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
Code:
program:
	list_intersection($tags, 'B,C', ',')
capink is offline   Reply With Quote
Advert
Old 12-03-2023, 12:33 PM   #3
wildfire070
Member
wildfire070 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma
Perfect! Thank you!
wildfire070 is offline   Reply With Quote
Old 12-05-2023, 02:53 AM   #4
Ghostcat
Enthusiast
Ghostcat can grip it by the huskGhostcat can grip it by the huskGhostcat can grip it by the huskGhostcat can grip it by the huskGhostcat can grip it by the huskGhostcat can grip it by the huskGhostcat can grip it by the huskGhostcat can grip it by the huskGhostcat can grip it by the huskGhostcat can grip it by the huskGhostcat can grip it by the husk
 
Posts: 44
Karma: 141660
Join Date: Apr 2023
Device: Kobo Clara 2E
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, 11:28 AM   #5
wildfire070
Member
wildfire070 began at the beginning.
 
Posts: 23
Karma: 10
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma
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 11:41 AM.
wildfire070 is offline   Reply With Quote
Advert
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 10:22 PM
Custom Column with sub-folder template Tanjamuse Library Management 6 01-13-2014 12:22 AM
Template for custom column BeeTee-Ess Library Management 5 10-04-2013 08:55 PM
[Custom Column - Composite] Template Help Requested Ealdwulf Library Management 2 06-16-2012 04:58 AM
Help with template for custom column from tags africalass Library Management 2 07-16-2011 11:47 AM


All times are GMT -4. The time now is 10:14 AM.


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