seblucas / cops

Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...)
http://blog.slucas.fr/en/oss/calibre-opds-php-server
GNU General Public License v2.0
1.43k stars 229 forks source link

Show more columns in book details #410

Closed isra00 closed 5 years ago

isra00 commented 6 years ago

Currently, only Authors, Publisher, Publication Year, Tags, Languages and Summary are being shown in the book details. It would be useful to have the other default columns (Identifiers, Date, Size) plus the custom ones.

Custom columns can be shown in the home page through the cops_calibre_custom_column config. It would be nice to have either the same config or a new one to control which custom columns are shown in the book details page.

horus68 commented 5 years ago

Edit your config_local.php file:

    /** Custom columns - value names from Calibre - Visible in the Index page */
    $config['cops_calibre_custom_column'] = array ("xxx1", "xxx2");

    /** Custom columns - value names from Calibre - Visible in the list representation pages */
    $config['cops_calibre_custom_column_list'] = array ("xxx1", "xxx2");

    /** Custom columns - value names from Calibre - Visible in the book preview panel */
    $config['cops_calibre_custom_column_preview'] = array ("xxx1", "xxx2");

xx1 and xx2 are to be changed for your calibre custom column... and you can have more values and different order by page type):

Can you please close this issue now?

isra00 commented 5 years ago

Thank you! I works like a charm