Skip to content

Commit

Permalink
make sure get_isbn returns nil instead of empty string, check again a…
Browse files Browse the repository at this point in the history
…fter removing illegal chars
  • Loading branch information
jrochkind committed Jun 23, 2009
1 parent 76469c4 commit 5632638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/metadata_helper.rb
Expand Up @@ -237,8 +237,8 @@ def normalize_lccn(lccn)
def get_isbn(rft)
isbn = get_identifier(:urn, "isbn", rft)
isbn = isbn.gsub(/[^\dX-]/, '') if isbn

isbn
return nil if isbn.blank?
return isbn
end

def get_oclcnum(rft)
Expand Down

0 comments on commit 5632638

Please sign in to comment.