Changeset 5483 for DASISH


Ignore:
Timestamp:
07/22/14 16:48:33 (10 years ago)
Author:
stephanie.roth@snd.gu.se
Message:

Implemented retrieval of relative path part.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DASISH/t5.6/client/branches/webannotator-basic/chrome/markingcollection/content/markingcollection/annotator-service/conversion.utils.js

    r5428 r5483  
    116116    var xpointer = "#xpointer(start-point(string-range(" + path.start + "/text()[1],''," + path.startOffset + "))";
    117117    xpointer    += "/range-to(string-range(" + path.end + "/text()[1],''," + path.endOffset + ")))";
    118 
     118   
     119    /* retrieve relative path part (without protocol and domain name parts of backend server address) */
     120    var backend_url = annotationFramework.getBackend();
     121    var backend_relpath = backend_url.substring(backend_url.indexOf(":")+3);
     122    pos = backend_relpath.indexOf("/");
     123    backend_relpath = backend_relpath.substring(pos)
     124   
    119125    var annotation = '<?xml version="1.0" encoding="UTF-8"?>\n\
    120126                      <annotation xmlns="http://www.dasish.eu/ns/addit"\n\
Note: See TracChangeset for help on using the changeset viewer.