![]() |
#121 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
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 03:43 PM. |
![]() |
![]() |
![]() |
#122 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,161
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Will need to change existing ones?
|
![]() |
![]() |
Advert | |
|
![]() |
#123 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
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 05:12 AM. |
|
![]() |
![]() |
![]() |
#124 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
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 05:31 AM. |
![]() |
![]() |
![]() |
#125 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
26 Oct 2023 (in calibre beta 6.99)
New template functions for notes:
|
![]() |
![]() |
Advert | |
|
![]() |
#126 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
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 12:18 PM. |
![]() |
![]() |
![]() |
#127 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,161
Karma: 62872439
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thank you!
|
![]() |
![]() |
![]() |
#128 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 745
Karma: 308700
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#129 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
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 07:08 AM. |
![]() |
![]() |
![]() |
#130 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,825
Karma: 27620684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#131 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
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. |
|
![]() |
![]() |
![]() |
#132 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,825
Karma: 27620684
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() Is get_note() inherently rather slow, or only when it contains uuencoded images? BR |
|
![]() |
![]() |
![]() |
#133 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
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. |
|
![]() |
![]() |
![]() |
#134 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,903
Karma: 7076137
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. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A few questions... (template language, mainly) | Clem2605 | Library Management | 2 | 12-30-2020 03:25 AM |
Template Language | phossler | Calibre | 8 | 01-12-2016 04:37 PM |
Help needed with template language | Mamaijee | Devices | 12 | 02-19-2013 01:52 AM |
Help with template language | Pepin33 | Calibre | 8 | 11-11-2012 08:32 AM |
Template language question | BookJunkieLI | Library Management | 7 | 02-02-2012 06:55 PM |