Remove rules of invalid_apa_title.

This commit is contained in:
BoHung Chiu 2021-04-28 11:12:14 +08:00
parent b75b2e9af2
commit 83e3821eb7
1 changed files with 5 additions and 13 deletions

View File

@ -32,13 +32,9 @@ module NtnuSyncPlugin
end
end
if invalid_apa_title.include? apa_title
jp.delete
else
jp.publication_date = "#{publication_year}/#{publication_month}/01"
jp.member_profile_id = user.member_profile_id
puts "journal paper #{jp.id} saved" if jp.save
end
jp.publication_date = "#{publication_year}/#{publication_month}/01"
jp.member_profile_id = user.member_profile_id
puts "journal paper #{jp.id} saved" if jp.save
end
end
@ -92,12 +88,8 @@ module NtnuSyncPlugin
end
end
if invalid_apa_title.include? apa_title
wc.delete
else
wc.member_profile_id = user.member_profile_id
puts "conference paper #{wc.id} saved" if wc.save
end
wc.member_profile_id = user.member_profile_id
puts "conference paper #{wc.id} saved" if wc.save
end
end