View Single Post
Old 08-04-2020, 08:52 AM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Grins View Post
With a Pocketbook Touch HD3 and calibre 4.22 on macOS I am using the following expression, both for the metadata plugboard and the device interface plugin:

{author_sort}/{series}{series_index:0>2s| - | - }{title} - {author_sort}
That looks like the save template in the driver. I can't think of a reason to use it in a metadata plugboard. What field are you putting the result in?
Quote:
The series information is correct for all books which DO belong to a series.

But if a book DOES NOT belong to a series (just a single volume) the series information is badly corrupted as shown with the attached graphics.

So obviously my expression does not really help ...
Looking at the screenshots from the device, that looks like a bug on the device. The data being displayed appears to be for a custom column called "#pub_series". It is the value of the content attribute for this column. I would guess the device is looking for an attribute whose name includes the word "series" rather than exactly "calibre:series". What they are doing works for books with the calibre series, as it is probably first in the OPF. But, for books without a calibre series, the "calibre:series" attribute will not be there, but the "#pub_series" be even if it doesn't have a value.

I would hope that renaming the "#pub_series" to something without "series" in its name, would solve this. Or removing the column completely if you do not use it. A way to test, you could edit the book after sending it to the device, look at the OP and rename or remove the attribute.
davidfor is offline   Reply With Quote