Skip to content

Commit

Permalink
Merge pull request #2 from chdorner/multiple_authors_fix
Browse files Browse the repository at this point in the history
Fixes issue with multiple authors
  • Loading branch information
zetaben committed Oct 28, 2012
2 parents e79ce60 + 52d3bf0 commit bd81bc9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/opds/entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ def serialize!
d=text(raw_doc.at('./xmlns:published',@namespaces))
@published=DateTime.parse(d) unless d.nil?

@authors=raw_doc.xpath('./xmlns:author',@namespaces).collect do |auth|
@authors=raw_doc.xpath('./xmlns:author',@namespaces).collect do |author|
{
:name => text(raw_doc.at('./xmlns:author/xmlns:name',@namespaces)),
:uri => text(raw_doc.at('./xmlns:author/xmlns:uri',@namespaces)),
:email => text(raw_doc.at('./xmlns:author/xmlns:email',@namespaces))
:name => text(author.at('./xmlns:name',@namespaces)),
:uri => text(author.at('./xmlns:uri',@namespaces)),
:email => text(author.at('./xmlns:email',@namespaces))
}
end

Expand Down

0 comments on commit bd81bc9

Please sign in to comment.