07-27-2024, 03:29 PM | #706 | |
Addict
Posts: 309
Karma: 36772
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
Code:
{#koboreadpct:'cmp($,100,#read,#kobolastread,#read)'} #read and #kobolastread are both Date Any of them might be blank. ?? EDIT: The program version worked. I do wonder why the above doesn't. Last edited by foosion; 07-27-2024 at 03:54 PM. |
|
08-28-2024, 05:12 AM | #707 |
Custom User Title
Posts: 9,255
Karma: 63194753
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
program: status = readstatus(); times = $$#timesread; readgoal = strcat('readinggoal:', format_date(today(), 'yyyy')); switch_if( status=='read', 'Read', status=='didnotfinish', 'Did Not Finish', status=='currentlyreading', if times >#0 then 'Currently Rereading' else 'Currently Reading' fi, status=='toberead', 'To Be Read', status=='unread', if readgoal in $#admintags && $$#lastread then 'To Be Read' elif readgoal in $#admintags then 'Backlog' else 'Unread' fi, '' ) |
Advert | |
|
08-28-2024, 05:35 AM | #708 | |
Grand Sorcerer
Posts: 11,931
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
if readgoal in $#admintags && $$#lastread != 'None' then 'To Be Read' Code:
if readgoal in $#admintags && raw_field('#lastread', '') then 'To Be Read' |
|
08-28-2024, 06:03 AM | #709 |
Custom User Title
Posts: 9,255
Karma: 63194753
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yes, that works. Thank you.
|
09-09-2024, 05:53 PM | #710 |
Custom User Title
Posts: 9,255
Karma: 63194753
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'd like to replace my 'Add Cleanup tag' and 'Remove Cleanup tag' action chains with a single one that toggles it.
Code:
program: if '[Cleanup]' inlist $tags then list_difference($tags,'[Cleanup]' , ',') else list_union($tags,'[Cleanup]' , ',') fi |
Advert | |
|
09-09-2024, 06:06 PM | #711 | |
Grand Sorcerer
Posts: 11,931
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If the tag is actually the string '[Cleanup]', which your list_... expressions imply, then you can use the str_in_list() function to avoid regular expressions. Something like Code:
program: if str_in_list($tags, ',', '[Cleanup]', 1, '') then list_difference($tags,'[Cleanup]' , ',') else list_union($tags,'[Cleanup]' , ',') fi |
|
09-09-2024, 06:13 PM | #712 |
Custom User Title
Posts: 9,255
Karma: 63194753
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Ah, I didn't realize it'd register as a regex - I use brackets to make it sort to the beginning. Thanks.
|
Today, 03:34 AM | #713 |
Groupie
Posts: 179
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
|
Currently the Series column shows digits.
Great Series [1] Great Series [2] Perfect. But occasionally I want to break it down more and add decimals points with up to 2 digits. Another Great Series [1] Another Great Series [1.75] <-book/short story written later which fits here timewise. Another Great Series [2] Ok Good. However usually I want to have 2 digits after the decimal point. New Great Series [1.08] <- works great for monthly magazines i.e. 1979.08 for Aug '79 New Great Series [1.09] New Great Series [1.10] New Great Series [1.11] New Great Series [1.12] BUT The [1.10] gets displayed as [1.1] loosing zero in the 2nd decimal place, as is instead displayed like this: New Great Series [1.08] New Great Series [1.09] New Great Series [1.1] New Great Series [1.11] New Great Series [1.12] Is there a tweak I can use for the Series Column that will force it to use 2 decimal places if a decimal is used? (I do like it uses whole numbers if no decimal is involved. so [1] [2] are fine. I just want it to display [1.1] as [1.10]) Thanks, JohnnyBook |
Today, 05:20 AM | #714 |
Grand Sorcerer
Posts: 11,931
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
No, there isn't. The solution is the one you got when you asked this question before, make a column built from other columns that displays the series as you like. Note that you can't edit such a column. Changes must be made in the series column.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 156 | 07-23-2024 11:45 PM |
[Metadata Source Plugin] Questions regarding parse select, docs and ref templates | Boilerplate4U | Development | 13 | 07-07-2020 02:35 AM |
Questions on Kobo [Interfered with another thread topic] | spdavies | Kobo Reader | 8 | 10-12-2014 11:37 AM |
[OLD Thread] Some questions before buying the fire. | darthreader13 | Kindle Fire | 7 | 05-10-2013 09:19 PM |
Thread management questions | meme | Feedback | 6 | 01-31-2011 05:07 PM |