Changeset 3405
- Timestamp:
- 08/16/13 14:56:52 (11 years ago)
- 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 3 3 getAnnotations: function(url) { 4 4 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 7 19 }); 8 20 }, 9 21 putAnnotation: function(om_object) { 10 22 var annotation = om_object2annotation(om_object); 23 annotationFramework.putAnnotation(annotation); 11 24 this.log('putAnnotation : '+annotation); 12 25 }, … … 15 28 }, 16 29 log: function(message){ 30 //log to console 31 Firebug.Console.log(message); 17 32 //log this to the local proxy 18 33 $.ajax({ -
DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/conversion.utils.js
r3403 r3405 49 49 om_object.end_dom = parts[0]+'('+parts[2]+')(3)'; 50 50 51 //start xpath in xpointer: (?<=start-point\(string-range\()(.*\n?)(?=\,'')52 //end xpath in xpointer: (?<=range-to\(string-range\()(.*\n?)(?=\,'')53 54 51 //build hyperanchor 55 52 var hyperanchor = '#hyperanchor1.3:'+om_object.bgn_dom+'&'+om_object.end_dom+'&'+style; 56 57 58 53 59 54 om_object.doc_title = title;
Note: See TracChangeset
for help on using the changeset viewer.