Index: openacs-4/packages/scorm-importer/scorm-importer.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/scorm-importer/scorm-importer.info,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/scorm-importer/scorm-importer.info 13 May 2010 01:03:47 -0000 1.1
+++ openacs-4/packages/scorm-importer/scorm-importer.info 21 May 2010 20:47:55 -0000 1.2
@@ -13,6 +13,8 @@
Hub System Administrator
0
+ Embeddable package that manages the import of SCORM archives
+
Index: openacs-4/packages/scorm-importer/tcl/import-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/scorm-importer/tcl/import-procs.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/scorm-importer/tcl/import-procs.tcl 18 May 2010 02:00:23 -0000 1.4
+++ openacs-4/packages/scorm-importer/tcl/import-procs.tcl 21 May 2010 20:47:55 -0000 1.5
@@ -9,9 +9,10 @@
-package_id:required
-manifest:required
-folder_id:required
- {-scorm_course_id ""}
+ {-course_id ""}
{-online f}
{-default_lesson_mode browse}
+ {-course_type scorm_course}
} {
Create a Scorm course skeleton based on a parsed manifest.
} {
@@ -37,16 +38,17 @@
{type scorm2004}
{online $online}
{title "$title"}
- {scorm_course_id $scorm_course_id}
+ {object_type $course_type}
+ {${course_type}_id $course_id}
{default_lesson_mode $default_lesson_mode}
}]
- set scorm_course_id [package_instantiate_object -var_list $var_list scorm_course]
+ set course_id [package_instantiate_object -var_list $var_list $course_type]
# create row for package even though we don't have any info yet
db_dml insert_package {}
scorm_importer::update_rte_data \
- -scorm_course_id $scorm_course_id \
+ -scorm_course_id $course_id \
-manifest $manifest \
-transform_doc $transform_doc
@@ -55,7 +57,7 @@
ad_proc scorm_importer::edit_course {
-manifest:required
- -scorm_course_id:required
+ -course_id:required
} {
Edit the course information.
} {
Index: openacs-4/packages/scorm-importer/tcl/import-procs.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/scorm-importer/tcl/Attic/import-procs.xql,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/scorm-importer/tcl/import-procs.xql 18 May 2010 02:00:23 -0000 1.4
+++ openacs-4/packages/scorm-importer/tcl/import-procs.xql 21 May 2010 20:47:55 -0000 1.5
@@ -7,7 +7,7 @@
insert into cp_package
(cp_package_id)
values
- (:scorm_course_id)
+ (:course_id)