Change the default sort of books by author to have books in a series first.
这个提交存在于:
父节点
49fed9ef11
当前提交
07a85406fb
共有 1 个文件被更改,包括 2 次插入 和 1 次删除
3
book.php
3
book.php
|
|
@ -27,7 +27,8 @@ define ('SQL_BOOKS_BY_PUBLISHER', "select {0} from books_publishers_link, books
|
|||
define ('SQL_BOOKS_BY_FIRST_LETTER', "select {0} from books " . SQL_BOOKS_LEFT_JOIN . "
|
||||
where upper (books.sort) like ? order by books.sort");
|
||||
define ('SQL_BOOKS_BY_AUTHOR', "select {0} from books_authors_link, books " . SQL_BOOKS_LEFT_JOIN . "
|
||||
where books_authors_link.book = books.id and author = ? {1} order by pubdate");
|
||||
left outer join books_series_link on books_series_link.book = books.id
|
||||
where books_authors_link.book = books.id and author = ? {1} order by series desc, series_index asc, pubdate asc");
|
||||
define ('SQL_BOOKS_BY_SERIE', "select {0} from books_series_link, books " . SQL_BOOKS_LEFT_JOIN . "
|
||||
where books_series_link.book = books.id and series = ? {1} order by series_index");
|
||||
define ('SQL_BOOKS_BY_TAG', "select {0} from books_tags_link, books " . SQL_BOOKS_LEFT_JOIN . "
|
||||
|
|
|
|||
正在加载…
添加表格
添加链接
在新工单中引用