Changeset 3405


Ignore:
Timestamp:
08/16/13 14:56:52 (11 years ago)
Author:
olof
Message:

added logging to local console

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/annotations.wired.marker.js

    r2836 r3405  
    33        getAnnotations: function(url) {
    44           this.log('getAnnotations for: '+url);
    5            annotationFramework.getAnnotations({url:url}, function(annotations){
    6                this.log('annotations from backend: '+JSON.stringify(annotations));
     5           annotationFramework.getAnnotations({link:url,access:read}, function(result){
     6               this.log('annotations from backend: '+annotations);
     7               
     8               var annotations = $(result);
     9               
     10               var aids = [];
     11               
     12               annotations.find('annotations annotation').each(function() {
     13                        aids.push($(this).attr('ref').substr($(this).attr('ref').lastIndexOf('/') + 1));
     14               });
     15               //bitsObjectMng.Database.addObject
     16               
     17                //loop trough annnotations and get each annotation
     18               
    719           });
    820        },
    921        putAnnotation: function(om_object) {
    1022            var annotation = om_object2annotation(om_object);
     23            annotationFramework.putAnnotation(annotation);
    1124            this.log('putAnnotation : '+annotation);
    1225        },
     
    1528        },
    1629        log: function(message){
     30            //log to console
     31            Firebug.Console.log(message);
    1732            //log this to the local proxy
    1833            $.ajax({
  • DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/conversion.utils.js

    r3403 r3405  
    4949    om_object.end_dom = parts[0]+'('+parts[2]+')(3)';
    5050   
    51     //start xpath in xpointer: (?<=start-point\(string-range\()(.*\n?)(?=\,'')
    52     //end xpath in xpointer: (?<=range-to\(string-range\()(.*\n?)(?=\,'')
    53    
    5451    //build hyperanchor
    5552    var hyperanchor = '#hyperanchor1.3:'+om_object.bgn_dom+'&'+om_object.end_dom+'&'+style;
    56    
    57    
    5853   
    5954    om_object.doc_title = title;
Note: See TracChangeset for help on using the changeset viewer.