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',
'')