Index: openacs-4/packages/search/www/search.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/search.adp,v diff -u -r1.9 -r1.10 --- openacs-4/packages/search/www/search.adp 4 Jun 2006 00:45:56 -0000 1.9 +++ openacs-4/packages/search/www/search.adp 21 Oct 2006 07:28:20 -0000 1.10 @@ -1,11 +1,12 @@ - + #search.lt_Tip_In_most_browsers_#

-
- + +

#search.lt_You_must_specify_some#

-
+ + #search.The# @@ -25,22 +26,23 @@ - + #search.Untitled#
@searchresult.title_summary;noquote@
+ @searchresult.txt_summary;noquote@
@searchresult.url_one@

-
+
- + Your search - @query@ - did not match any content.
#search.lt_No_pages_were_found_c#@query@".

#search.Suggestions# @@ -52,8 +54,8 @@
  • #search.Try_fewer_keywords# - - + +
    @@ -66,7 +68,7 @@

    -
    +
    @@ -85,7 +87,17 @@
    - + + + + +
    +
    + + +
    +
    +
    @@ -104,61 +116,11 @@

    #search.lt_The_following_words_a# [#search.details#]

    - - -
    - - #search.Untitled# - - - - - -
    @searchresult.txt_summary;noquote@
    -
    -
    @searchresult.url_one@
    -
    -
    - - -

    #search.lt_No_pages_were_found_c#

    -

    #search.Suggestions#

    -
      -
    • #search.lt_Make_sure_all_words_a#
    • -
    • #search.lt_Try_different_keyword#
    • -
    • #search.lt_Try_more_general_keyw#
    • - -
    • #search.Try_fewer_keywords#
    • -
      -
    -
    - + +

    #search.Searched_for_query#

    #search.Results_count#

    -
    - - -
    - #search.Result_page# - - #search.Previous# - -  @choice_bar;noquote@  - - #search.Next# - -
    - -
    -
    - - -
    -
    - -

    #search.lt_Try_your_query_on_stw#

    -
    Index: openacs-4/packages/search/www/search.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/search.tcl,v diff -u -r1.21 -r1.22 --- openacs-4/packages/search/www/search.tcl 20 Oct 2006 21:04:49 -0000 1.21 +++ openacs-4/packages/search/www/search.tcl 21 Oct 2006 07:28:20 -0000 1.22 @@ -24,6 +24,10 @@ set context results set context_base_url $package_url +# Do we want debugging information at the end of the page +set debug_p 0 + +set dotlrn_p [apm_package_installed_p "dotlrn"] set user_id [ad_conn user_id] set driver [ad_parameter -package_id $package_id FtsEngineDriver] if {[callback::impl_exists -impl $driver -callback search::driver_info]} { @@ -33,14 +37,17 @@ array set info [acs_sc_call FtsEngineDriver info [list] $driver] } -#set dotlrn_package_id [dotlrn::get_package_id] -#set is_guest_p [search::is_guest_p] +if {$dotlrn_p} { + set dotlrn_package_id [dotlrn::get_package_id] + set is_guest_p [search::is_guest_p] -# Ugly .LRNism: guests must not search for people. Here's the security -# check that makes sure they cannot fiddle around with the URL -#if {$is_guest_p && [string equal $object_type "phb_person"]} { -# ad_return_error "Security Breakin!" "Security Alert. This incident has been logged." -#} + # Ugly .LRNism: guests must not search for people. Here's the security + # check that makes sure they cannot fiddle around with the URL + if {$is_guest_p && [string equal $object_type "phb_person"]} { + ad_return_error "Security Breakin!" "Security Alert. This incident has been logged." + } +} + if { [array get info] == "" } { ReturnHeaders ns_write "[_ search.lt_FtsEngineDriver_not_a]" @@ -170,7 +177,7 @@ array set datasource [acs_sc_call FtsContentProvider datasource [list $object_id] $object_type] set url_one [acs_sc_call FtsContentProvider url [list $object_id] $object_type] } - search::content_get txt $datasource(content) $datasource(mime) $datasource(storage_type) + search::content_get txt $datasource(content) $datasource(mime) $datasource(storage_type) $object_id if {[callback::impl_exists -impl $driver -callback search::summary]} { set title_summary [lindex [callback -impl $driver search::summary -query $q -text $datasource(title)] 0] set txt_summary [lindex [callback -impl $driver search::summary -query $q -text $txt] 0]