Index: openacs-4/packages/search/search.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/search.info,v diff -u -r1.20 -r1.21 --- openacs-4/packages/search/search.info 13 Jan 2005 13:58:41 -0000 1.20 +++ openacs-4/packages/search/search.info 2 Feb 2005 21:18:02 -0000 1.21 @@ -26,7 +26,7 @@ - + Index: openacs-4/packages/search/catalog/search.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/catalog/search.en_US.ISO-8859-1.xml,v diff -u -r1.2 -r1.3 --- openacs-4/packages/search/catalog/search.en_US.ISO-8859-1.xml 1 Feb 2005 21:06:49 -0000 1.2 +++ openacs-4/packages/search/catalog/search.en_US.ISO-8859-1.xml 2 Feb 2005 21:18:03 -0000 1.3 @@ -1,40 +1,39 @@ - . - Search took Advanced Search "advanced search" + The "<b>AND</b>" operator is unnecessary -- we include all search terms by default. anytime Date Range details Feeling Lucky "<b>%stopwords%</b>" is a very common word and was not included in your search. FtsEngineDriver not available! Make sure all words are spelled correctly. - No pages were found containing " - The following words are very common and were not included in your search: - Tip: In most browsers you can just hit the return key instead of clicking on the search button. + No pages were found containing "<b>%query%</b>". + The following words are very common and were not included in your search: <strong>%stopwords;noquote%</strong>. Try different keywords. Try more general keywords. Try your query on: %stw;noquote% You must specify some keywords - &nbsp;Display + Display Next + Search is not currently configured. Please contact the webmaster to enable it. of about past 3 months past 6 months past year Previous Result page: - Results + Results <b>%low% - %high%</b> of about <b>%count%</b>. Search took %elapsed% seconds. results Search - Searched for: %query% + Searched for: <b>%query%</b> seconds. selected Suggestions: - "<b>AND</b>" operator is unnecessary -- we include all search terms by default. + Tip: In most browsers you can just hit the return key instead of clicking on the search button. Try fewer keywords. Untitled Index: openacs-4/packages/search/tcl/search-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/tcl/search-procs.tcl,v diff -u -r1.15 -r1.16 --- openacs-4/packages/search/tcl/search-procs.tcl 27 Jul 2004 10:49:10 -0000 1.15 +++ openacs-4/packages/search/tcl/search-procs.tcl 2 Feb 2005 21:18:03 -0000 1.16 @@ -65,6 +65,7 @@ if {[empty_string_p $driver] || ! [acs_sc_binding_exists_p FtsEngineDriver $driver]} { # Nothing to do if no driver + ns_log Debug "search::indexer: driver=$driver binding exists? [acs_sc_binding_exists_p FtsEngineDriver $driver]" return } @@ -77,8 +78,8 @@ set object_type [acs_object_type $object_id] if {[acs_sc_binding_exists_p FtsContentProvider $object_type]} { array set datasource [acs_sc_call FtsContentProvider datasource [list $object_id] $object_type] - if {$syndicate} { - search::syndicate -array datasource + if {$syndicate} { + search::syndicate -datasource datasource } search::content_get txt $datasource(content) $datasource(mime) $datasource(storage_type) acs_sc_call FtsEngineDriver index [list $datasource(object_id) $txt $datasource(title) $datasource(keywords)] $driver Index: openacs-4/packages/search/www/advanced-search.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/advanced-search.adp,v diff -u -r1.3 -r1.4 --- openacs-4/packages/search/www/advanced-search.adp 13 Jan 2005 13:58:41 -0000 1.3 +++ openacs-4/packages/search/www/advanced-search.adp 2 Feb 2005 21:18:03 -0000 1.4 @@ -1,25 +1,24 @@ -#search.Advanced_Search# -"advanced search" + #search.Advanced_Search# + "advanced search" -
- - -
-#search.Date_Range# - -#search.nbspDisplay# - -
+
+ + + #search.Date_Range# + + #search.Display# + +
Index: openacs-4/packages/search/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/index.adp,v diff -u -r1.4 -r1.5 --- openacs-4/packages/search/www/index.adp 13 Jan 2005 13:58:41 -0000 1.4 +++ openacs-4/packages/search/www/index.adp 2 Feb 2005 21:18:03 -0000 1.5 @@ -1,16 +1,15 @@ -#search.Search# -#search.Search# + #search.Search# + #search.Search# -
-
- - #search.Advanced_Search# -
- -
- - -
-
-
+ +
+ + + +
+ #search.Advanced_Search# +
+ + #search.no_driver_contact_webmaster# + Index: openacs-4/packages/search/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/index.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/search/www/index.tcl 20 Sep 2002 21:11:47 -0000 1.2 +++ openacs-4/packages/search/www/index.tcl 2 Feb 2005 21:18:03 -0000 1.3 @@ -1,2 +1,14 @@ -# Nothing to see here... -ad_return_template \ No newline at end of file +ad_page_contract { + @author Jeff Davis + @creation-date 2005-02-01 + @cvs-id $Id$ +} {} + +set driver [ad_parameter -package_id [ad_conn package_id] FtsEngineDriver] +array set info [acs_sc_call FtsEngineDriver info [list] $driver] +if { [array get info] == "" } { + # no driver present need a warning. + set driver_p 0 +} else { + set driver_p 1 +} Index: openacs-4/packages/search/www/search.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/search.adp,v diff -u -r1.4 -r1.5 --- openacs-4/packages/search/www/search.adp 13 Jan 2005 13:58:41 -0000 1.4 +++ openacs-4/packages/search/www/search.adp 2 Feb 2005 21:18:03 -0000 1.5 @@ -1,115 +1,94 @@ -@page_title@ -@context;noquote@ -
- - #search.Advanced_Search# -
- - - -
-
- - #search.lt_Tip_In_most_browsers_#

-
+ @page_title@ + @context;noquote@ + + + - - - #search.The# - [#search.details#]
-
-
- - - #search.lt_bstopwordsb_is_a_very# - [#search.details#]
-
-
- - - #search.lt_The_following_words_a# @stopwords@. - [#search.details#]
-
-
+
+ + + +
+

#search.Advanced_Search#

+ +

#search.Tip_In_most_browsers_return#

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

-
+ +

#search.and_not_needed# [#search.details#]

+
+ +

#search.lt_bstopwordsb_is_a_very# [#search.details#]

+
+ +

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

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

#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# @low@-@high@ #search.of_about# @count@#search.________Search_took# @elapsed@ #search.seconds# - -
-
-
+ +
+ + #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.Result_page# + + #search.Previous# + +  @choice_bar;noquote@  + + #search.Next# + +
+
+ +
+
+ + +
+
- - #search.Previous# + +

#search.lt_Try_your_query_on_stw#

-  @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.13 -r1.14 --- openacs-4/packages/search/www/search.tcl 13 Jan 2005 13:58:41 -0000 1.13 +++ openacs-4/packages/search/www/search.tcl 2 Feb 2005 21:18:03 -0000 1.14 @@ -20,7 +20,7 @@ set package_url [ad_conn package_url] set package_url_with_extras $package_url -set context [list] +set context results set context_base_url $package_url set user_id [ad_conn user_id] @@ -142,7 +142,7 @@ if [llength $search_the_web] { set stw "" foreach {url site} $search_the_web { - append stw "$site " + append stw "$site " } }