It should be possible to add an optional comment (multiline) to a document when uploading it. The comment should be entered in the upload dialog.
When updating the document (creating a new version), the comment field should be pre-filled with the comment from the current version.
The display of documents via the WebFolderComponent should be extended so that the comment is displayed as a table column.
Subsequent changes to the comment should only be possible for the current version of the document. A document lock is set for the duration of the edit (similar to standard token-based locks).
In the “Document Versions” view, the comment should be displayable as a column.
Similar to documents, subfolders in a WebFolder should also be able to have descriptions. These should be optional when creating a new subfolder and should also be editable within the WebFolder.
Implementation
DocumentVersion and WebFolder read and write the description using 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 multi-line text input field. In the UpdateDialog, this field is pre-populated with the description of the current DocumentVersion.\\
A new column for the description has been added to the WebFolder. It uses a ` DescriptionColumnFieldProvider ` with a `TextPopUpControlProvider`, which allows editing of the current document or WebFolder.\\
The VersionDialog also has 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 text in the description field, or upload it without a description and then enter the description in the WebFolder under “Description” in the pop-up window 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. Afterward, check under Document Versions to see if both documents are present with their respective descriptions. Create a folder and give it a description. Check whether the description is visible in the WebFolder.