Remove rules of invalid_apa_title.
This commit is contained in:
parent
b75b2e9af2
commit
83e3821eb7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue