View | Details | Raw Unified | Return to bug 5449
Collapse All | Expand All

(-)a/offline_circ/process_koc.pl (-1 / +1 lines)
Lines 92-98 if ($completedJobID) { Link Here
92
92
93
            my $reply = CGI->new("");
93
            my $reply = CGI->new("");
94
            print $reply->header(-type => 'text/html');
94
            print $reply->header(-type => 'text/html');
95
            print "{ jobID: '$jobID' }";
95
            print '{"jobID":"' . $jobID . '"}';
96
            exit 0;
96
            exit 0;
97
        } elsif (defined $pid) {
97
        } elsif (defined $pid) {
98
            # child
98
            # child
(-)a/test/progressbarsubmit.pl (-1 / +1 lines)
Lines 72-78 if ($completedJobID) { Link Here
72
72
73
            my $reply = CGI->new("");
73
            my $reply = CGI->new("");
74
            print $reply->header(-type => 'text/html');
74
            print $reply->header(-type => 'text/html');
75
            print "{ jobID: '$jobID' }";
75
            print '{"jobID":"' . $jobID . '"}';
76
            exit 0;
76
            exit 0;
77
        } elsif (defined $pid) {
77
        } elsif (defined $pid) {
78
        # if we get here, we're a child that has detached
78
        # if we get here, we're a child that has detached
(-)a/tools/background-job-progress.pl (-2 / +2 lines)
Lines 36-42 my ($auth_status, $sessionID) = check_cookie_auth($cookies{'CGISESSID'}->value, Link Here
36
if ($auth_status ne "ok") {
36
if ($auth_status ne "ok") {
37
    my $reply = CGI->new("");
37
    my $reply = CGI->new("");
38
    print $reply->header(-type => 'text/html');
38
    print $reply->header(-type => 'text/html');
39
    print "{ progress: 0 }";
39
    print '{"progress":"0"}';
40
    exit 0;
40
    exit 0;
41
}
41
}
42
42
Lines 54-57 if (defined $job) { Link Here
54
my $reply = CGI->new("");
54
my $reply = CGI->new("");
55
print $reply->header(-type => 'text/html');
55
print $reply->header(-type => 'text/html');
56
# response will be sent back as JSON
56
# response will be sent back as JSON
57
print "{ progress: $reported_progress, job_size: $job_size, job_status: '$job_status' }";
57
print '{"progress":"' . $reported_progress . '","job_size":"' . $job_size . '","job_status":"' . $job_status . '"}';
(-)a/tools/batchMod.pl (-1 / +1 lines)
Lines 557-563 sub put_in_background { Link Here
557
557
558
        my $reply = CGI->new("");
558
        my $reply = CGI->new("");
559
        print $reply->header(-type => 'text/html');
559
        print $reply->header(-type => 'text/html');
560
        print "{ jobID: '$jobID' }";
560
        print '{"jobID":"' . $jobID . '"}';
561
        exit 0;
561
        exit 0;
562
    } elsif (defined $pid) {
562
    } elsif (defined $pid) {
563
        # child
563
        # child
(-)a/tools/manage-marc-import.pl (-1 / +1 lines)
Lines 298-304 sub put_in_background { Link Here
298
298
299
        my $reply = CGI->new("");
299
        my $reply = CGI->new("");
300
        print $reply->header(-type => 'text/html');
300
        print $reply->header(-type => 'text/html');
301
        print "{ jobID: '$jobID' }";
301
        print '{"jobID":"' . $jobID . '"}';
302
        exit 0;
302
        exit 0;
303
    } elsif (defined $pid) {
303
    } elsif (defined $pid) {
304
        # child
304
        # child
(-)a/tools/stage-marc-import.pl (-1 / +1 lines)
Lines 108-114 if ($completedJobID) { Link Here
108
108
109
            my $reply = CGI->new("");
109
            my $reply = CGI->new("");
110
            print $reply->header(-type => 'text/html');
110
            print $reply->header(-type => 'text/html');
111
            print "{ jobID: '$jobID' }";
111
            print '{"jobID":"' . $jobID . '"}';
112
            exit 0;
112
            exit 0;
113
        } elsif (defined $pid) {
113
        } elsif (defined $pid) {
114
            # child
114
            # child
(-)a/tools/upload-file-progress.pl (-2 / +2 lines)
Lines 35-41 my ($auth_status, $sessionID) = check_cookie_auth($cookies{'CGISESSID'}->value, Link Here
35
if ($auth_status ne "ok") {
35
if ($auth_status ne "ok") {
36
    my $reply = CGI->new("");
36
    my $reply = CGI->new("");
37
    print $reply->header(-type => 'text/html');
37
    print $reply->header(-type => 'text/html');
38
    print "{ progress: 0 }";
38
    print '{"progress":"0"}';
39
    exit 0;
39
    exit 0;
40
}
40
}
41
41
Lines 44-47 my $reported_progress = C4::UploadedFile->upload_progress($sessionID); Link Here
44
my $reply = CGI->new("");
44
my $reply = CGI->new("");
45
print $reply->header(-type => 'text/html');
45
print $reply->header(-type => 'text/html');
46
# response will be sent back as JSON
46
# response will be sent back as JSON
47
print "{ progress: $reported_progress }";
47
print '{"progress":"' . $reported_progress . '"}';
(-)a/tools/upload-file.pl (-1 / +1 lines)
Lines 80-84 sub send_reply { Link Here
80
    my $reply = CGI->new("");
80
    my $reply = CGI->new("");
81
    print $reply->header(-type => 'text/html');
81
    print $reply->header(-type => 'text/html');
82
    # response will be sent back as JSON
82
    # response will be sent back as JSON
83
    print "{ status: '$upload_status', fileid: '$fileid' }";
83
    print '{"status":"' . $upload_status . '","fileid":"' . $fileid . '"}';
84
}
84
}

Return to bug 5449