Quote:
Originally Posted by carmenchu
Help, please! I dare say somebody has done this already, but my search hasn't found any example I can follow...
I have added to my library a column #aliases, to contain the pseudonym(s) of the book author(s), and I would wish to get it working the same as the 'authors' column: view as 'FN LN', but have it in the tag browser as 'LN, FN'.
I have got 'almost' there, by adding a 'column from other columns' #aliases_sort, to appear in the tag browser.
Hitch: after wrestling with the reference for template functions, the nearer I have got is:
{#aliases:sublist(-1,0, ), #aliases:sublist(0,-1, )}
which:
* fails down for names like 'Thomas J. Bassler, MD' and adds a comma after single names like 'Homerus'
* Would likely go haywire if applied to a multi-valued column, like 'Ivar Jorgensen & Mark Phillips'
So, instead of trying to reinvent the wheel, I come for help, **please**.
Many thanks!
|
There isn't any way to do this reliably. What you are doing gets as close as one can.
I suggest you make a second column #aliases_sort, entering the value you want to see for the sort. That way it is correct. Unfortunately it means you must edit that field when you add a new book.
If there are multiple authors for a book then both the #aliases and the #aliases_sort should have "Contains names" checkbox checked.
Quote:
Originally Posted by OrangeFlavored
Is there a way to create a column to list the number of items within the series that this book is a member of? I tried {series:count(,)} but that just displayed 1 for everything, not sure if I'm using it wrong or that function can't be used here.
Goal is to find and remove all series with only one member (an old holdover to when I was on a Kindle device where putting everything in a series made browsing through the series list easier, but not necessary anymore for my current device) so if there's an alternate means to do so that would also work. I thought about just batch unsetting the #1 entry from every series in my library (which seems like it could be accomplished easily enough with find/replace on batch metadata edit) and then manually going back and fixing it for all the ones that actually belong to a real series, but wondering if a better way exists.
|
There isn't any way to do this with the template language because it can see only one book. There could be (probably is) a tool in one of DaltonST's plugins that can do the computation for you. Another way: use the tag browser to find series with count == 1 then editing the series appropriately. To help with this, click on the "screwdriver/spanner" icon under the tag browser and set the sort to "Number of books"