![]() |
#1021 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,120
Karma: 6426808
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Quote:
Currently the way I see to do it is using the Notes Browser with its FTS-like search syntax, like this: In that example I've searched for authors born in 9/11. Default shortcut is Ctrl + Shift + N. However I can't tell how to bring all results from that search into "main Calibre", so that I could bulk add the "Born in 9/11" tag, for instance. |
|
![]() |
![]() |
![]() |
#1022 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,920
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
You can search a note using a template like this one, suitably modified. Code:
program: first_author = sublist($authors, 0, 1, '&'); note = get_note('authors', first_author, '1'); if 'something' in note then ans = 'Yes' else ans = 'No' fi; ans
Depending on what you want to do, there are two ways to proceed.
Last edited by chaley; Today at 07:25 AM. |
|
![]() |
![]() |
![]() |
#1023 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,120
Karma: 6426808
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Quote:
I get "EXCEPTION: string indices must be integers, not 'str'" in the Template Editor. I'm trying with: Comparison type - Text, and pasting the code in field Template, while leaving the field Template Value empty. |
|
![]() |
![]() |
![]() |
#1024 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,920
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
get_note('authors', first_author, '') |
|
![]() |
![]() |
![]() |
#1025 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,920
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
get_note('authors', first_author, 1) |
|
![]() |
![]() |
![]() |
#1026 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,120
Karma: 6426808
Join Date: Sep 2020
Device: Calibre E-book viewer
|
It works in the template editor, showing "Yes" for a given value when a book whose author's notes contain the string is currently selected.
However when I paste the template in the search bar, it returns no results, so I must be doing something the wrong way Last edited by Comfy.n; Today at 08:32 AM. |
![]() |
![]() |
![]() |
#1027 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,920
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Template: Code:
program: first_author = sublist($authors, 0, 1, '&'); note = get_note('authors', first_author, '1'); if 'a' in note then ans = 'Yes' else ans = '' fi; ans Note that the template search generated by the dialog contains more than just the template. Last edited by chaley; Today at 08:44 AM. |
|
![]() |
![]() |
![]() |
#1028 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,120
Karma: 6426808
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Quote:
![]() Now I'm trying to fix my advanced search issue, hopefully I can come up later with more detailed info. I think my notes database has grown too much lately, and when I do the search as indicated in your screenshot for Advanced Search, Calibre enters some seemingly infinite database lookup. This has happened other times and I solved it by recreating my Bio column. (deleting it, then re-adding). Today this didn't seem to solve the issue. Process Monitor shows this: |
|
![]() |
![]() |
![]() |
Tags |
custom column, tag, tags |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
custom column i need a little help | shinken | Calibre | 3 | 09-15-2010 03:41 AM |
Using Custom Metadata in Save Template | EJvdH | Calibre | 1 | 07-02-2010 06:06 AM |
Accessories Decalgirl Kindle 2 custom skin template | srmalloy | Amazon Kindle | 6 | 04-09-2010 09:55 PM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 04:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 02:37 PM |