![]() |
#1 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,837
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Is there a way to add a boolean value to a User Category?
Saved search for #bool didn't show up in the item list.
![]() Context: I combined Kobo collections and reading lists into a user category. I also want to add #onkobo:yes. Last edited by ownedbycats; 06-09-2021 at 11:08 PM. |
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,380
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If this is important enough then you can do it using a composite column that displays #onkobo and has "Show in tag browser" checked. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,837
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Technically, my saved search appears in the tag browser.
![]() |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,380
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,380
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
BTW: another way to solve this problem is to change from using user categories to a tags-like composite column, where the column computes the "names" of all "user categories" the book would be in. Of course, for this solution to work the names must be computable (not arbitrary), but given that they come from saved searches that shouldn't be a problem.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,837
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'm working on making a new column, #kobostatus. I just borrowed the template from my column icon. (I am planning to change the icons to pull from #kobostatus once I got it working.)
Code:
program: k = $#kobocoll; if check_yes_no('#onkobo', 0, 1, 0) then 'Send to Device' elif check_yes_no('#onkobo', 0, 0, 1) then if list_contains(k, ',', '^Kobo Store$', '1', '') then 'Kobo Store' elif list_contains(k, ',', '^Send to Device$', '1', '') then 'Send to Device' else 'Sideloaded' fi fi |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,380
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Apparently there is a bug in column evaluation where function aliases are ignored. I haven't figured out yet why.
You can fix it by using the original name 'in_list' instead of the alias 'list_contains'. |
![]() |
![]() |
![]() |
#8 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,837
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
This worked
Code:
program: k = $#kobocoll; if check_yes_no('#onkobo', 0, 1, 0) then 'Send to Device' elif check_yes_no('#onkobo', 0, 0, 1) then if 'Kobo Store' in k then 'Kobo Store' elif 'Send to Device' in k then 'Send to Device' else 'Sideloaded' fi fi Last edited by ownedbycats; 06-12-2021 at 11:51 AM. |
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,380
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,837
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Oh I'll fix that then
|
![]() |
![]() |
![]() |
#11 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,837
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Also added one for borrowed books
Code:
program: k = $#kobocoll; if check_yes_no('#onkobo', 0, 1, 0) then 'Send to Device' elif check_yes_no('#onkobo', 0, 0, 1) then if 'Kobo Store' inlist k then 'Kobo Store' elif 'Loans' inlist k then 'On Loan' elif 'Send to Device' inlist k then 'Send to Device' else 'Sideloaded' fi fi Last edited by ownedbycats; 06-12-2021 at 07:16 PM. |
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,380
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If you can specify the rules then you should be able to do what you want with a composite column that generates a hierarchical tags-like value. The first level would be the category name (the 'user category') and the second level would be the category value. These would show in the tag browser as a tree of values inside categories. |
|
![]() |
![]() |
![]() |
#13 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,837
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
That makes sense. Anyways, I got it all set up the way I wanted. I even found that Job Spy's tag browser icons applied to #kobostatus will copy over to the user category.
![]() |
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,380
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Move a user Sub-Category into another Category | groob | Library Management | 5 | 06-09-2021 10:22 AM |
Add new category to MyShelves, how? | bartveld | Calibre | 16 | 04-07-2019 03:07 AM |
User Category Help | rdyornot | Library Management | 0 | 10-10-2017 07:29 PM |
Need Help with User Category Plugin | ommaandnugs | Plugins | 0 | 05-11-2014 02:56 PM |
Possible new feature: Adding a r/c menu option to add to user category items | kiwidude | Calibre | 29 | 11-30-2010 09:14 AM |