Changeset 8257 for mauRepo/MolesManager
- Timestamp:
- 19/04/12 10:59:10 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/MolesManager/trunk/src/MolesManager/static/js/cedaObservation.js
r8256 r8257 1 1 define(['dojo'], function(dojo){ 2 console.log("loads cedaObservation.js")2 //console.log("loads cedaObservation.js") 3 3 // function <nameOfFunction>(parameter, parameter2..etc coming in){ 4 4 // write operations to prepare value to return … … 25 25 dltext += '<a href="'+ result.source[0].linkage + '">' + result.source[0].function.value + '</a>'; 26 26 dltext += '</p>'; 27 console.log(dltext)27 //console.log(dltext) 28 28 return dltext 29 29 } … … 31 31 function timeLead0(timeElement){ 32 32 if (timeElement.length == 1){ 33 console.log(timeElement)33 //console.log(timeElement) 34 34 timeElement = '0' + timeElement; 35 35 } … … 52 52 function resultTime(timeDetails){ 53 53 timeArray = {}; 54 console.log(timeDetails);54 //console.log(timeDetails); 55 55 if (timeDetails != null){ 56 56 … … 97 97 98 98 if (typeof coObs.relatedParty[loopVal].role.name !='undefined' && coObs.relatedParty[loopVal].role.name !=null){ 99 console.log(coObs.relatedParty[loopVal].role.name,loopVal)99 //console.log(coObs.relatedParty[loopVal].role.name,loopVal) 100 100 for (loopInner=0; loopInner<coObs.relatedParty[loopVal].party.length; loopInner++){ 101 101 innerDetails['type'] = coObs.relatedParty[loopVal].party[0].__class__ … … 127 127 // function to strip off additional info from the name and then to prepare the name if individual for citation, e.g. 128 128 // G Vaughan (University of Manchester), PI should be just "Vaughan, G" in citation. 129 console.log(nameIn) 130 console.log(type[nameIn].type) 129 131 130 if (type[nameIn].type == 'CI_Organisation'){ 132 131 return nameIn.split(' (')[0] … … 142 141 function createCitation(coObs,ids,rps,pubDetails){ 143 142 var citationString =''; 144 console.log(rps['cl_author'])145 console.log(Object.keys(rps['cl_author']))146 143 citationString += '<p>' + citeNameArrange(Object.keys(rps['cl_author'])[0],rps['cl_author']); 147 console.log(citationString)148 144 if (rps.hasOwnProperty('cl_coinvestigator')){ 149 145 for (loopVal=0; loopVal<Object.keys(rps['cl_coinvestigator']).length; loopVal++){ … … 180 176 var split = permission.useLimitation[0].split(' http://') 181 177 split[1] = split[1].trim() 182 console.log(split[1].trim())183 178 if (split[1][split[1].length] == '.'){split[1] = split[1].substring[0,split[1].length - 1]} 184 179 accessString = '<p>' + split[0] + ' <a href="http://' + split[1] + '">' + split[1] + '</a></p>' … … 265 260 // map.addControl(layerSwitch); 266 261 //var sf = new OpenLayers.Control.SelectFeature(boxes); 267 console.log(ext[0],ext[1],ext[2],ext[3])262 //console.log(ext[0],ext[1],ext[2],ext[3]) 268 263 269 264 //map.addControl(sf); … … 299 294 type: "submit", 300 295 label: "Search", 301 onClick: function(){ console.log("First button was clicked!"); }296 //onClick: function(){ console.log("First button was clicked!"); } 302 297 }, "search_obs"); 303 298 button.startup(); … … 333 328 //---------- Loads the widgets values ---------- 334 329 //---------------------------------------------- 335 console.log('here1')330 336 331 var json = dojo.byId('coObs_id').value; 337 332 coObs = dojo.fromJson(json); 338 console.log('here2')333 339 334 if (coObs != ''){ 340 335 var ids = getIDs(coObs); 341 console.log(coObs)342 console.log(coObs.identifier.length)336 //console.log(coObs) 337 //console.log(coObs.identifier.length) 343 338 344 339 … … 371 366 var dataLink_id = new dojo.html.set(dojo.byId("datalink_id"),downloadLink(coObs.result)); 372 367 var access_id = new dojo.html.set(dojo.byId("access_id"),accessLink(coObs.permission)); 373 console.log(rps['cl_pointofcontact'])374 368 var help_id = new dojo.html.set(dojo.byId("help_id"),rps['cl_pointofcontact'][Object.keys(rps['cl_pointofcontact'])[0]].helpString); 375 369 drawMap(coObs.geographicExtent,'map');
Note: See TracChangeset
for help on using the changeset viewer.