From: Oleg Broytman Date: Sat, 21 May 2016 14:04:35 +0000 (+0300) Subject: Output serial number of the book in the series X-Git-Tag: 0.0.6~3 X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=commitdiff_plain;h=09f49faa484b5091be175823e406cbebb4162e3a Output serial number of the book in the series --- diff --git a/docs-ru/command_line.rst b/docs-ru/command_line.rst index 67cb5f6..6f3c94b 100644 --- a/docs-ru/command_line.rst +++ b/docs-ru/command_line.rst @@ -115,7 +115,8 @@ ml-search.py По умолчанию программы выводит список заголовков найденных книг. При использовании опции `-d` также выводится список авторов и жанров, а -также серия, к которой принадлежит книга (если принадлежит). +также серия, к которой принадлежит книга (если принадлежит) и порядковый +номер книги в этой серии. Поиск расширений ^^^^^^^^^^^^^^^^ diff --git a/docs/command_line.rst b/docs/command_line.rst index 0dd5365..fdc5f97 100644 --- a/docs/command_line.rst +++ b/docs/command_line.rst @@ -113,7 +113,8 @@ Options:: By default the program prints only titles of the found book. With one option `-d` it also prints the list of authors and genres, and also -series the book belongs to (if any). +series the book belongs to (if any) and the serial number of the book in +the series. Extension search ^^^^^^^^^^^^^^^^ diff --git a/scripts/ml-search.py b/scripts/ml-search.py index 39d3dab..bdb1d9d 100755 --- a/scripts/ml-search.py +++ b/scripts/ml-search.py @@ -76,7 +76,8 @@ def _search_books(case_sensitive, search_type, args): print if book.series: print " ", _("Series"), ":", - print book.series.encode(default_encoding) + print book.series.encode(default_encoding), \ + "(%d)" % book.ser_no def _search_extensions(case_sensitive, search_type, args):