Skip to content

Commit

Permalink
modified import series
Browse files Browse the repository at this point in the history
  • Loading branch information
Reiko Shinozuka committed Aug 2, 2014
1 parent 3d4aa48 commit 9976df9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/enju_ndl/ndl_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -402,14 +402,16 @@ def create_series_statement(doc, manifestation)
unless series_statement
series_statement = SeriesStatement.new(
:original_title => series_title[:title],
:title_transcription => series_title[:title_transcription]
:title_transcription => series_title[:title_transcription],
:periodical => manifestation.periodical ? true : false
)
series_statement.root_manifestation = series_statement.initialize_root_manifestation
end
end

if series_statement.try(:save)
manifestation.series_statement = series_statement # for enju_trunk
series_statement.root_manifestation.series_statement = series_statement
end
manifestation
end
Expand Down

0 comments on commit 9976df9

Please sign in to comment.