Index: openacs-4/packages/lorsm-includelet/lorsm-includelet.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm-includelet/lorsm-includelet.info,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lorsm-includelet/lorsm-includelet.info 3 Mar 2009 23:03:10 -0000 1.1 @@ -0,0 +1,27 @@ + + + + + LORS Management Includelet + LORS Management Includelets + f + t + + + Don Baccus + 2008-10-18 + OpenACS + + + + + + + + + + + + + + Index: openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.el_GR.utf-8.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.el_GR.utf-8.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.el_GR.utf-8.xml 3 Mar 2009 23:03:10 -0000 1.1 @@ -0,0 +1,9 @@ + + + + Προσθήκη μαθήματος + Εκπαιδευτικό Υλικό + Διαχείριση LORS + Αναζήτηση αποθήκης αντικειμένων εκπαίδευσης + Διαχείριση LORS + Index: openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.en_US.ISO-8859-1.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.en_US.ISO-8859-1.xml 3 Mar 2009 23:03:10 -0000 1.1 @@ -0,0 +1,12 @@ + + + + LORSM administration includelet + Add a Course + Learning Materials + LORS Management Administration + Search Learning Object Repository + Manage LORS + LORSM includelet + + Index: openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.es_ES.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.es_ES.ISO-8859-1.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.es_ES.ISO-8859-1.xml 3 Mar 2009 23:03:10 -0000 1.1 @@ -0,0 +1,9 @@ + + + + Agregar un Curso + Materiales de Aprendizaje + Administraci�n de LORS + Busqueda en el Repositorio de Objetos de Aprendizaje + Administrar LORS + Index: openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.es_GT.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.es_GT.ISO-8859-1.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.es_GT.ISO-8859-1.xml 3 Mar 2009 23:03:10 -0000 1.1 @@ -0,0 +1,9 @@ + + + + Agregar un Curso + Materiales de Aprendizaje + Administraci�n de LORS + Busqueda en el Repositorio de Objetos de Aprendizaje + Administrar LORS + Index: openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.pt_BR.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.pt_BR.ISO-8859-1.xml,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lorsm-includelet/catalog/lorsm-includelet.pt_BR.ISO-8859-1.xml 3 Mar 2009 23:03:10 -0000 1.1 @@ -0,0 +1,9 @@ + + + + Adicionar um Curso + Materiais de Aprendizagem + Administra��o de Gerenciamento de LORS + Procurar no Reposit�rio de Objetos de Aprendizagem + Gerenciar LORS + Index: openacs-4/packages/lorsm-includelet/lib/lorsm-admin-includelet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm-includelet/lib/lorsm-admin-includelet.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lorsm-includelet/lib/lorsm-admin-includelet.adp 3 Mar 2009 23:03:10 -0000 1.1 @@ -0,0 +1,14 @@ + + + + + + Index: openacs-4/packages/lorsm-includelet/lib/lorsm-admin-includelet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm-includelet/lib/lorsm-admin-includelet.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lorsm-includelet/lib/lorsm-admin-includelet.tcl 3 Mar 2009 23:03:10 -0000 1.1 @@ -0,0 +1,26 @@ +ad_page_contract { + + The display logic for the LORS Management admin includelet + + @author Don Baccus (dhogaza@pacifier.com) + @creation-date 2008-02-16 + @cvs-id $Id: lorsm-admin-includelet.tcl,v 1.1 2009/03/03 23:03:10 donb Exp $ + +} -properties { + +} + +set lors_central_package_id [apm_package_id_from_key "lors-central"] +set lors_central_url [apm_package_url_from_id $lors_central_package_id] + +if { ![string equal $lors_central_package_id 0] } { + set use_lc_p [parameter::get \ + -parameter "UploadUsingLorsCentralP" \ + -package_id $lors_central_package_id] +} else { + set use_lc_p 0 +} + +set url [lindex [site_node::get_url_from_object_id -object_id $package_id] 0] + +ad_return_template Index: openacs-4/packages/lorsm-includelet/lib/lorsm-includelet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm-includelet/lib/lorsm-includelet.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lorsm-includelet/lib/lorsm-includelet.adp 3 Mar 2009 23:03:10 -0000 1.1 @@ -0,0 +1 @@ + Index: openacs-4/packages/lorsm-includelet/lib/lorsm-includelet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm-includelet/lib/lorsm-includelet.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lorsm-includelet/lib/lorsm-includelet.tcl 3 Mar 2009 23:03:10 -0000 1.1 @@ -0,0 +1,12 @@ +ad_page_contract { + + The logic for the lorsm includelet. + + @author Don Baccus (dhogaza@pacifier.com) + @creation-date 2008-02-16 + @cvs-id $Id: lorsm-includelet.tcl,v 1.1 2009/03/03 23:03:10 donb Exp $ + +} -query { +} + +ad_return_template Index: openacs-4/packages/lorsm-includelet/tcl/apm-callback-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lorsm-includelet/tcl/apm-callback-procs.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/lorsm-includelet/tcl/apm-callback-procs.tcl 3 Mar 2009 23:03:10 -0000 1.1 @@ -0,0 +1,44 @@ +ad_library { + + Lorsm Includelet Install library + + Procedures that deal with installing, instantiating, mounting. + + @creation-date 2009-02-15 + @author Don Baccus + @cvs-id +} + +namespace eval lorsm_includelet::install {} + +ad_proc -private lorsm_includelet::install::package_install {} { + Package installation callback proc +} { + + db_transaction { + + # admin includelet + layout::includelet::new \ + -name lorsm_admin_includelet \ + -description #lorsm-includelet.admin_pretty_name# \ + -title #lorsm-includelet.admin_pretty_name# \ + -application lorsm \ + -template /packages/lorsm-includelet/lib/lorsm-admin-includelet \ + -required_privilege admin + + # User includelet + layout::includelet::new \ + -name lorsm_includelet \ + -description #lorsm-includelet.pretty_name# \ + -title #lorsm-includelet.pretty_name# \ + -application lorsm \ + -template /packages/lorsm-includelet/lib/lorsm-includelet + } +} + +ad_proc -private lorsm_includelet::install::package_uninstall {} { + Package uninstallation callback proc +} { + layout::includelet::delete -name lorsm_admin_includelet + layout::includelet::delete -name lorsm_includelet +}