From 0ee3f8de41bcef573b69b9ddac1a18811542cf59 Mon Sep 17 00:00:00 2001 From: Tomasz Meka Date: Tue, 26 Apr 2016 16:27:46 +0200 Subject: [PATCH] better test for non-empty value --- lib/elibri_onix_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elibri_onix_generator.rb b/lib/elibri_onix_generator.rb index f7d6084..1e9c3a0 100644 --- a/lib/elibri_onix_generator.rb +++ b/lib/elibri_onix_generator.rb @@ -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ł