Forum .LRN Q&A: ILS Package for .LRN

Collapse
Posted by Rafael Chacon on
I'm looking for a package to apply ILS (index for learning styles) questionnaire in .LRN. I have been looking for it, but I'm unable to find it. Could you tell me where I can find it?

Thanks

Collapse
2: Re: ILS Package for .LRN (response to 1)
Posted by Emmanuelle Raffenne on
Hi Rafael,

At aDeNu (UNED) we implemented ILS for .LRN. It's a simple application (+ portlet + applet) to implement the questionnaire and compute the result to give feedback to the user. There's a callback on questionnaire completion so the results can be used by any application/service that implements the callback.

You can get the code from our CVS (:pserver:mailto:anonymous@cvs.adenu.ia.uned.es:/cvsroot), packages are: ils, ils-portlet and dotlrn-ils.

Collapse
3: Re: ILS Package for .LRN (response to 1)
Posted by Rafael Chacon on
Hi, thanks. I download and installed the packages properly. But when I try to take the quiz to test it... it arises an error:

referred by "http://localhost:8000/dotlrn/classes/itdevelopment/itdevelopment.packaging/packaging/ils/";
invalid command name "template::form::get_properties"
while executing
"template::form::get_properties ils_form"
invoked from within
"array set formprop [template::form::get_properties ils_form]"
("uplevel" body line 4)
invoked from within
"uplevel #5 {

# get form mode
array set formprop [template::form::get_properties ils_form]
if { [info exists formprop(mode)] } {
s..."
("uplevel" body line 1)
invoked from within
"uplevel 1 $args"
(procedure "ad_page_contract_eval" line 2)
invoked from within
"ad_page_contract_eval uplevel #$level $on_request"
(procedure "ad_form" line 408)
invoked from within
"ad_form -extend -name ils_form -form {} -export {return_url} -on_request {

# get form mode
array set formprop [template::form::get_properties..."
("uplevel" body line 40)
invoked from within
"uplevel {
ad_page_contract {

} {

{return_url "./"}

}

# Check user is logged in
set user_id [auth::require_login]

# Check if a res..."
(procedure "code::tcl::/var/lib/aolserver/mdotlrn/packages/ils/www/respo..." line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {

if { [file exists $__adp_stub.tcl] } {

# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare"
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 6)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
$handler
} ad_script_abort val {
# do nothing
}"
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."

Do you know why is this happening?

thanks!

Collapse
4: Re: ILS Package for .LRN (response to 1)
Posted by Rafael Chacon on
Oh ok. I found what it was. template:form:get_properties is no longer a function in template. I changed it to template::form:get_values and it worked fine.

Maybe is a good idea to made this changes in the mainstream of ILS :)

Greetings

Collapse
5: Re: ILS Package for .LRN (response to 4)
Posted by Emmanuelle Raffenne on
Hi Rafael,

template::form::get_values and template::form::get_properties are not equivalent and do not return the same result. Although changing the call to get_values avoids getting the "missing proc" error, it won't get the data needed by the script.

We (UNED) added the get_properties proc in version 2.5 but we did it locally and forgot to contribute it back to the openacs.org repository, our bad. I've fixed that and the proc is now available at oacs-5-5 branch and on HEAD.

If you are using the last stable version, update your acs-templating/tcl/form-procs.tcl file from openacs.org repository, branch oacs-5-5.