Method: Biblionet::Extractors::BookDataExtractor#publisher
- Defined in:
- lib/bookshark/extractors/book_extractor.rb
#publisher ⇒ Object
293 294 295 296 297 298 299 300 |
# File 'lib/bookshark/extractors/book_extractor.rb', line 293 def publisher publisher_hash = {} @nodeset.xpath("//a[@class='booklink' and @href[contains(.,'/com/') ]]").each do |item| publisher_hash[:name] = item.text publisher_hash[:b_id] = (item[:href].split("/"))[2] end publisher_hash end |