Changeset 4547
- Timestamp:
- 02/24/14 10:13:50 (10 years ago)
- Location:
- DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/annotation-service.js
r4545 r4547 80 80 81 81 aid = rtn[0].dasish_aid; 82 Firebug.Console.log('Resolved the AID for DELETEfor aid: '+aid);82 Firebug.Console.log('Resolved the AID for oid: '+oid+' for aid: '+aid); 83 83 if (aid) { // ajax request only for annotations posted to and available in backend database 84 84 return $.ajax({ -
DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/annotations.wired.marker.js
r4545 r4547 14 14 annotationProxy.log('got Annotation '); 15 15 annotationProxy.log(result); 16 bitsObjectMng.Database.addObject(result, 'dasish.remote', undefined); 16 17 }); 17 18 }); -
DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/conversion.utils.js
r4545 r4547 29 29 30 30 var title = $(annotation).find('headline').text().trim(); 31 var body = $(annotation).find('body'). text().trim();31 var body = $(annotation).find('body').find('xhtml\\:span').text().trim(); 32 32 var style = $(annotation).find('body').find('xhtml\\:span').attr('style'); 33 33 var type = $(annotation).find('mimeType').text(); 34 34 var link = $(annotation).find('link').text(); 35 35 var time = $(annotation).find('lastModified').text(); 36 37 var URI = $(annotation).find('annotation').attr('URI'); 38 om_object.dasish_aid = URI.split('/annotations/')[1]; 36 39 37 40 var urlParts = link.split("#xpointer"); … … 58 61 59 62 om_object.doc_title = title; 63 om_object.oid_title = title; 60 64 61 65 om_object.oid = hashCode($(annotation).attr('URI')); … … 67 71 68 72 if (type === 'application/xml+xhtml') { //TODO: better handeling of the body 69 om_object.oid_txt = body;73 om_object.oid_txt = $(annotation).find('body').find('xhtml\\:span').attr('title'); 70 74 om_object.oid_type = 'text'; 71 75 } … … 122 126 <xmlBody>\n\ 123 127 <mimeType>application/xml+xhtml</mimeType>\n\ 124 <xhtml:span style="' + style + '">' + note + '</xhtml:span>\n\128 <xhtml:span title="'+om_object.oid_txt+'" style="' + style + '">' + note + '</xhtml:span>\n\ 125 129 </xmlBody>\n\ 126 130 </body>\n\
Note: See TracChangeset
for help on using the changeset viewer.