05-10-2023, 07:57 AM | #121 |
Grand Sorcerer
Posts: 12,027
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Changed template function
10 May 2023 (in calibre 6.18)
Changed template function
Last edited by chaley; 06-21-2023 at 04:43 PM. |
05-10-2023, 08:16 AM | #122 |
Custom User Title
Posts: 9,521
Karma: 64500175
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Will need to change existing ones?
|
05-10-2023, 08:28 AM | #123 | |
Grand Sorcerer
Posts: 12,027
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
No.
Quote:
You use the new behavior if you want "id:value" when you test for an identifier's existence. Last edited by chaley; 05-11-2023 at 06:12 AM. |
|
09-17-2023, 06:19 AM | #124 |
Grand Sorcerer
Posts: 12,027
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
17 Sep 2023 (in calibre 6.27)
New template function
Last edited by chaley; 09-22-2023 at 06:31 AM. |
10-26-2023, 10:59 AM | #125 |
Grand Sorcerer
Posts: 12,027
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
26 Oct 2023 (in calibre beta 6.99)
New template functions for notes:
|
11-13-2023, 08:18 AM | #126 |
Grand Sorcerer
Posts: 12,027
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
13 Nov 2023: (in calibre 7.0)
New template function for links
Last edited by chaley; 11-29-2023 at 01:18 PM. |
11-13-2023, 03:49 PM | #127 |
Custom User Title
Posts: 9,521
Karma: 64500175
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thank you!
|
11-19-2023, 10:50 PM | #128 | |
Guru
Posts: 773
Karma: 340954
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
|
|
03-03-2024, 08:41 AM | #129 |
Grand Sorcerer
Posts: 12,027
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
3 March 2024: (in calibre 7.7)
Last edited by chaley; 07-31-2024 at 08:08 AM. |
03-03-2024, 05:44 PM | #130 | |
null operator (he/him)
Posts: 20,989
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
03-03-2024, 06:08 PM | #131 | |
Grand Sorcerer
Posts: 12,027
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Example: a composite with the template Code:
program: get_note('authors', $authors, '') produces this NB: get_note() is rather slow, which is why I said you probably shouldn't show the column in the booklist. Showing it icon-only is still showing it, as the template will be evaluated. |
|
03-03-2024, 06:55 PM | #132 | |
null operator (he/him)
Posts: 20,989
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Is get_note() inherently rather slow, or only when it contains uuencoded images? BR |
|
03-03-2024, 07:34 PM | #133 | |
Grand Sorcerer
Posts: 12,027
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If there are images in a note then they also must be fetched from the notes database and converted to base64. This of course adds to the running time. If you sort or search on the note composite then the above will happen for every book in the library. I have no idea whether some plugins will evaluate the column for all books. I haven't noticed any particular problem with get_notes() speed on my test library, but then I don't do anything that would require evaluating that column for every book. |
|
07-31-2024, 08:14 AM | #134 |
Grand Sorcerer
Posts: 12,027
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Enhancement to template tester
31 July 2024 (in calibre source)
I added a button to the template evaluation results list to open the Edit metadata (single) dialog on a given book. You can view or modify the book's metadata. Changes will be shown when you close the edit metadata dialog to return to the template tester. |
09-15-2024, 11:04 AM | #135 |
Grand Sorcerer
Posts: 12,027
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Performance improvements in notes and links functions
15 Sept 2024 (in calibre source)
The performance of the template functions get_note(), has_note(), and get_link() have been improved. The improvement is especially visible when using these functions in composite columns and template searches. The amount of improvement depends on the number of items in a column. For example, when using a library with more than 10,000 authors, performance of a template search looking for authors with links improved by 20 times. The improvement is less visible with column icon rules because these are computed when visible on the screen rather than when used in some other operation. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A few questions... (template language, mainly) | Clem2605 | Library Management | 2 | 12-30-2020 04:25 AM |
Template Language | phossler | Calibre | 8 | 01-12-2016 05:37 PM |
Help needed with template language | Mamaijee | Devices | 12 | 02-19-2013 02:52 AM |
Help with template language | Pepin33 | Calibre | 8 | 11-11-2012 09:32 AM |
Template language question | BookJunkieLI | Library Management | 7 | 02-02-2012 07:55 PM |