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.44k stars 229 forks source link

Modifier le tri de la colonne RATING #320

Closed JeanClaudeS closed 7 years ago

JeanClaudeS commented 7 years ago

Quelqu'un sait-il ou peut-on modifier l'affichage de la liste des étoiles (rating) qui apparait dans l'ordre alphabétique, j'aimerai l'avoir dans l'ordre de la date d'inscription dans la bibliothèque. Merci d'avance. Does anyone know or can you change the display of the star rating (which appears in alphabetical order), I would like to have it in order of the date of inscription in the library . best regards.

horus68 commented 7 years ago

I can see those stars on the recently added tab : http://rbebook.esy.es/index.php?page=10 Is not the same in your library?

seblucas commented 7 years ago

As @horus68 said if you go to the recent books the default sort is by book's timestamp 👍

https://github.com/seblucas/cops/blob/master/lib/Book.php#L56-L57

But I have to admit I don't really understand what you mean by star rating / timestamp order could you explain it a little more.

@horus68 I removed your link as it seems to show copyrighted books. If I'm mistaken .... sorry in advance.

horus68 commented 7 years ago

@seblucas No it has not, I only use books without copyright and books released by authors/editors as free contents (those are released by them only to be shared, no reedits allowed)!

seblucas commented 7 years ago

My bad I've reverted my edit. Sorry for that.

horus68 commented 7 years ago

no problem, this was just an example to understand what was the question on stars ordering.

JeanClaudeS commented 7 years ago

@seblucas Ce que je voulais c'est que l'item "appéciation" correspondant à "notes" dans Calibre s'affiche dans l'ordre chronologique : les plus récents d'abord. merci d'avance _What I wanted is that the item "Appréciation" corresponding to "Notes" in Calibre appears in chronological order: the most recent first._

seblucas commented 7 years ago

The order used is the following :

https://github.com/seblucas/cops/blob/master/lib/Book.php#L58-L59

So it should not be chronological but based on book's title.