Ignore:
Timestamp:
03/10/12 14:59:39 (7 years ago)
Author:
mnagni
Message:

correct a wrong reference to old_coObs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/cedaMoles/MolesManager/static/js/cedaObservation.js

    r8602 r8604  
    6363                        function publicationDetails(coObs,ids){ 
    6464                                var pubDetails = {}; 
    65                                 var typePub=(ids.hasOwnProperty('DOI'))?"Dataset is Citable <br /> additional metadata fields may be added ": coObs_old.publicationState.value; 
     65                                var typePub=(ids.hasOwnProperty('DOI'))?"Dataset is Citable <br /> additional metadata fields may be added ": coObs.publicationState.value; 
    6666 
    6767                                pubDetails['pubType'] = typePub; 
     
    6969                                         
    7070                                try { 
    71                                         pubDetails['pubYear'] = coObs_old.resultTime.position.dateTime8601.year; 
    72                                         pubDetails['pubMonth'] = timeLead(coObs_old.resultTime.position.dateTime8601.month); 
    73                                         pubDetails['pubDay'] = timeLead(coObs_old.resultTime.position.dateTime8601.day).timeElement; 
     71                                        pubDetails['pubYear'] = coObs.resultTime.position.dateTime8601.year; 
     72                                        pubDetails['pubMonth'] = timeLead(coObs.resultTime.position.dateTime8601.month); 
     73                                        pubDetails['pubDay'] = timeLead(coObs.resultTime.position.dateTime8601.day).timeElement; 
    7474                                        } 
    7575                                catch(err){ 
Note: See TracChangeset for help on using the changeset viewer.