Mercurial > hg > AnnotationManagerN4J
comparison src/main/webapp/annotationBrowser/js/annotation-core.js @ 67:875a97f8b8da
more quick fixes for neo4j 2.0.
author | casties |
---|---|
date | Fri, 21 Feb 2014 22:19:23 +0100 |
parents | 30c2e7d4eaf9 |
children |
comparison
equal
deleted
inserted
replaced
66:5b568de5ee0d | 67:875a97f8b8da |
---|---|
15 token=data; | 15 token=data; |
16 }); | 16 }); |
17 } | 17 } |
18 | 18 |
19 function createLinkFromURI(uri){ | 19 function createLinkFromURI(uri){ |
20 if (uri == null) return ""; | |
20 var docUri = uri.replace(docNamespace,viewerAddress); | 21 var docUri = uri.replace(docNamespace,viewerAddress); |
21 docUri = docUri.replace("?pn","&pn"); | 22 docUri = docUri.replace("?pn","&pn"); |
22 return docUri; | 23 return docUri; |
23 } | 24 } |
24 | 25 |
25 function getDCdata(path,obj){ | 26 function getDCdata(path,obj){ |
26 | 27 if (path == null) return; |
27 var splitted = path.split("?"); | 28 var splitted = path.split("?"); |
28 var docUri=splitted[0]; | 29 var docUri=splitted[0]; |
29 | 30 |
30 docUri = docUri.replace(docNamespace,textPath); | 31 docUri = docUri.replace(docNamespace,textPath); |
31 var md = dcDataPath+docUri+"/index.meta"; | 32 var md = dcDataPath+docUri+"/index.meta"; |