82
82
String profile = (String ) request. getAttribute(" Profile" );
83
83
String action = (String ) request. getAttribute(" Action" );
84
84
String id = (String ) request. getAttribute(" PubId" );
85
- String currentLang = (String ) request. getAttribute(" Language" );
86
85
List<NodeDetail > path = (List<NodeDetail > ) request. getAttribute(" Path" );
87
86
boolean draftOutTaxonomyOK = (Boolean ) request. getAttribute(" TaxonomyOK" );
88
87
boolean draftOutValidatorsOK = (Boolean ) request. getAttribute(" ValidatorsOK" );
89
-
90
- String resultThumbnail = request. getParameter(" resultThumbnail" );
91
- boolean errorThumbnail = false ;
92
- if (resultThumbnail != null && ! " ok" . equals(resultThumbnail)){
93
- errorThumbnail = true ;
94
- }
88
+ boolean isPublicationClassifiedOnPDC = (Boolean ) request. getAttribute(" isPublicationClassifiedOnPDC" );
95
89
96
90
PublicationDetail volatilePublication = (PublicationDetail ) request. getAttribute(" VolatilePublication" );
97
91
Form extraForm = (Form ) request. getAttribute(" ExtraForm" );
244
238
245
239
String backUrl = URLUtil . getFullApplicationURL(request) + URLUtil . getURL(" kmelia" , null , componentId) + " ToUpdatePublicationHeader" ;
246
240
% >
247
-
248
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
249
- <html xmlns =" http://www.w3.org/1999/xhtml" >
250
- <head >
251
- <title ></title >
252
- <view:looknfeel withFieldsetStyle =" true" withCheckFormScript =" true" />
241
+ <view:sp-page >
242
+ <view:sp-head-part withCheckFormScript =" true" withFieldsetStyle =" true" >
253
243
<view:includePlugin name =" datepicker" />
254
244
<view:includePlugin name =" popup" />
255
245
<view:includePlugin name =" wysiwyg" />
400
390
errorNb++ ;
401
391
});
402
392
403
- < % if (! kmaxMode && " New" .equals (action)) { % >
393
+ < % if (! kmaxMode && ( " New" .equals (action) || ! isPublicationClassifiedOnPDC )) { % >
404
394
< view: pdcValidateClassification errorCounter= " errorNb" errorMessager= " errorMsg" / >
405
395
< % } % >
406
396
487
477
});
488
478
});
489
479
</script >
490
- </head >
491
- <body id =" <%= componentId % >" class =" publicationManager" onunload = " closeWindows() " >
480
+ </view:sp- head-part >
481
+ <view:sp- body-part id =" <%= componentId % >" cssClass =" publicationManager" >
492
482
<%
493
483
Window window = gef. getWindow();
494
484
OperationPane operationPane = window. getOperationPane();
595
585
<div class =" field" id =" pubNameArea" >
596
586
<label for =" pubName" class =" txtlibform" ><%= resources. getString(" PubTitre" ) % > </label >
597
587
<div class =" champs" >
598
- <input type =" text" name =" KmeliaPubName" id =" pubName" value =" <%= name % >" size =" 68" maxlength =" 400" />  ; <img src =" <%= mandatorySrc % >" width = " 5 " height =" 5" border = " 0 " />
588
+ <input type =" text" name =" KmeliaPubName" id =" pubName" value =" <%= name % >" size =" 68" maxlength =" 400" />  ; <img src =" <%= mandatorySrc % >" alt = " <%= resources . getString( " GML.requiredField " ) % > " width =" 5" height = " 5 " />
599
589
</div >
600
590
</div >
601
591
605
595
<div class =" champs" >
606
596
<textarea rows =" 4" cols =" 65" name =" KmeliaPubDescription" id =" pubDesc" ><%= description % > </textarea >
607
597
<% if (isFieldDescriptionMandatory) { % >
608
- <img src =" <%= mandatorySrc % >" width = " 5 " height =" 5" border = " 0 " />
598
+ <img src =" <%= mandatorySrc % >" alt = " <%= resources . getString( " GML.requiredField " ) % > " width =" 5" height = " 5 " />
609
599
<% } % >
610
600
</div >
611
601
</div >
678
668
<% } else { % >
679
669
<textarea name =" Valideur" id =" Valideur" rows =" 4" cols =" 40" readonly =" readonly" ><%= targetValidatorName % > </textarea >
680
670
<% } % >
681
- <input type =" hidden" name =" KmeliaPubValideurId" id =" ValideurId" value =" <%= targetValidatorId % >" /><%= link % >  ; <img src =" <%= mandatorySrc % >" width = " 5 " height =" 5" border = " 0 " />
671
+ <input type =" hidden" name =" KmeliaPubValideurId" id =" ValideurId" value =" <%= targetValidatorId % >" /><%= link % >  ; <img src =" <%= mandatorySrc % >" alt = " <%= resources . getString( " GML.requiredField " ) % > " width =" 5" height = " 5 " />
682
672
</div >
683
673
</div >
684
674
<% } % >
776
766
} % >
777
767
778
768
<div class =" legend" >
779
- <img src =" <%= mandatorySrc % >" width =" 5" height =" 5" /> : <%= resources. getString(" GML.requiredField" ) % >
769
+ <img alt = " <%= resources . getString( " GML.requiredField " ) % > " src =" <%= mandatorySrc % >" width =" 5" height =" 5" /> : <%= resources. getString(" GML.requiredField" ) % >
780
770
</div >
781
771
782
772
</form >
829
819
</ul >
830
820
</div >
831
821
<view:progressMessage />
832
- </body >
833
- </html >
822
+ </view:sp- body-part >
823
+ </view:sp-page >
0 commit comments