Hi,
yes, this can be implemented in the "IBMCMThinViewer.jsp" that is located in your deployment in the folder "viewer/ibmcm" ==> you can add a check if the current document is already checked out by another user => if so, just render an alert box in the following way:
…
if (obj.getVersion().isCheckedOut(OwStatusContextDefinitions.STATUS_CONTEXT_CORRECT_STATUS) && !obj.getVersion().isMyCheckedOut(OwStatusContextDefinitions.STATUS_CONTEXT_CORRECT_STATUS))
{
canEdit = false;
String strUser = "";
if (obj.getVersion().getCheckedOutUserID(OwStatusContextDefinitions.STATUS_CONTEXT_CORRECT_STATUS) != null)
strUser = obj.getVersion().getCheckedOutUserID(OwStatusContextDefinitions.STATUS_CONTEXT_CORRECT_STATUS);
out.write("<script type='text/javascript'>");
out.write("alert('Checked out by the user " + strUser + " - you are not allowed to modify the annotations!');");
out.write("</script>");
contentName = OwString.localize(m_context.getLocale(), "ibmcm.IBMCMThinViewer.notCheckedOut", "Document is checked out by another user " + strUser);
}
Please contact me if you have any questions.
Bye
Christian