Forum OpenACS Development: Search not work in glossary package

I am developing an application based in glossary package, but search not work in this package.

In log file we would find this messages:

warning: ACS-SC: Function Not Found: AcsSc.FtsContentProvider.datasource.glossary

I find an error in  /packages/glossary/tcl/glossary-sc-procs.tcl file. In line number 20 you see :

        ad_proc notes__url {

instead of:

        ad_proc glossary__url {

but this not resolve the problem.

would somebody to help me, please?

Thanks

Note: I'm Sorry but I don't write English very well, ;)

Collapse
Posted by Dave Bauer on
Go to the /acs-service-contract/ URL under your site. Check to see if the glossary service contracts are listed under Valid Installed Bindings or Valid Uninstalled Bindings. If they are under Uninstalled, click the [install] link.

After that, restart AOLserver. The procs and data are only loaded on server startup.

Collapse
Posted by Juan Lara Fernandez on
The glossary listed under Installing Valid Blinding. When you search any word that is in a glossary, you can see this error at end of the search result page.

HTTP/1.0 200 OK Content-Type: text/html; charset=iso-8859-1 MIME-Version: 1.0

Date: Mon, 20 Jan 2003 17:11:37 GMT Server: AOLserver/3.3.1+ad13
Content-Length:
2621 Connection: close
Request Error
can't read "datasource(content)": no such element in array
    while executing
"search_content_get txt $datasource(content) $datasource(mime)
$datasource(storage_type)"
    ("for" body line 6)
    invoked from within
"for { set __i 0 } { $__i < [expr $high - $low +1] } { incr __i } {
set object_id [lindex $result(ids) $__i]
set object_type [db_exec_plsql get_obje..."
    ("uplevel" body line 89)
    invoked from within
"uplevel {
      ad_page_contract {
    @author Neophytos Demetriou mailto:k2pts@cytanet.com.cy
    @creation-date September 01, 2001
    @cvs-id $Id: sear..."
    (procedure "code::tcl::/web/openacs-dev/packages/search/www/search" 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 3)
    invoked from within
"adp_prepare "
    (procedure "template::adp_parse" line 30)
    invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
    (procedure "adp_parse_ad_conn_file" line 7)
    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([ad_conn url]) [ad_conn path_inf..."

If you search a word that is not in any glossary, the search result page is correct and there is not any error.

Do your search package correctly work with glossary package?
Bye