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.1 -r1.1.2.1 --- openacs-4/packages/search/catalog/search.en_US.ISO-8859-1.xml 9 May 2004 15:32:38 -0000 1.1 +++ openacs-4/packages/search/catalog/search.en_US.ISO-8859-1.xml 30 Dec 2004 12:01:48 -0000 1.1.2.1 @@ -1,4 +1,40 @@ - + + + . + Search took Advanced Search + "advanced search" + 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. + Try different keywords. + Try more general keywords. + Try your query on: %stw;noquote% + You must specify some keywords + &nbsp;Display + Next + of about + past 3 months + past 6 months + past year + Previous + Result page: + Results + results + Search + Searched for: %query% + seconds. + selected + Suggestions: + "<b>AND</b>" operator is unnecessary -- we include all search terms by default. + Try fewer keywords. + Untitled 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.2 -r1.2.4.1 --- openacs-4/packages/search/www/advanced-search.adp 20 Sep 2002 21:11:47 -0000 1.2 +++ openacs-4/packages/search/www/advanced-search.adp 30 Dec 2004 12:01:48 -0000 1.2.4.1 @@ -1,25 +1,25 @@ -Advanced Search +#search.Advanced_Search# "advanced search" -

-Date Range +#search.Date_Range# - Display +#search.nbspDisplay#
+ Index: openacs-4/packages/search/www/advanced-search.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/advanced-search.tcl,v diff -u -r1.1 -r1.1.6.1 --- openacs-4/packages/search/www/advanced-search.tcl 15 Sep 2001 21:31:50 -0000 1.1 +++ openacs-4/packages/search/www/advanced-search.tcl 30 Dec 2004 12:01:48 -0000 1.1.6.1 @@ -12,6 +12,7 @@ } set title "Advanced Search" +set context "advanced search" set context_bar [ad_context_bar $title] Index: openacs-4/packages/search/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/index.adp,v diff -u -r1.3 -r1.3.4.1 --- openacs-4/packages/search/www/index.adp 20 Sep 2002 21:11:47 -0000 1.3 +++ openacs-4/packages/search/www/index.adp 30 Dec 2004 12:01:48 -0000 1.3.4.1 @@ -1,16 +1,16 @@ -Search -Search +#search.Search# +#search.Search#
- Advanced Search + #search.Advanced_Search#

- - + +
-
\ No newline at end of file + Index: openacs-4/packages/search/www/search.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/search.adp,v diff -u -r1.2 -r1.2.2.1 --- openacs-4/packages/search/www/search.adp 26 Feb 2004 15:29:22 -0000 1.2 +++ openacs-4/packages/search/www/search.adp 30 Dec 2004 12:01:48 -0000 1.2.2.1 @@ -3,39 +3,39 @@ @context;noquote@
- Advanced Search + #search.Advanced_Search#
- - + +
- Tip: In most browsers you can just hit the return key instead of clicking on the search button.

+ #search.lt_Tip_In_most_browsers_#

- The "AND" operator is unnecessary -- we include all search terms by default. - [details]
+ #search.The# + [#search.details#]
- "@stopwords@" is a very common word and was not included in your search. - [details]
+ #search.lt_bstopwordsb_is_a_very# + [#search.details#]
- The following words are very common and were not included in your search: @stopwords@. - [details]
+ #search.lt_The_following_words_a# @stopwords@. + [#search.details#]
- Untitled
+ #search.Untitled#
@searchresult.title_summary;noquote@
@@ -50,27 +50,26 @@ Your search - @query@ - did not match any documents. -
No pages were found containing "@query@". -

Suggestions: +
#search.lt_No_pages_were_found_c#@query@". +

#search.Suggestions#
    -
  • Make sure all words are spelled correctly. -
  • Try different keywords. -
  • Try more general keywords. +
  • #search.lt_Make_sure_all_words_a# +
  • #search.lt_Try_different_keyword# +
  • #search.lt_Try_more_general_keyw# -
  • Try fewer keywords. +
  • #search.Try_fewer_keywords#
- Searched for: @query@ + #search.Searched_for_query# - Results @low@-@high@ of about @count@. - Search took @elapsed@ seconds. + #search.Results# @low@-@high@ #search.of_about# @count@#search.________Search_took# @elapsed@ #search.seconds#
@@ -80,15 +79,15 @@
- Result page: + #search.Result_page# - Previous + #search.Previous#  @choice_bar;noquote@  - Next + #search.Next#
@@ -110,7 +109,7 @@
- Try your query on: @stw;noquote@
+ #search.lt_Try_your_query_on_stw#
- \ No newline at end of file + Index: openacs-4/packages/search/www/search.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/search/www/search.tcl,v diff -u -r1.10.2.1 -r1.10.2.2 --- openacs-4/packages/search/www/search.tcl 30 Dec 2004 11:14:25 -0000 1.10.2.1 +++ openacs-4/packages/search/www/search.tcl 30 Dec 2004 12:01:48 -0000 1.10.2.2 @@ -10,7 +10,7 @@ {dfs:trim ""} {dts:trim ""} } -errors { - q:notnull {You must specify some keywords.} + q:notnull {[_ search.lt_You_must_specify_some].} } @@ -30,7 +30,7 @@ if { [array get info] == "" } { ReturnHeaders - ns_write "FtsEngineDriver not available!" + ns_write "[_ search.lt_FtsEngineDriver_not_a]" return } if { $num <= 0} { @@ -95,6 +95,13 @@ set title_summary [acs_sc_call FtsEngineDriver summary [list $q $datasource(title)] $driver] set txt_summary [acs_sc_call FtsEngineDriver summary [list $q $txt] $driver] set url_one [acs_sc_call FtsContentProvider url [list $object_id] $object_type] + + # Replace the "index" with ETP as this is not needed for accessing the page + if {[string equal $object_type "etp_page_revision"]} { + set url_one [string trimright $url_one "index"] + } + + # Make sure that only items are displayed the user has access to. if {[permission::permission_p -object_id $object_id -privilege read]} { template::multirow append searchresult $title_summary $txt_summary $url_one }