Changeset 4696 for DASISH


Ignore:
Timestamp:
03/14/14 10:51:13 (10 years ago)
Author:
olof.olsson@snd.gu.se
Message:

cleantup, remove the last of the old logging

Location:
DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/annotation-service.js

    r4667 r4696  
    7575           
    7676            aid = rtn[0].dasish_aid;
    77             Firebug.Console.log('Resolved the AID for oid: '+oid+' for aid: '+aid);
     77            annotationProxy.log('Resolved the AID for oid: '+oid+' for aid: '+aid);
    7878            if (aid) { // ajax request only for annotations posted to and available in backend database
    7979                return $.ajax({
     
    8181                    type: 'DELETE',
    8282                    error: function(jqXHR, status, thrownError) {
    83                         // Handle any errors
    84 
     83                        // Log any errors to debug console
    8584                        annotationProxy.log("+ + + + + + + + + + + + + + + + + + + + + + + +");
    8685                        annotationProxy.log("Status Code (DELETE request): " + jqXHR.status);
    8786                        annotationProxy.log("Error DELETE request: " + thrownError);
    8887                    },
    89                     success: function(result) {
    90                        
    91                             annotationProxy.log("DELETE request was successful.");
    92                             annotationProxy.log(result);
     88                    success: function(result) {           
     89                        annotationProxy.log("DELETE request was successful.");
     90                        annotationProxy.log(result);
    9391                    }
    9492                });
     
    105103                    // Handle any errors
    106104                    if (typeof Firebug !== 'undefined' && Firebug.Console) {
    107                         Firebug.Console.log("+ + + + + + + + + + + + + + + + + + + + + + + +");
    108                         Firebug.Console.log("Status Code: " + jqXHR.status);
    109                         Firebug.Console.log("Error : " + thrownError);
     105                        annotationProxy.log("+ + + + + + + + + + + + + + + + + + + + + + + +");
     106                        annotationProxy.log("Status Code: " + jqXHR.status);
     107                        annotationProxy.log("Error : " + thrownError);
    110108                    }
    111109                },
     
    114112                    var aid = response[response.length - 1];
    115113
    116                     if (typeof Firebug !== 'undefined' && Firebug.Console) {
    117                         Firebug.Console.log("+ + + + + + + + + + + + + + + + + + + + + + + +");
    118                         Firebug.Console.log("Status Code POST request: " + jqXHR.status);
    119                         Firebug.Console.log("Response Body: " + jqXHR.responseText);
    120                         Firebug.Console.log("+ + + + + + + + + + + + + + + + + + + + + + + +");
    121                     }
    122                     Firebug.Console.log("OID: " + oid);
    123                     Firebug.Console.log("AID: " + aid);
     114                    annotationProxy.log("+ + + + + + + + + + + + + + + + + + + + + + + +");
     115                    annotationProxy.log("Status Code POST request: " + jqXHR.status);
     116                    annotationProxy.log("Response Body: " + jqXHR.responseText);
     117                    annotationProxy.log("+ + + + + + + + + + + + + + + + + + + + + + + +");
     118
     119                    annotationProxy.log("OID: " + oid);
     120                    annotationProxy.log("AID: " + aid);
    124121                    // Firebug.Console.log(bitsObjectMng.Database.getObject({oid: oid}));
    125122
    126123                    var aSql = 'update om_object set dasish_aid = "' + aid + '" where oid="' + oid + '"';
    127                     Firebug.Console.log(aSql);
     124                    annotationProxy.log(aSql);
    128125                    // insert request to local sqlite database where aid gets inserted
    129126                    var rtn = bitsObjectMng.Database.cmd("", aSql); // aMode = "" defaults to predefined value; aSql contains sql statement
     
    132129                    // Database insert request is true if successful
    133130                    // Firebug.Console.log(rtn);
    134 
    135131                }
    136132            });
  • DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/annotations.wired.marker.js

    r4555 r4696  
    7070        updateAnnotation: function(annotation) {
    7171            this.log('updateAnnotation : ' + JSON.stringify(annotation));
     72            this.log('UPDATED ANNOTATION AS XML: ');
     73            var xml = om_object2annotation(annotation);
     74            this.log(xml);
    7275        },
    7376        log: function(message) {
Note: See TracChangeset for help on using the changeset viewer.