@@ -46,7 +46,8 @@ define(['backbone', 'marionette', 'views/dialog',
4646 ind : 'div.ind' ,
4747 pipeline : 'select[name=pipeline]' ,
4848 res : 'input[name=res]' ,
49- sg : 'select[name=SG]'
49+ lowres : 'input[name=lowres]' ,
50+ sg : 'input[name=SG]'
5051 } ,
5152
5253 events : {
@@ -71,13 +72,18 @@ define(['backbone', 'marionette', 'views/dialog',
7172
7273 'change @ui.pipeline' : 'updatePipeline' ,
7374 'change @ui.res' : 'updateRes' ,
75+ 'change @ui.lowres' : 'updateLowRes' ,
7476 } ,
7577
7678
7779 updateRes : function ( ) {
7880 this . model . set ( 'RES' , this . ui . res . val ( ) )
7981 } ,
8082
83+ updateLowRes : function ( ) {
84+ this . model . set ( 'LOWRES' , this . ui . lowres . val ( ) )
85+ } ,
86+
8187 updatePipeline : function ( ) {
8288 this . model . set ( 'PIPELINE' , this . ui . pipeline . val ( ) )
8389 } ,
@@ -139,6 +145,7 @@ define(['backbone', 'marionette', 'views/dialog',
139145 this . ui . ind . hide ( )
140146 this . $el . find ( 'ul' ) . addClass ( 'half' )
141147 this . $el . find ( 'li input[type="text"]' ) . css ( 'width' , '25%' )
148+ this . $el . find ( 'div input[type="text"]' ) . css ( 'width' , '50px' )
142149 this . ui . pipeline . html ( this . getOption ( 'pipelines' ) . opts ( ) )
143150 this . model . set ( 'PIPELINE' , this . ui . pipeline . val ( ) )
144151 } ,
@@ -172,7 +179,7 @@ define(['backbone', 'marionette', 'views/dialog',
172179 this . ui . be . val ( c [ 'CELL_BE' ] ) . trigger ( 'change' )
173180 this . ui . ga . val ( c [ 'CELL_GA' ] ) . trigger ( 'change' )
174181
175- this . ui . sg . val ( a [ 'SG' ] ) . trigger ( 'change' )
182+ this . ui . sg . val ( a . get ( 'SG' ) ) . trigger ( 'change' )
176183 }
177184 } ,
178185
@@ -213,6 +220,12 @@ define(['backbone', 'marionette', 'views/dialog',
213220 } , KVCollection ) )
214221
215222
223+ var AbsorptionLevels = Backbone . Collection . extend ( _ . extend ( {
224+ keyAttribute : 'NAME' ,
225+ valueAttribute : 'VALUE' ,
226+ } , KVCollection ) )
227+
228+
216229 return ReprocessView = DialogView . extend ( {
217230 template : template ,
218231 dialog : true ,
@@ -233,6 +246,7 @@ define(['backbone', 'marionette', 'views/dialog',
233246 sg : 'select[name=sg]' ,
234247 sm : 'input[name=sm]' ,
235248 indexingMethod : 'select[name=method]' ,
249+ absorptionLevel : 'select[name=absorption_level]' ,
236250 } ,
237251
238252 buttons : {
@@ -287,7 +301,7 @@ define(['backbone', 'marionette', 'views/dialog',
287301 } ,
288302
289303 xia2params : function ( ) {
290- return [ 'cc_half' , 'isigma' , 'misigma' , 'sigma_strong' , 'method' ]
304+ return [ 'cc_half' , 'isigma' , 'misigma' , 'sigma_strong' , 'method' , 'absorption_level' ]
291305 } ,
292306
293307 integrate : function ( e ) {
@@ -327,6 +341,12 @@ define(['backbone', 'marionette', 'views/dialog',
327341 PARAMETERVALUE : sw . get ( 'RES' )
328342 } ) )
329343
344+ if ( sw . get ( 'LOWRES' ) ) reprocessingparams . add ( new ReprocessingParameter ( {
345+ PROCESSINGJOBID : reprocessing . get ( 'PROCESSINGJOBID' ) ,
346+ PARAMETERKEY : 'd_max' ,
347+ PARAMETERVALUE : sw . get ( 'LOWRES' )
348+ } ) )
349+
330350 var hascell = true
331351 var cell = [ ]
332352 _ . each ( [ 'CELL_A' , 'CELL_B' , 'CELL_C' , 'CELL_ALPHA' , 'CELL_BETA' , 'CELL_GAMMA' ] , function ( f , i ) {
@@ -416,6 +436,13 @@ define(['backbone', 'marionette', 'views/dialog',
416436 PARAMETERVALUE : res
417437 } ) )
418438
439+ var lowres = self . $el . find ( 'input[name=lowres]' ) . val ( )
440+ if ( lowres ) reprocessingparams . add ( new ReprocessingParameter ( {
441+ PROCESSINGJOBID : reprocessing . get ( 'PROCESSINGJOBID' ) ,
442+ PARAMETERKEY : 'd_max' ,
443+ PARAMETERVALUE : lowres
444+ } ) )
445+
419446 var hascell = true
420447 var cell = [ ]
421448 _ . each ( [ 'a' , 'b' , 'c' , 'alpha' , 'beta' , 'gamma' ] , function ( f , i ) {
@@ -505,6 +532,7 @@ define(['backbone', 'marionette', 'views/dialog',
505532 onRender : function ( ) {
506533 this . ui . opts . hide ( )
507534 this . ui . cell . hide ( )
535+ this . $el . find ( 'span input[type="text"]' ) . css ( 'width' , '50px' )
508536
509537 this . pipelines = new Pipelines ( [
510538 { NAME : 'Xia2 DIALS' , VALUE : 'xia2-dials' } ,
@@ -524,6 +552,15 @@ define(['backbone', 'marionette', 'views/dialog',
524552
525553 this . ui . indexingMethod . html ( this . indexingMethods . opts ( ) )
526554
555+ this . absorptionLevels = new AbsorptionLevels ( [
556+ { NAME : '-' , VALUE : '' } ,
557+ { NAME : 'Low' , VALUE : 'low' } ,
558+ { NAME : 'Medium' , VALUE : 'medium' } ,
559+ { NAME : 'High' , VALUE : 'high' } ,
560+ ] )
561+
562+ this . ui . absorptionLevel . html ( this . absorptionLevels . opts ( ) )
563+
527564 // asynchronously load space groups into the select menu
528565 this . showSpaceGroups ( )
529566
0 commit comments