anchor.diff:  		}catch(Exception e){}
   					
   	}
  +	
  +	if(readOnly){
  +		isEditDossier = false;
  +	}
  +	
   %>
   
   <table class="dossier-actions-wraper">
  
positive.code: 						version = 1;
  					}
  				}else{
  					version = DossierFileLocalServiceUtil.countDossierFileByDID_DP(dossierId, dossierPartId);
  				}
  				
  			}
  
negative.code: 							</c:if>
  						</c:when>
  						<c:when test="<%=isDynamicForm && fileEntryId > 0  %>">
  							<c:if test="<%=!isReadOnly %>">
  							<aui:a 
  								id="<%=String.valueOf(dossierPartId) %>"
  								dossier="<%=String.valueOf(dossierId) %>"
  