Changeset 444 for tapas/web


Ignore:
Timestamp:
04/02/12 15:14:31 (12 years ago)
Author:
rboipsl
Message:

creation form jsp

Location:
tapas/web
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • tapas/web/project/formTapas.jsp

    r442 r444  
    11<%@ page import="com.ether.WebException" %> 
    22<%@ page import="com.ether.SpectralUnit" %> 
     3<%@ page import="com.ether.InstrumentalFunction" %> 
     4<%@ page import="com.ether.ClimatoReference" %> 
    35<%@ page contentType="text/html;charset=UTF-8" language="java" %> 
    46<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> 
     
    4143            tapasTexts["<%=SpectralUnit.NM_VACUUM%>"] = "<spring:message code="label.spectralUnit.NM_VACUUM"/>"; 
    4244            tapasTexts["<%=SpectralUnit.CM%>"] = "<spring:message code="label.spectralUnit.CM"/>"; 
     45            tapasTexts["<%=InstrumentalFunction.NONE%>"] = "<spring:message code="label.instrumentalFunction.NONE"/>"; 
     46            tapasTexts["<%=InstrumentalFunction.GAUSSIAN%>"] = "<spring:message code="label.instrumentalFunction.GAUSSIAN"/>"; 
     47            tapasTexts["<%=ClimatoReference.TROPICAL%>"] = "<spring:message code="label.climatoReference.TROPICAL"/>"; 
     48            tapasTexts["<%=ClimatoReference.MEDIUM_LATITUDE_SUMMER%>"] = "<spring:message code="label.climatoReference.MEDIUM_LATITUDE_SUMMER"/>"; 
     49            tapasTexts["<%=ClimatoReference.MEDIUM_LATITUDE_WINTER%>"] = "<spring:message code="label.climatoReference.MEDIUM_LATITUDE_WINTER"/>"; 
     50            tapasTexts["<%=ClimatoReference.SUBARCTIC_SUMMER%>"] = "<spring:message code="label.climatoReference.SUBARCTIC_SUMMER"/>"; 
     51            tapasTexts["<%=ClimatoReference.SUBARCTIC_WINTER%>"] = "<spring:message code="label.climatoReference.SUBARCTIC_WINTER"/>"; 
     52            tapasTexts["<%=ClimatoReference.US_STANDARD_1976%>"] = "<spring:message code="label.climatoReference.US_STANDARD_1976"/>"; 
    4353 
    44             var interfaceTapas = new InterfaceTapas(${jSonFileFormats},${jSonYesNos},${jSonObservatories}, ${jSonSpectralUnits}); 
     54            var interfaceTapas = new InterfaceTapas(${jSonFileFormats},${jSonYesNos},${jSonObservatories},${jSonSpectralUnits},${jSonInstrumentalFunctions},${jSonClimatoReferences}); 
    4555        </script> 
    4656 
  • tapas/web/project/formTapas_script.jsp

    r442 r444  
    22var InterfaceTapas = Class.create( { 
    33 
    4     initialize: function( jsonFileFormats, jsonYesNos, jsonObservatories, jSonSpectralUnits ) 
     4    initialize: function( jsonFileFormats, jsonYesNos, jsonObservatories, jsonSpectralUnits, jsonInstrumentalFunctions, jsonClimatoReferences ) 
    55    { 
    66        /** *********** CONTAINERS *********** **/ 
     
    88        this.containerErrors = $( "#errors" ); 
    99 
    10         this.jsonFileFormats = jsonFileFormats || null; 
    11         this.jsonYesNos = jsonYesNos || null; 
     10        this.jSonFileFormats = jsonFileFormats || null; 
     11        this.jSonYesNos = jsonYesNos || null; 
    1212        this.jSonObservatories = jsonObservatories || null; 
    13         this.jSonSpectralUnits = jSonSpectralUnits || null; 
     13        this.jSonSpectralUnits = jsonSpectralUnits || null; 
     14        this.jSonInstrumentalFunctions = jsonInstrumentalFunctions || null; 
     15        this.jSonClimatoReferences = jsonClimatoReferences || null; 
    1416 
    1517        this.containerErrors.hide(); 
    1618 
     19 
    1720        this.createForm(); 
    1821 
     
    2023 
    2124 
    22  
    2325    // CREATES ******************************************************** 
    24     createCalendar: function( containerCalendar ) 
     26    createCalendar: function( containerCalendar, texte ) 
    2527    { 
    2628        // Create input for date text 
    2729        var inputDateId = "iobservation_date"; 
     30        var tr = $( document.createElement( "tr" ) ); 
     31        var td1 = $( document.createElement( "td" ) ); 
     32        var td2 = $( document.createElement( "td" ) ); 
    2833        var inputDate = $( document.createElement( "input" ) ); 
    2934        inputDate.attr( {id:inputDateId, size:"17"} ); 
    30         containerCalendar.append( inputDate ); 
     35 
     36        td1.html( texte ); 
     37        tr.append( td1 ); 
     38        td2.append( inputDate ); 
     39        tr.append( td2 ); 
     40        containerCalendar.append( tr ); 
    3141 
    3242        // Calendar 
     
    5060        var input = $( document.createElement( "input" ) ); 
    5161 
    52  
    5362        input.attr( {id: inputId} ); 
     63 
    5464        td1.html( texte ); 
    5565        tr.append( td1 ); 
    5666        td2.append( input ); 
     67 
    5768        tr.append( td2 ); 
    5869        container.append( tr ); 
     70 
     71    }, 
     72 
     73 
     74    createTr2Input: function( texte1, texte2, inputId1, inputId2, container ) 
     75    { 
     76        var tr = $( document.createElement( "tr" ) ); 
     77        var td1 = $( document.createElement( "td" ) ); 
     78        var td2 = $( document.createElement( "td" ) ); 
     79        var td3 = $( document.createElement( "td" ) ); 
     80        var td4 = $( document.createElement( "td" ) ); 
     81        var input1 = $( document.createElement( "input" ) ); 
     82        var input2 = $( document.createElement( "input" ) ); 
     83 
     84 
     85        input1.attr( {id: inputId1} ); 
     86        input2.attr( {id: inputId2} ); 
     87 
     88        td1.html( texte1 ); 
     89        td3.html( texte2 ); 
     90        td2.append(input1); 
     91        td3.append(input2); 
     92 
     93        tr.append(td1); 
     94        tr.append(td2); 
     95        tr.append(td3); 
     96        tr.append(td4); 
     97        container.append(tr); 
    5998    }, 
    6099 
     
    68107 
    69108        input.attr( {id: inputId} ); 
     109 
    70110        td1.html( texte ); 
    71111        tr.append( td1 ); 
     
    74114        else if( type == 'observatories' ) this.displayObservatories( td2 ); 
    75115        else if( type == 'spectralUnit' ) this.displaySpectralUnits( td2 ); 
     116        else if( type == 'ilsf' ) this.displayInstrumentalFunctions( td2 ); 
     117        else if( type == 'climatoReference' ) this.displayClimatoReferences( td2 ); 
    76118 
    77119        tr.append( td2 ); 
     
    80122 
    81123 
    82     createForm: function() 
    83     { 
    84  
    85         //Creation div / tab 
    86         var divPreference = $( document.createElement( "div" ) ); 
    87         var tabPreference = $( document.createElement( "table" ) ); 
    88  
    89         var divObservation = $( document.createElement( "div" ) ); 
    90         var tabObservation = $( document.createElement( "table" ) ); 
    91  
    92         this.createTrList( "File format", "iformat", tabPreference, 'format' ); 
    93         this.createTr( "Rayleigh extinction", "irextinction", tabPreference ); 
    94         this.createTrList( "H20 extinction", "ih2oe", tabPreference, 'yesno' ); 
    95         this.createTrList( "O3 extinction", "io3e", tabPreference, 'yesno' ); 
    96         this.createTrList( "O2 extinction", "io2e", tabPreference, 'yesno' ); 
    97         this.createTrList( "CO2 extinction", "ico2e", tabPreference, 'yesno' ); 
    98  
    99         this.createTrList( "Observatory", "iobservatory", tabObservation, 'observatories' ); 
    100  
    101  
    102         this.createTr( "Right LOS ascension", "ira", tabObservation ); 
    103         this.createTr( "LOS declension", "ide", tabObservation ); 
    104         this.createTr( "Zenith angle", "iza", tabObservation ); 
    105         this.createTrList( "Spectral unit", "ispectral_choice", tabObservation, 'spectralUnit' ); 
    106         this.createTr( "Spectral range", "ispectral_ranger", tabObservation ); 
    107  
    108  
    109         divPreference.append( tabPreference ); 
    110         this.containerForm.append( divPreference ); 
    111  
    112         divObservation.append( tabObservation ); 
    113         this.containerForm.append( divObservation ); 
    114  
    115         // Ajout du calendrier APRES la création du formulaire 
    116         this.createCalendar( tabObservation ); 
    117  
    118         //jQuery.proxy permet d'envoyer le contexte this courant 
    119         var submitButton = new Button( {value:tapasTexts["label.submitButton"], parent:this.containerForm, id:"button_submit", className: "red_button", classNameText:"red_button_text", onClick:jQuery.proxy( this.onClickSubmit, this )} ); 
    120  
    121     }, 
    122124 
    123125 
     
    161163        paramSelect.parent = container; 
    162164        this.selectFormats = new Select( paramSelect ); 
    163         jQuery.each( this.jsonFileFormats, jQuery.proxy( function ( i, jsonFileFormat ) 
     165        jQuery.each( this.jSonFileFormats, jQuery.proxy( function ( i, jsonFileFormat ) 
    164166        { 
    165167            this.selectFormats.add( jsonFileFormat.value, jsonFileFormat.text ); 
     
    175177        paramSelect.parent = container; 
    176178        this.selectYesNos = new Select( paramSelect ); 
    177         jQuery.each( this.jsonYesNos, jQuery.proxy( function ( i, jsonYesNo ) 
     179        jQuery.each( this.jSonYesNos, jQuery.proxy( function ( i, jsonYesNo ) 
    178180        { 
    179181            this.selectYesNos.add( jsonYesNo.value, jsonYesNo.text ); 
     
    210212        { 
    211213            this.selectSpectralUnits.add( jsonSpectralUnit.value, tapasTexts[jsonSpectralUnit.value] ); 
     214            //this.selectSpectralUnits.add( jsonSpectralUnit.value, jsonSpectralUnit.value ); 
    212215        }, this ) ); 
    213216        this.selectSpectralUnits.selectFirst( true ); 
    214217    }, 
     218 
     219    displayInstrumentalFunctions: function( container ) 
     220    { 
     221        var paramSelect = new Object(); 
     222        paramSelect.id = "select_instrumental_function"; 
     223        paramSelect.parent = container; 
     224        this.selectInstrumentalFunctions = new Select( paramSelect ); 
     225        //ajouter select vide avec add 
     226        jQuery.each( this.jSonInstrumentalFunctions, jQuery.proxy( function ( i, jsonInstrumentalFunction ) 
     227        { 
     228            this.selectInstrumentalFunctions.add( jsonInstrumentalFunction.value, tapasTexts[jsonInstrumentalFunction.value] ); 
     229        }, this ) ); 
     230        this.selectInstrumentalFunctions.selectFirst( true ); 
     231    }, 
     232 
     233 
     234    displayClimatoReferences: function( container ) 
     235    { 
     236        var paramSelect = new Object(); 
     237        paramSelect.id = "select_climato_reference"; 
     238        paramSelect.parent = container; 
     239        this.selectClimatoReferences = new Select( paramSelect ); 
     240        //ajouter select vide avec add 
     241        jQuery.each( this.jSonClimatoReferences, jQuery.proxy( function ( i, jsonClimatoReference ) 
     242        { 
     243            this.selectClimatoReferences.add( jsonClimatoReference.value, jsonClimatoReference.value ); 
     244        }, this ) ); 
     245        this.selectClimatoReferences.selectFirst( true ); 
     246    }, 
     247 
    215248 
    216249    showErrors: function( result ) 
     
    220253    }, 
    221254 
     255 
     256 
     257    createForm: function() 
     258    { 
     259        //Creation div tab 
     260        var divPreference = $( document.createElement( "div" ) ); 
     261        var tabPreference = $( document.createElement( "table" ) ); 
     262 
     263        var divObservation = $( document.createElement( "div" ) ); 
     264        var tabObservation = $( document.createElement( "table" ) ); 
     265 
     266        var divAtmosphere = $( document.createElement( "div" ) ); 
     267        var tabAtmosphere = $( document.createElement( "table" ) ); 
     268 
     269 
     270        //this.tabInput = new Array(3); 
     271        this.createTrList( "File format", "iformat", tabPreference, 'format' ); 
     272        this.createTrList( "Rayleigh extinction", "irextinction", tabPreference,'yesno' ); 
     273        this.createTrList( "H20 extinction", "ih2oe", tabPreference, 'yesno' ); 
     274        this.createTrList( "O3 extinction", "io3e", tabPreference, 'yesno' ); 
     275        this.createTrList( "O2 extinction", "io2e", tabPreference, 'yesno' ); 
     276        this.createTrList( "CO2 extinction", "ico2e", tabPreference, 'yesno' ); 
     277 
     278        this.createTrList( "Observatory", "iobservatory", tabObservation, 'observatories' ); 
     279 
     280        this.createTr( "Right LOS ascension", "ira", tabObservation ); 
     281        this.createTr( "LOS declension", "ide", tabObservation ); 
     282        this.createTr( "Zenith angle", "iza", tabObservation ); 
     283 
     284        //unite 
     285        this.createTrList( "Spectral unit", "ispectral_choice", tabObservation, 'spectralUnit' ); 
     286        this.createTr2Input( "Spectral range", " to ", "iminspectral_ranger", "imaxspectral_ranger", tabObservation ); 
     287 
     288        //fonction instrumentale 
     289        this.createTrList( "Instrumental function", "ifunction", tabPreference, "ilsf" ); 
     290 
     291        this.createTr( "Resolving power", "irp", tabObservation ); 
     292        this.createTr( "Sampling ratio", "isr", tabObservation ); 
     293 
     294        //reference climato 
     295        this.createTrList( "Climatologic reference", "icr", tabAtmosphere, "climatoReference" ); 
     296 
     297        divPreference.append( tabPreference ); 
     298        this.containerForm.append( divPreference ); 
     299 
     300        divObservation.append( tabObservation ); 
     301        this.containerForm.append( divObservation ); 
     302 
     303        divAtmosphere.append( tabAtmosphere ); 
     304        this.containerForm.append( divAtmosphere ); 
     305 
     306        // Ajout du calendrier APRES la création du formulaire 
     307       this.createCalendar( tabObservation, "Date measurement"); 
     308 
     309        //jQuery.proxy permet d'envoyer le contexte this courant 
     310        var submitButton = new Button( {value:tapasTexts["label.submitButton"], parent:this.containerForm, id:"button_submit", className: "red_button", classNameText:"red_button_text", onClick:jQuery.proxy( this.onClickSubmit, this )} ); 
     311 
     312    }, 
     313 
     314 
     315 
    222316    createTapasObject: function() 
    223317    { 
     
    227321        preference.format = new Object(); 
    228322        //toutes les valeurs possibles 
    229         //preference.format.firstValue = $( "#select_formats" ).val(); 
    230323        preference.format.firstValue = this.selectFormats.getValues(); 
     324 
    231325        //la valeur selectionnee 
    232326        preference.format.secondValue = this.selectFormats.getValue(); 
    233327 
    234  
    235         var pair = new Object(); 
    236         pair.firstValue = "YES,NO"; 
    237         pair.secondValue = this.selectFormats.getValue(); 
    238  
    239         preference.rayleighExtinction = new Object(); 
    240  
    241         preference.h2oExtinction = pair; 
    242         preference.o3Extinction = pair; 
    243         preference.o2Extinction = pair; 
    244         preference.co2Extinction = pair; 
     328        preference.rayleighExtinction = new Object 
     329        preference.rayleighExtinction.firstValue="YES,NO"; 
     330        preference.rayleighExtinction.secondValue=$( "#select_irextinction" ).val(); 
     331 
     332 
     333        preference.h2oExtinction = new Object(); 
     334        preference.h2oExtinction.firstValue="YES,NO"; 
     335        preference.h2oExtinction.secondValue=$( "#select_ih2oe" ).val(); 
     336 
     337 
     338        preference.o3Extinction = new Object(); 
     339        preference.o3Extinction.firstValue=""; 
     340        preference.o3Extinction.secondValue=""; 
     341 
     342        preference.o2Extinction = new Object(); 
     343        preference.o2Extinction.firstValue=""; 
     344        preference.o2Extinction.secondValue=""; 
     345 
     346        preference.co2Extinction = new Object(); 
     347        preference.co2Extinction.firstValue=""; 
     348        preference.co2Extinction.secondValue=""; 
     349 
    245350 
    246351        // OBSERVATION 
    247         // Observatory 
    248352        var observatory = new Object(); 
    249         //observatory.name = this.selectFormats.name; 
    250  
    251         observatory.longitude = this.longitude.value; 
    252         observatory.latitude = this.latitude.value; 
    253         observatory.altitude = this.altitude.value; 
     353 
     354        observatory.name = ""; 
     355 
     356 
     357        observatory.longitude = ""; 
     358        observatory.latitude = ""; 
     359        observatory.altitude = ""; 
    254360 
    255361 
    256362        // Los 
    257363        var los = new Object(); 
    258         los.raJ2000 = "04:32:43"; 
    259         los.decJ2000 = "-43:12:10.22"; 
     364 
     365 
     366        los.raJ2000 = ""; 
     367        los.decJ2000 = ""; 
    260368 
    261369        los.zenithAngle = new Object(); 
    262370        los.zenithAngle.min = "0"; 
    263371        los.zenithAngle.max = "90"; 
    264         los.zenithAngle.value = 60; 
     372        los.zenithAngle.value = ""; 
     373 
     374 
    265375 
    266376        // Instrument 
     
    268378 
    269379        instrument.spectralChoice = new Object(); 
    270         instrument.spectralChoice.firstValue = "Vacuum Wavelength (nm),Standard Wavelength (nm),Wavenumber (cm-1)"; 
    271         instrument.spectralChoice.secondValue = "Standard Wavelength (nm)"; 
    272         instrument.spectralRange = "1180 1200"; 
     380        instrument.spectralChoice.firstValue = this.selectSpectralUnits.getValues(); 
     381        instrument.spectralChoice.secondValue = this.selectSpectralUnits.getValue(); 
     382 
     383        instrument.spectralRange = ""; 
     384 
    273385        instrument.ilsfChoice = new Object(); 
    274         instrument.ilsfChoice.firstValue = "-1,0,1"; 
    275         instrument.ilsfChoice.secondValue = 0; 
    276         instrument.ilsfPath = "/home/ferron/tmp/tapas/ilsf.txt"; 
     386        instrument.ilsfChoice.firstValue = ""; 
     387        instrument.ilsfChoice.secondValue = ""; 
     388 
    277389        instrument.resolvingPower = new Object(); 
    278         instrument.resolvingPower.firstValue = "0"; 
    279         instrument.resolvingPower.secondValue = 1000000; 
     390        instrument.resolvingPower.firstValue = ""; 
     391        instrument.resolvingPower.secondValue = ""; 
     392 
    280393        instrument.samplingRatio = new Object(); 
    281         instrument.samplingRatio.firstValue = "0"; 
    282         instrument.samplingRatio.secondValue = 3; 
    283  
    284         var observation = new Object(); 
    285         observation.date = this.calendarConverter.parse( $( "#iobservation_date" ).val() ).getTime(); 
    286         observation.observatory = observatory; 
     394        instrument.samplingRatio.firstValue = ""; 
     395        instrument.samplingRatio.secondValue = ""; 
     396 
     397 
     398       var observation = new Object(); 
     399       observation.date = this.calendarConverter.parse( $( "#iobservation_date" ).val() ); 
     400       observation.observatory = observatory; 
     401 
    287402        observation.los = los; 
    288403        observation.instrument = instrument; 
    289404 
     405 
    290406        // ATMOSPHERE 
    291407        var atmosphere = new Object(); 
     408 
    292409        atmosphere.reference = new Object(); 
    293         atmosphere.reference.firstValue = "0,1,2,3,4,5,6"; 
    294         atmosphere.reference.secondValue = 6; 
    295  
    296         atmosphere.arlettyFile = new Array(); 
    297         atmosphere.arlettyFile[0] = "/home/ferron/tmp/tapas/Reims_070402.ARL.txt"; 
    298         atmosphere.arlettyFile[1] = "/home/ferron/tmp/tapas/Reims_070402.ARL.txt22"; 
    299  
    300         atmosphere.ecmwfFile = new Array(); 
    301         atmosphere.ecmwfFile[0] = "/home/ferron/tmp/tapas/ecmwf12.txt"; 
     410        atmosphere.reference.firstValue = this.selectClimatoReferences.getValues(); 
     411        atmosphere.reference.secondValue = this.selectClimatoReferences.getValue(); 
    302412 
    303413 
     
    314424        // TAPAS 
    315425        var tapas = new Object(); 
    316         tapas.id = "Ether_TAPAS_0000001"; 
    317426        tapas.requests = requests; 
     427 
    318428 
    319429        return tapas; 
  • tapas/web/resources/css/tapas.css

    r441 r444  
    5252 
    5353.containerTitle { 
    54     font-size: 20px; 
     54    font-size: 16px; 
    5555    color: #581700; 
    5656    font-weight: bold; 
    5757    float: left; 
    5858    margin-top: 9px; 
    59     padding-left: 177px; 
     59    padding-left: 80px; 
    6060} 
    6161 
     
    138138    -webkit-border-radius: 0; /*#E8EFF3*//* #618EAC*/ 
    139139    background: -moz-linear-gradient(white, #52251C); 
    140     background: -webkit-linear-gradient(white, #F6DC12); 
     140    background: -webkit-linear-gradient(white, #52251C); 
    141141    background: -ms-linear-gradient(white,#C03000 ) repeat scroll 0 0 transparent; /*For IE10*/ 
    142     filter: progid:DXImageTransform.Microsoft.gradient(GradientType = 0, startColorstr = 'white', endColorstr = '#F6DC12'); /*For IE7-8-9*/ 
     142    filter: progid:DXImageTransform.Microsoft.gradient(GradientType = 0, startColorstr = 'white', endColorstr = '#52251C'); /*For IE7-8-9*/ 
    143143    min-height: 400px; 
    144144    text-align: justify; 
     
    151151.containerBottom { 
    152152    background: -moz-linear-gradient(left center, white, #581700); 
    153     background: -webkit-linear-gradient(white, #F6DC12); 
    154     background: -ms-linear-gradient(white, #F6DC12) repeat scroll 0 0 transparent; /*For IE10*/ 
    155     filter: progid:DXImageTransform.Microsoft.gradient(GradientType = 0, startColorstr = 'white', endColorstr = '#F6DC12'); /*For IE7-8-9*/ 
     153    background: -webkit-linear-gradient(white, #52251C); 
     154    background: -ms-linear-gradient(white, #52251C) repeat scroll 0 0 transparent; /*For IE10*/ 
     155    filter: progid:DXImageTransform.Microsoft.gradient(GradientType = 0, startColorstr = 'white', endColorstr = '#52251C'); /*For IE7-8-9*/ 
    156156    color: #FFFFFF; 
    157157    height: 26px; 
  • tapas/web/resources/templates/templateBackoffice.jsp

    r414 r444  
    6767    <%-- ****************** LOGO ****************** --%> 
    6868    <div id="logo" class="containerLogo"> 
    69         <a href="#"><img src="resources/images/logo_tapas.jpg" height="110px" width="110px"></a> 
     69        <a href="#"><img src="resources/images/logo_tapas.gif" height="110px" width="110px"></a> 
    7070    </div> 
    7171 
  • tapas/web/resources/templates/templateEther.jsp

    r416 r444  
    6161    <%-- ****************** LOGO ****************** --%> 
    6262    <div id="logo" class="containerLogo"> 
    63         <a href="#"><img src="resources/images/logo_tapas.jpg" height="110px" width="110px"></a> 
     63        <a href="#"><img src="resources/images/logo_tapas.gif" height="130px" width="130px"></a> 
    6464    </div> 
    6565 
  • tapas/web/src/com/ether/Controller.java

    r442 r444  
    4747            jsonObject.put( "jSonObservatories", allObservatories ); 
    4848            jsonObject.put( "jSonSpectralUnits", getJSONSpectralUnit() ); 
     49            jsonObject.put( "jSonInstrumentalFunctions", getJSONInstrumentalFunction() ); 
     50            jsonObject.put( "jSonClimatoReferences", getJSONClimatoReference() ); 
    4951            return jsonObject; 
    5052        } 
     
    7274            throws WebException 
    7375    { 
     76        String toto="lmml"; 
     77 
    7478        if( null == javaTapas ) 
    7579            throw new WebException( WebException.WebCode.ERROR_JSON_TAPAS_IS_NULL, "Serialization error : jsonTapas is null", WebException.getExceptionThrowable() ); 
     
    7781        //TODO recuperer le USER via ControllerEther 
    7882 
    79         //appel a createxml 
     83        // appel a createxml 
    8084        getTapasService().createXMLRequest( javaTapas ); // en 2ieme parametre 
    8185 
    82         //appel a runtime 
    83         //mettre une methode dans tapas service pour appel au shell system 
     86        // appel a runtime 
     87        // mettre une methode dans tapas service pour appel au shell system 
     88        // avec detail du shell 1 (mkdir, appel du shell lancement du qsub) 
    8489 
    8590 
     
    137142    } 
    138143 
     144 
     145    private List<JSONObject> getJSONInstrumentalFunction() 
     146    { 
     147        final InstrumentalFunction[] instrumentalFunctions = InstrumentalFunction.values(); 
     148 
     149        final List<JSONObject> jsonInstrumentalFunctions = new ArrayList<JSONObject>( instrumentalFunctions.length ); 
     150 
     151        for( final InstrumentalFunction instrumentalFunction : instrumentalFunctions ) 
     152        { 
     153            final JSONObject jsonInstrumentalFunction = new JSONObject(); 
     154            jsonInstrumentalFunction.put( "text", instrumentalFunction.name() ); 
     155            jsonInstrumentalFunction.put( "value", instrumentalFunction.name() ); 
     156            jsonInstrumentalFunctions.add( jsonInstrumentalFunction ); 
     157        } 
     158        return jsonInstrumentalFunctions; 
     159    } 
     160 
     161 
     162    private List<JSONObject> getJSONClimatoReference() 
     163    { 
     164        final ClimatoReference[] climatoReferences = ClimatoReference.values(); 
     165 
     166        final List<JSONObject> jsonClimatoReferences = new ArrayList<JSONObject>( climatoReferences.length ); 
     167 
     168        for( final ClimatoReference climatoReference : climatoReferences ) 
     169        { 
     170            final JSONObject jsonClimatoReference = new JSONObject(); 
     171            jsonClimatoReference.put( "text", climatoReference.name() ); 
     172            jsonClimatoReference.put( "value", climatoReference.name() ); 
     173            jsonClimatoReferences.add( jsonClimatoReference ); 
     174        } 
     175        return jsonClimatoReferences; 
     176    } 
     177 
     178 
    139179    private static final Log LOGGER = LogFactory.getLog( Controller.class ); 
    140180 
  • tapas/web/src/messages_en.properties

    r442 r444  
    55 
    66app.title=Tapas 
    7 app.fulltitle=Full title de Tapas 
     7app.fulltitle=Transmissions Atmosphériques Personnalisées Pour l'AStronomie 
    88app.connexion=Connection 
    99app.administrator=Administrator 
     
    2828label.spectralUnit.NM_VACUUM=Vacuum Wavelength (nm) 
    2929label.spectralUnit.CM=Wavenumber (cm-1) 
     30 
     31label.instrumentalFunction.NONE=None 
     32label.instrumentalFunction.GAUSSIAN=Gaussian 
     33 
     34label.climatoReference.TROPICAL=Tropical 
     35label.climatoReference.MEDIUM_LATITUDE_SUMMER=Average latitude summer 
     36label.climatoReference.MEDIUM_LATITUDE_WINTER=Average latitude winter 
     37label.climatoReference.SUBARCTIC_SUMMER=Subarctic summer 
     38label.climatoReference.SUBARCTIC_WINTER=Subarctic winter 
     39label.climatoReference.US_STANDARD_1976=Standard US 1976 
    3040 
    3141################################################################ 
  • tapas/web/src/messages_fr.properties

    r442 r444  
    55 
    66app.title=Tapas 
    7 app.fulltitle=Titre complet de Tapas 
     7app.fulltitle=Transmissions Atmosphériques Personnalisées Pour l'AStronomie 
    88app.connexion=Connexion 
    99app.administrator=Administrateur 
     
    2323error.ERROR_JSON_TAPAS_IS_NULL=Erreur de création du formulaire Tapas 
    2424 
    25 label.submitButton=COURIR 
     25label.submitButton=EXECUTER 
    2626 
    2727label.spectralUnit.NM_STANDARD=Standard Wavelength (nm) 
    2828label.spectralUnit.NM_VACUUM=Vacuum Wavelength (nm) 
    2929label.spectralUnit.CM=Wavenumber (cm-1) 
     30 
     31label.instrumentalFunction.NONE=Aucune 
     32label.instrumentalFunction.GAUSSIAN=Gaussienne 
     33 
     34label.climatoReference.TROPICAL=Tropical 
     35label.climatoReference.MEDIUM_LATITUDE_SUMMER=Latitude moyenne été 
     36label.climatoReference.MEDIUM_LATITUDE_WINTER=Latitude moyenne hiver 
     37label.climatoReference.SUBARCTIC_SUMMER=Subarctique été 
     38label.climatoReference.SUBARCTIC_WINTER=Subarctique hiver 
     39label.climatoReference.US_STANDARD_1976=Standard US 1976 
     40 
    3041 
    3142################################################################ 
Note: See TracChangeset for help on using the changeset viewer.