![]() |
#541 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,453
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#542 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Unless my hand slipped, I used the replace button.
|
![]() |
![]() |
Advert | |
|
![]() |
#543 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,453
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#544 |
Fulltime reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 9296
Join Date: Mar 2021
Device: Kobo Clara
|
I have a question I can't quite figure out. I was trying to create a virtual library or a search on a % column. I can do <100 and get 99 or below, but I can't figure out how to include rows that are empty. Probably dead simple, but beyond me
![]() Thanks!! |
![]() |
![]() |
![]() |
#545 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
$$#intcolumn== 'None' for template I have the latter for my readstatus() template: Spoiler:
Last edited by ownedbycats; 03-30-2023 at 07:00 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#546 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,097
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Have you tried colname:true and colname:<100
|
![]() |
![]() |
![]() |
#547 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,199
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Try this search:
Code:
#percent:false or #percent:<100 |
![]() |
![]() |
![]() |
#548 |
Fulltime reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44
Karma: 9296
Join Date: Mar 2021
Device: Kobo Clara
|
This
#percent:false or #percent:<100 actually looks like it works. I'll have to go through to see if what I expect is there. Thanks! |
![]() |
![]() |
![]() |
#549 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
program: id = list_re($#admintags, ',', 'related:(\d+)', '\1'); strcat('<a href="', 'calibre://book-details/My%20Books/',id, '">', 'Related Book','</a>') If there's multiple ids returned by the list_re how would I create a link for each one instead of calibre://book-details/My%20Books/x,y,z? Last edited by ownedbycats; 03-31-2023 at 10:33 PM. Reason: typos |
![]() |
![]() |
![]() |
#550 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,453
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
program: ids = list_re($tags, ',', '(.*)', '\1'); links = ''; for id in ids: links = links & strcat('<a href="', 'calibre://book-details/My%20Books/',id, '">', 'Related Book','</a>', ', ') rof; # remove the trailing comma substr(links, 0, -1) |
|
![]() |
![]() |
![]() |
#551 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
It works
![]() Btw, what should I put for "My Books" in the url when there's a space? |
![]() |
![]() |
![]() |
#552 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 287
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
|
|
![]() |
![]() |
![]() |
#553 | ||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 287
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
|
Quote:
Code:
python: def evaluate(book, context): import urllib.parse return urllib.parse.quote(book.title) Quote:
|
||
![]() |
![]() |
![]() |
#554 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,453
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Libraries that are hex encoded must start with '_hex_-'. Here is an example of building a calibre:// url using the function. Code:
program: lib = 'library.test_small'; hex_lib = '_hex_-' & to_hex(lib); url = 'calibre://book-details/' & hex_lib & '/' & $id; '<a href="' & url & '">Book id ' & $id & '</a>' Code:
calibre://book-details/_hex_-6c6962726172792e746573745f736d616c6c/1385 All of this is documented here. |
|
![]() |
![]() |
![]() |
#555 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
That's useful to know
![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 225 | 08-04-2025 06:31 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 |