Changeset 23806
- Timestamp:
- 2011-03-23T17:50:58+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/web/script/gsajaxapi.js
r23740 r23806 5 5 var collect_ = collect; 6 6 7 8 this.fullDomainURL = function(localURL) 9 { 10 return window.location.protocol+'//'+window.location.host+localURL; 11 } 12 7 13 this.apiURL = function(apiProg) 8 14 { … … 34 40 { 35 41 return this.apiURL("explode-server.pl"); 42 } 43 44 this.myspaceserverURL = function() 45 { 46 return this.apiURL("myspace-server.pl"); 36 47 } 37 48 … … 125 136 126 137 138 139 127 140 this.setLiveMetadata = function(id,metaname,metavalue) 128 141 { … … 200 213 this.urlGetSync(url); 201 214 } 215 216 217 this.cloneDocument = function(docid,toCollect) 218 { 219 var msserver = this.myspaceserverURL(); 220 221 var url = msserver + "?a=clone"; 222 url += "&c="+collect_; 223 url += "&d="+docid; 224 url += "&toCollect="+toCollect; 225 226 // alert("url = " + url); 227 228 this.urlGetSync(url); 229 } 202 230 203 231 // consider name change to reindexDocument
Note:
See TracChangeset
for help on using the changeset viewer.