Endret indikatoren for at en streng er kuttet i boksøk.
This commit is contained in:
parent
e9e508d1eb
commit
466e3fefe4
|
@ -9,10 +9,10 @@ def search_book_cmd(search_strings, search_description=False):
|
||||||
format = '%-13s %-10s %-40s %-30s'
|
format = '%-13s %-10s %-40s %-30s'
|
||||||
for book in books:
|
for book in books:
|
||||||
b_id = book.getid() or ''
|
b_id = book.getid() or ''
|
||||||
title = cut_str(book.title, 40)
|
title = cut_str(book.title, 40, '*')
|
||||||
authors = map(lambda p: p.first_name+' '+p.last_name,
|
authors = map(lambda p: p.first_name+' '+p.last_name,
|
||||||
book.get_authors())
|
book.get_authors())
|
||||||
authors_str = cut_str(', '.join(authors), 30)
|
authors_str = cut_str(', '.join(authors), 30, '*')
|
||||||
print format % (book.isbn, b_id, title, authors_str)
|
print format % (book.isbn, b_id, title, authors_str)
|
||||||
|
|
||||||
def search_book(search_strings, search_description=False):
|
def search_book(search_strings, search_description=False):
|
||||||
|
|
Reference in New Issue