Changeset 8278 for mauRepo/MolesManager
- Timestamp:
- 20/04/12 18:40:15 (8 years ago)
- Location:
- mauRepo/MolesManager/trunk/src/MolesManager/static
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/MolesManager/trunk/src/MolesManager/static/js/cedaObservation.js
r8277 r8278 118 118 } 119 119 } 120 console.log(loopVal)121 console.log(coObs.relatedParty[loopVal].party[0])122 console.log(coObs.relatedParty[loopVal].party[0].name)123 120 details[coObs.relatedParty[loopVal].party[0].name] = innerDetails 124 121 … … 173 170 if (ids.hasOwnProperty('DOI')){ 174 171 var doi = ids['DOI'].code; 175 var doiHttp = 'http://dx.doi.org/' + doi172 var doiHttp = (doi.substring(0,18) != 'http://dx.doi.org/')?doiHttp = 'http://dx.doi.org/' + doi : doi; 176 173 citationString += ' ' + doi + '. ' + '<a href="' + doiHttp + '">' + doiHttp + '</a>'; 177 174 } … … 348 345 var guid = dojo.byId('guid_id').value; 349 346 coObs = dojo.fromJson(json); 350 console.log(guid)347 351 348 if (coObs != ''){ 352 349 var ids = getIDs(coObs); … … 364 361 365 362 var title_id = new dojo.html.set(dojo.byId("title_id"),'<h3>'+ids['ceda_title'].code+'</h3>'); 363 366 364 var rps = getRelatedParties(coObs); 367 365 var pubDetails = publicationDetails(coObs,ids); 366 368 367 var pubDetails_id = new dojo.html.set(dojo.byId("pubDetails_id"),pubDetails['pubString']); 368 369 if (coObs.resultAccumulation != null) { 370 var updateFreq_id = new dojo.html.set(dojo.byId("updateFreq_id"),'<p>Date Update Frequency: <b>'+coObs.resultAccumulation.value+'</b></p>'); 371 } 369 372 370 373 var citation_id = new dijit.TitlePane( … … 377 380 var pastCitation_id = new dijit.TitlePane( 378 381 { 379 title: "Previous Identifiers Used:", content: ids['moles2url'].code, open: 0382 title: "Previous Identifiers Used:", content: '<a href="'+ids['moles2url'].code+'">'+ids['moles2url'].code+'</a>', open: 0 380 383 },"pastCitation_id"); 381 384 citation_id.startup(); … … 417 420 418 421 var dataLineage_id = new dojo.html.set(dojo.byId("dataLineage_id"),'<p>' + coObs.dataLineage + '</p>'); 419 422 if (coObs.inSupportOf.hasOwnProperty('abstract')){ 423 if (coObs.inSupportOf.abstract != null){ 424 var project_id = new dijit.TitlePane( 425 { 426 title: 'Project Abstract', content: '<p>'+coObs.inSupportOf.abstract+'</p>', open:0 427 },"project_id"); 428 project_id.startup(); 429 } 430 431 } 420 432 //dataLineage.startup(); 421 433 //dojo.attr("records_dataLineage", 'value', coObs.dataLineage); -
mauRepo/MolesManager/trunk/src/MolesManager/static/js/cedaSearch.js
r8211 r8278 22 22 type: "submit", 23 23 label: "Search", 24 onClick: function(){ console.log("First button was clicked!"); }24 // onClick: function(){ console.log("First button was clicked!"); } 25 25 }, "search_obs"); 26 26 button.startup(); -
mauRepo/MolesManager/trunk/src/MolesManager/static/templates/cedaObservation.html
r8273 r8278 45 45 <div style="width:300px; height:175px" id="map" class="smallmap"></div> 46 46 <div id="resultTime_id"></div> 47 <div id='updateFreq_id'></div> 47 48 </div> 48 49 <div class="grid_7 cedaObs" id="middleMiddle"> … … 52 53 <div id="keywords_id"></div> 53 54 <div id="description_id"></div> 55 <div id="project_id"></div> 54 56 <br /> 55 57 </div><!-- End of div description --> … … 62 64 <!-- End of div upper_section --> 63 65 64 65 66 <div id="lower_section" class="grid_12 whiteFill"> 67 <div class="grid_8 push_2 alpha"> 68 <h5>Additional Information</h5> 69 </div> 66 70 <div id="lower_tab1" style="height:300px" class="grid_8 push_2 cedaObs"> 67 71 68 72 <script type="text/javascript"> 69 73 /* require necessary classes */
Note: See TracChangeset
for help on using the changeset viewer.