my $child_init_ttk = "opensearch.ttk";
-my $includes = [ '/pines/cvs/ILS/Open-ILS/src/templates' ];
+my $includes = [ '/pines/cvs/ILS/Open-ILS/src/extras' ];
my $plugin_base = 'OpenILS::Template::Plugin';
_process_template(
apache => $apache,
template => 'opensearch.ttk',
- pre_process => $init_ttk );
+ );
return Apache::OK;
}
my $err = $template->error();
$err =~ s/\n/\<br\/\>/g;
warn "Error processing template $ttk\n";
- my $string = "<br><b>Unable to process template:<br/><br/> " . $err . "!!!</b>";
- $template->process( $error_ttk , { error => $string } );
+ print "<br><b>Unable to process template:<br/><br/> " . $err . "!!!</b>";
}
} catch Error with {
[%-
USE CGI;
-USE WebSession;
-WebSession.bootstrap();
+USE ws = WebSession;
+ws.bootstrap_client("/pines/conf/bootstrap.conf");
rank_threshold = 5000;
#type,string,location,depth,limit,offset
search_meth = 'open-ils.search.biblio.class';
-session = WebSession.init_app_session('open-ils.search');
+session = ws.init_app_session('open-ils.search');
type = CGI.param('mr_search_type');
string = CGI.param('mr_search_query');