Skip to content

Commit

Permalink
Merge pull request #4 from warashina/master
Browse files Browse the repository at this point in the history
creatorがない場合publisherでもいいようにする
  • Loading branch information
hitode909 committed Mar 13, 2013
2 parents 476fe2e + 50baa3c commit fbf7114
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/kindai/book.rb
Expand Up @@ -50,7 +50,13 @@ def title
def author
metadata_like 'creator:NDLNH'
rescue
alt_author
end

def alt_author
metadata_like 'creator'
rescue
metadata_like 'publisher'
end

def total_spread
Expand Down

0 comments on commit fbf7114

Please sign in to comment.