added IDL dance
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 6 Jul 2006 21:56:22 +0000 (21:56 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 6 Jul 2006 21:56:22 +0000 (21:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@4921 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/offline/offline.pl

index 4a4efda..286d779 100755 (executable)
@@ -12,6 +12,7 @@ use OpenILS::Utils::Fieldmapper;
 use Digest::MD5 qw/md5_hex/;
 use OpenSRF::Utils qw/:daemon/;
 use OpenILS::Utils::OfflineStore;
+use OpenSRF::Utils::SettingsClient;
 
 use DBI;
 $DBI::trace = 1;
@@ -56,6 +57,8 @@ sub ol_init {
        #_ol_debug_params();
        $DB->DBFile($config{db});
        OpenSRF::System->bootstrap_client(config_file => $bootstrap ); 
+       Fieldmapper->import(IDL => 
+               OpenSRF::Utils::SettingsClient->new->config_value("IDL"));
 }
 
 
@@ -221,6 +224,9 @@ sub ol_handle_result {
        my $obj = shift;
        my $json = JSON->perl2JSON($obj);
 
+       # Clear this so it's not remembered
+       $evt = undef;
+
        if( $cgi->param('html')) {
                my $html = "<html><body onload='xulG.handle_event($json)'></body></html>";
                print "content-type: text/html\n\n";