Skip to content

Commit

Permalink
Merge pull request #2023 from ariana-paris/4240-import-to-collection
Browse files Browse the repository at this point in the history
4240 - Enable Open Doors to import to a collection
  • Loading branch information
zz9pzza committed Mar 15, 2015
2 parents 117915d + c9b0306 commit d52a7e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/story_parser.rb
Expand Up @@ -315,6 +315,9 @@ def set_work_attributes(work, location="", options = {})

work.summary = options[:summary] if !options[:summary].blank?

# set collection name if present
work.collection_names = get_collection_names(options[:collection_names]) if !options[:collection_names].blank?

# set default language (English)
work.language_id = options[:language_id] || Language.default.id

Expand Down

0 comments on commit d52a7e0

Please sign in to comment.