It should be possible to add an optional comment (multiline) to a document during upload. The comment should be entered in the upload dialog.
When updating the document (creating a new version), the comment field should be prefilled with the comment of the current version.
The display of the documents via the WebfolderComponent should be extended so that the comment is displayed as a table column.
Subsequent modification of the comment should only be possible for the current version of the document. A document lock is set for the duration of editing (analogous to usual token-based locks).
The comment should be displayed as a column in the "Document versions" display.
Analogous to the documents also SubFolders in a WebFolder shall have descriptions. These should be optionally specified when creating a new SubFolder and should also be editable in the WebFolder.
Conversion
DocumentVersion and WebFolder read and write the description through their new getters and setters:
#!div style="font-size: 80%" {{#!java public String getDescription() { return (tGetDataString(DESCRIPTION)); } public void setDescription(String description) { tSetDataString(DESCRIPTION, description); } }}
The UploadDialog, UpdateDialog and NewFolderDialog now have an additional multiline text input field. In the UpdateDialog this is preset with the description of the current DocumentVersion.
In the WebFolder a new column for the description has been added. This has a DescriptionColumnFieldProvider with a TextPopUpControlProvider, which allows editing the current document or WebFolder.
In the VersionDialog there is also an additional column for the Description, which displays the description of the respective DocumentVersion.\
The same applies to the SimilarDocumentsDialog.\
Test
Under Structures > Generated Root > A0 > Documents upload a document and enter a text inside the description field or upload without description and enter it only in the WebFolder under "Description" in the popup and confirm with "OK". The description should now be visible in the WebFolder. Then upload a new version of the document and enter a different description. Then check under Document Versions if both documents exist with their respective descriptions. Create a folder and give it a description. Check if the description is visible in the WebFolder.