tslittle / tiffanymaster

0 stars 0 forks source link

Get the tracker to work so it tracks the upload #47

Closed tslittle closed 3 years ago

tslittle commented 3 years ago

I'm actually going to set this as an enhancement. Instead I'll put as an issue for the page to update when the thing is done, which is different than tracking the upload.

tslittle commented 3 years ago

It looks like I can crib heavily from Vandelay.pm starting around liine 278, and put it in Order.pm starting around line 1521.

tslittle commented 3 years ago

This is how it worked in vlagent.js

this.handleResponse = function(resp, oncomplete) { if(!resp) return; var res = {}

    console.log('vandelay import returned : ' + js2JSON(resp));

    // update the display counts
    dojo.byId('acq_vl:li-processed').innerHTML = resp.li;
    dojo.byId('acq_vl:vqbr-processed').innerHTML = resp.vqbr;
    dojo.byId('acq_vl:bibs-processed').innerHTML = resp.bibs;
    dojo.byId('acq_vl:lid-processed').innerHTML = resp.lid;
    dojo.byId('acq_vl:debits-processed').innerHTML = resp.debits_accrued;
    dojo.byId('acq_vl:copies-processed').innerHTML = resp.copies; 

These come from the "new" sub in Order.pm

tslittle commented 3 years ago

I'm going to go ahead and close this. This isn't something I really want to work on.