Skip to content

Commit

Permalink
Update export_controller.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
awhicks authored Dec 12, 2023
1 parent a4243ab commit 7f10038
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions app/controllers/export_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ def index

export_data = @exercises.map do |exercise|
{
"Platform_name": "OpenDSA",
"URL": exercise.embed_url(host_url),
"LTI_Instructions_URL": "https://opendsa-server.cs.vt.edu/guides/lti-instructions",
"Exercise_type": exercise.ex_type,
"License": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)",
"Description": exercise.description,
"Author": "Shaffer",
"Institution": "Virginia Tech",
"Keywords": exercise.chapter_name,
"Exercise_Name": exercise.name,
"Iframe_URL": exercise.embed_url(host_url),
"LTI_URL": "#{host_url}/lti/launch?custom_ex_short_name=#{exercise.short_name}"

"catalog_type": "SLCItemCatalog",
"platform_name": "OpenDSA",
"url": exercise.embed_url(host_url),
"lti_instructions_url": "https://opendsa-server.cs.vt.edu/guides/lti-instructions",
"exercise_type": exercise.ex_type,
"license": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)",
"description": exercise.description,
"author": "Cliff Shaffer",
"institution": "Virginia Tech",
"keywords": exercise.chapter_name,
"exercise_Name": exercise.name,
"iframe_URL": exercise.embed_url(host_url),
"lti_url": "#{host_url}/lti/launch?custom_ex_short_name=#{exercise.short_name}"
}
end

Expand All @@ -29,4 +29,4 @@ def index
end




0 comments on commit 7f10038

Please sign in to comment.