10-21-2024, 05:18 PM | #736 | |
Enthusiast
Posts: 37
Karma: 190
Join Date: Sep 2023
Device: Kobo Libra 2
|
Quote:
|
|
10-21-2024, 06:13 PM | #737 | |
Grand Sorcerer
Posts: 12,005
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
EDIT: For consistency with field_list_count() and the new operator field_inlist (addition submitted to Kovid) I submitted a change to rename format_date_field() to field_format_date(). The old name format_date_field() is an alias and will continue to work. My intention is that any new functions and operators that work on fields will be prefixed with 'field_'. EDIT2: I might reverse the naming convention and put the _field at the end, changing field_list_count() to list_count_field(). The new operator would be inlist_field instead of field_inlist. In this case the format_date_field() wouldn't be renamed. Still thinking ... Last edited by chaley; 10-21-2024 at 06:51 PM. |
|
10-22-2024, 10:08 AM | #738 |
Custom User Title
Posts: 9,465
Karma: 64488089
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Regarding format_date_field, something odd happened: I had a book today that matched all the criteria (added today, had the readinggoal tag, had a purchasesource and a non-0 cost).
However, when I used format_date_field() it didn't add the challenge tag. Changing it back to format_date() worked. I tested with both $date and $$date. Last edited by ownedbycats; 10-22-2024 at 10:11 AM. |
10-22-2024, 10:45 AM | #739 | |
Grand Sorcerer
Posts: 12,005
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
EDIT: until today's change is incorporated you must use format_date_field('timestamp') instead of 'date'. Last edited by chaley; 10-22-2024 at 11:49 AM. Reason: Correction |
|
10-22-2024, 12:26 PM | #740 |
Custom User Title
Posts: 9,465
Karma: 64488089
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
ah, the timestamp/date thing. Why does that column have two separate lookups anyways?
EDIT: Looks like the pull request has already been merged in. Last edited by ownedbycats; 10-22-2024 at 12:40 PM. |
10-22-2024, 12:51 PM | #741 |
Grand Sorcerer
Posts: 12,005
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Yes it has. One consequence: field_list_count() is now list_count_field(). You must change to the new name wherever you used the old one.
Last edited by chaley; 10-22-2024 at 01:19 PM. Reason: Spelling |
10-22-2024, 12:52 PM | #742 |
Custom User Title
Posts: 9,465
Karma: 64488089
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Yeah, I noticed my columns errored when I updated from source. Got it fixed.
|
10-25-2024, 02:01 PM | #743 |
Leftutti
Posts: 486
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
list_count_field
I have a column #series authors (thx chaley)
Spoiler:
And I have a column symbol for more than one series author Code:
program: if list_count($#series_authors, ',') > 1 then 'series_authors.png' fi Code:
program: if list_count_field('#series_authors') > 1 then 'series_authors.png' fi I installed Calibre 7.20.100 but as always, I have no idea. |
10-25-2024, 02:10 PM | #744 | |
Grand Sorcerer
Posts: 12,005
Karma: 7257321
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
10-25-2024, 02:29 PM | #745 |
Leftutti
Posts: 486
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Learning never stops - thank you!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 168 | 10-26-2024 12:12 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 |