add description cut-off in library and delete query error in book.php