Method: Ig3tool::BibliotheekWindow#books_find
- Defined in:
- lib/ui/bibliotheekwindow.rb
#books_find(widget) ⇒ Object
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
# File 'lib/ui/bibliotheekwindow.rb', line 234 def books_find() Thread.new do begin books = $client.bib_lookup(get_fields) puts books case books.size when 0 #book not found in db _lookup_isbnbook(@books_isbn.text) when 1 _show(books.first) else _update_books_list(books) end rescue Exception => e puts e.backtrace @books_notification.text = e..smaller end end end |