View Single Post
Old 09-06-2024, 12:15 PM   #1016
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
I am trying to create a custom column from tags to manage collections on the kobo, but no values are being added (neither in the column, nor in the collections on the device). Maybe it's because I'm trying to use regex in the program code?

When I add a book recommended by someone, I add a tag "reco [name]". So for instance "reco Martha Wells". I would like the copy this tag to the "reco" column to use as a collection column.

I created a "reco" column from other columns, acts like tags:
Code:
program:
	switch_if(
		$tags == 'reco (.*)', 'reco \1', 
		'')
But this "reco" column is never filled. Am I missing a step somewhere?



Part two, would it be possible to also, automatically add any books with a value in the "reco" column to a general collection named "friends recos"?

Could I do that with something like this, either in the column or in the collections model in the KoboTouchExtended Driver?
Code:
program:
	switch_if(
		$tags == 'reco (.*)', 'reco \1', 
		$tags == 'reco (.*)', 'recos amis', 
		'')
Mister L is offline   Reply With Quote