Index: openacs-4/packages/bug-tracker/catalog/bug-tracker.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bug-tracker/catalog/bug-tracker.en_US.ISO-8859-1.xml,v diff -u -N -r1.13 -r1.14 --- openacs-4/packages/bug-tracker/catalog/bug-tracker.en_US.ISO-8859-1.xml 15 Feb 2010 20:09:21 -0000 1.13 +++ openacs-4/packages/bug-tracker/catalog/bug-tracker.en_US.ISO-8859-1.xml 9 Apr 2010 20:42:50 -0000 1.14 @@ -138,9 +138,9 @@ Name in shortcut URL Need_Info New - New Workflow New %Bug_name% Patch + New Workflow No %bugs_name% No categories of this type. No components @@ -220,7 +220,7 @@ Resolver resolver Return - Search... + Search Select one or more of the following %pretty_names.bugs% for patch "%patch_summary%" (you may select more %pretty_names.bugs% later): Error on %bug_pretty_s% ID %one_bug_id%: #%bug_info.bug_number%: %bug_info.summary% Index: openacs-4/packages/bug-tracker/lib/nav-bar.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bug-tracker/lib/nav-bar.adp,v diff -u -N -r1.4 -r1.5 --- openacs-4/packages/bug-tracker/lib/nav-bar.adp 11 May 2004 09:27:16 -0000 1.4 +++ openacs-4/packages/bug-tracker/lib/nav-bar.adp 9 Apr 2010 20:42:50 -0000 1.5 @@ -3,7 +3,16 @@ @links.name@ | 
+ onFocus="javascript:this.value='';">
+ +
+ + + +
+
+ Index: openacs-4/packages/bug-tracker/lib/nav-bar.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bug-tracker/lib/nav-bar.tcl,v diff -u -N -r1.12 -r1.13 --- openacs-4/packages/bug-tracker/lib/nav-bar.tcl 29 Mar 2004 15:07:33 -0000 1.12 +++ openacs-4/packages/bug-tracker/lib/nav-bar.tcl 9 Apr 2010 20:42:50 -0000 1.13 @@ -88,4 +88,10 @@ set form_action_url "[ad_conn package_url]bug" +set search_mounted_p [bug_tracker::search_mounted_p] + +if {$search_mounted_p} { + set form_search_url "[site_node::get_package_url -package_key search]search" +} + ad_return_template Index: openacs-4/packages/bug-tracker/tcl/bug-tracker-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bug-tracker/tcl/bug-tracker-init.tcl,v diff -u -N --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/bug-tracker/tcl/bug-tracker-init.tcl 9 Apr 2010 20:42:50 -0000 1.1 @@ -0,0 +1,32 @@ +# /packages/bug-tracker/tcl/bug-tracker-init.tcl + + +ad_library { + + Generic init procs for bug tracker + + @author Ryan Gallimore (rgallimore@viscousmedia.com) + @creation-date 2010-04-07 + @cvs-id $Id: bug-tracker-init.tcl,v 1.1 2010/04/09 20:42:50 ryang Exp $ +} + +# Is search mounted and associated driver installed? +set search_mounted_p 1 +set search_driver [parameter::get -package_id [apm_package_id_from_key search] \ + -parameter FtsEngineDriver] + +if { [site_node::get_package_url -package_key search] eq "" } { + ns_log Warning Bug Tracker: Search package is not mounted. + set search_mounted_p 0 +} elseif { $search_driver eq ""} { + ns_log Warning Bug Tracker: FtsEngineDriver parameter in package search is empty. + set search_mounted_p 0 +} elseif { [apm_package_id_from_key $search_driver] == 0} { + ns_log Warning Bug Tracker: Search driver $search_driver is not installed. + set search_mounted_p 0 +} + +eval "ad_proc -public bug_tracker::search_mounted_p {} {} { + return $search_mounted_p +}" +