View Single Post
Old 05-16-2025, 10:08 AM   #10761
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,039
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by culytera View Post
I do something similar with the tags, though I don't add these to a column so you probably need to use add_to_custom_columns_settings instead:
Code:
add_to_extra_valid_entries:,prefix_category,prefix_rating,prefix_ships,prefix_status
include_in_prefix_category:category
include_in_prefix_rating:rating
include_in_prefix_ships:ships
include_in_prefix_status:status
keep_in_order_prefix_category:true
keep_in_order_prefix_ships:true

replace_metadata:
 prefix_ships=>^(.*)=>[p] \1
 prefix_category=>^(.*)=>[c] \1
 prefix_rating=>^(.*)=>[r] \1
 prefix_status=>^(.*)=>[s] \1

include_subject_tags:prefix_ships_LIST,prefix_category_LIST,prefix_rating,prefix_status
This is largely what I was thinking as the 'more complex' version. Create new metadata entries for prefix versions, add prefix, then use.

As culytera said, you'll need custom_columns_settings to put them in a column, but it sounded like you already had that part.

However, custom_columns_settings only allows for one metadata entry per line, so you'll need to either merge the different prefix_X into another new entry first or use multiple custom_columns_settings lines with 'a' flags.

It looks like culytera uses the keep_in_order_X settings and X_LIST to retain author's ordering for those entries. That may or may not work with custom column , depending on your custom column type and how you merge the different entries.
JimmXinu is offline   Reply With Quote