View Single Post
Old 10-02-2020, 01:47 PM   #32
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by JimmXinu View Post
I am intrigued... but also mildly confused. Can you give a couple examples of search with a template?
There are two examples in the search interface section of the manual, at the very end of the section. I suggest you use the "Advanced search" dialog to build a few so you can see the syntax.

The idea, inspired by compurandom's query, is that some custom columns exist only for searching. These can go away, replaced by a search that uses a template to compute the value. Also, searches can now also use non-metadata template functions such as formats_sizes(), booksize(), connected_device_name(), current_library_name(), etc.

I am also working on "stored templates", which are basically template subprograms. These will interact well with template searches, permitting one to build a complex template to compute a value then "call" that template, with parameters if desired, from a search.

Last edited by chaley; 10-03-2020 at 03:23 AM.
chaley is offline   Reply With Quote