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

Custom Column Sorting #386

Open sdfg2 opened 6 years ago

sdfg2 commented 6 years ago

Hello,

Is there a way to say how a custom column is sorted? I've got one set up for 'superseries' of books (like the Riftware Cycle, the Shannara series and so on) so I know not only which order to read the books within the series (done by default) but which order to read them in the greater chronology. It would be nice to have them sortable.

EDIT: And have the custom column information displayed in the book summary list too?

horus68 commented 5 years ago

On your final request: 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", "xxx3");

the values "xxnumbers" are to be changed with the lookup names configured in Calibre custom column. You can have more values and different order by page type):