Skip to content

Commit

Permalink
better test for non-empty value
Browse files Browse the repository at this point in the history
  • Loading branch information
tomek1024 committed Apr 26, 2016
1 parent 4efa662 commit 0ee3f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elibri_onix_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ def export_contributors!(product)
comment_dictionary 'Rola autora', :ContributorRole, :indent => 10, :kind => :onix_contributors
tag(:ContributorRole, contributor.role_onix_code) #lista 17
comment 'Tylko w przypadku tłumaczy:', :kind => :onix_contributors
tag(:FromLanguage, contributor.language_onix_code) if contributor.language_onix_code
tag(:FromLanguage, contributor.language_onix_code) if contributor.language_onix_code.present?
tag(:PersonName, contributor.generated_full_name) #zawsze jest TODO - dodać takie pole do bazy danych

tag(:TitlesBeforeNames, contributor.title) if contributor.title.present? #tytuł
Expand Down

0 comments on commit 0ee3f8d

Please sign in to comment.