View Single Post
Old 04-30-2022, 12:44 PM   #23
meghane_e
Zealot
meghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercisemeghane_e juggles running chainsaws for a bit of light exercise
 
Posts: 126
Karma: 38500
Join Date: Sep 2016
Location: San Jose, CA
Device: Kindle moving to Kobo or Boox
I use these custom columns:
#source (where I bought and/or downloaded the book from)
#price (Starts with a default $100.00 value. I read a lot of KU books and want to record them, but also need a way to record the price I paid for my other books. Helps with comparing online book sales.)
#ereader_title (program to display "{series} Book {series-index}: {title}")
I plan to add in some old code that strips any series info from the end of titles

#original_add (I had been combining old libraries which means the new library would only have the most recently added date. But I also wanted to capture the originally added date)

I've tried adding a custom #genre column a few times but get bogged down in actually translating incoming tags to genres every single time.

This is copy/pasted from my #ereader_title column:
Code:
program:
if_series = ifempty($series, '') ;
if_series_index = test($series_index, strcat(' Book ', $series_index), '') ;
if_subseries = ifempty(field('#subseries'), '') ;
subseries = test(if_subseries, strcat('/', if_subseries), if_subseries ) ;
subseries_index = test(if_subseries, strcat(' ', field('#subseries_index')), '') ;
title_choice = ifempty($title, '<Unknown Title>') ;
trim_title = test($series, re(title_choice, '((: \()|(\())(.*)(\))', ''), title_choice );
if_series_colon = test($series, strcat(': ', trim_title), trim_title) ;
display_title = strcat(if_series, if_series_index, subseries, subseries_index, if_series_colon);
re(display_title, '( :)', ':' ) ;

Last edited by meghane_e; 04-30-2022 at 12:47 PM. Reason: added a code segment
meghane_e is offline   Reply With Quote