View Single Post
Old 01-02-2022, 06:16 PM   #1
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,069
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Strangeness when referencing VLs in other VLs

I have a virtual_libraries() column. However, I'm having a bit of a strange interaction with it and I'm not sure if it's a glitch or some sort of strange user error.

I have two VLs here:

Fiction: tags:"=.Fiction"

Cleanup: search:"=Cleanup"

I wanted to hide all the "Cleanup" books in the Fiction VL. So I did this:

tags:"=.Fiction" AND NOT #vls:"=Cleanup"

This search worked as expected when I tested it in All Books. But when I put it into the Fiction VL itself, it results in every VL disappearing from books that have a tag starting with Fiction.

Here's one book before and after modifying the VL:

Click image for larger version

Name:	2022-01-02 19_04_57-Tailchaser's Song.jpg
Views:	73
Size:	163.8 KB
ID:	191275

Click image for larger version

Name:	2022-01-02 19_06_20-Tailchaser's Song.jpg
Views:	74
Size:	164.0 KB
ID:	191276

The weird part is that all the VLs are still returning their correct books, and if I use template tester to run virtual_libraries() directly on those books, it still shows the correct ones:

Click image for larger version

Name:	2022-01-02 19_07_52-Template tester.png
Views:	70
Size:	23.9 KB
ID:	191277





I did some further testing too. Two VLs here:

Physical Books: formats:paperbook

Loans: formats:overdrive


No overlapping books between the two of them. But when I changed VL to formats:paperbook AND NOT #vls:"=Loans" I got the same results: VLs disappearing from books with a paperbook format, virtual_libraries() giving expected results.

Any clue what might be happening here?

Last edited by ownedbycats; 01-02-2022 at 07:30 PM.
ownedbycats is offline   Reply With Quote