Quote:
Originally Posted by un_pogaz
Okay, I'm posting here, because it concerns the very fresh development of Calibre, and I'm not sure if it's a bug (or at least, I lack explanation)
for a plugin I'm looking at the FieldMetadata from "calibre.library.field_metadata", and I discovered that the "custom_series_index" fields are not marked as custom fields.
Code:
{
'table': None,
'column': None,
'datatype': 'float',
'is_multiple': {},
'kind': 'field',
'name': '',
'search_terms': ['#custom_series_index'],
'label': 'custom_series_index',
'colnum': None,
'display': {},
'is_custom': False,
'is_category': False,
'link_column': None,
'category_sort': None,
'is_editable': False,
'is_csp': False,
'rec_index': 37
}
If it's a bug, it's old, V4. It would be too weird that it went unnoticed all this time.
|
That is because series indices aren't real columns, custom or otherwise.
Every series-type column 'lookup_name' has an associated virtual column 'lookup_name_index', added automatically when the series-type column is added to field metadata. The value of that virtual column comes either from the book record (series) or from the series link table (#series).