lib/bookshark/extractors/bibliographical_book_extractor.rb in bookshark-1.0.3 vs lib/bookshark/extractors/bibliographical_book_extractor.rb in bookshark-1.0.4

- old
+ new

@@ -171,10 +171,10 @@ b_id: (publisher_node[:href].split("/"))[2] } last_author = @nodeset .xpath("//a[@class='booklink' and @href[contains(.,'/author/') ]][last()]").last - if !last_author.nil? && !last_author.empty? + if !last_author.nil? after_last_author_text = last_author.next_sibling.text.strip else last_book = @nodeset .xpath("//a[@class='booklink' and @href[contains(.,'/book/') ]][last()]").last after_last_author_text = last_book.next_sibling.text.strip