-
Type:
Service Pack Request
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 4.0.2, 4.2.2
-
Fix Version/s: 4.2.3
-
Component/s: Share Extensions and Customisations
-
Labels:None
-
Bug Priority:
-
ACT Numbers:
00160959 Premier
-
Build Location:
This happens to both folders and documents.
[Steps]
1. Copy the entire section of <config evaluator="node-type" condition="cm:content"> from share-form-config.xml to share-config-custom.xml.
2. Under the <appearance> section, create a <set .../> and add some properties from an aspect, say, cm:dublincore, underneath it.
3. Start Alfresco and Share
4. Log into Share, upload a text file and click on "View Details" to view the details of the file. Also try edit its metadata.
[Expected result]
Since the aspect cm:dublincore has not yet been applied to the folder, Share's Preview Page and Edit Metadata page don't show any cm:dublincore properties, in this case, the set's title should not be rendered on both the Preview page and Edit Metadata page. Think from and UX's point of view, the end users wouldn't want to display a header title with no content in it.
[Actual result]
The set's title is still displayed on both Preview and Edit Metadata page in Share, even it is empty inside.
The example mentioned above is copied here, which you can use to reproduce the issue:
<!-- cm:content type (existing nodes) --> <config evaluator="node-type" condition="cm:content" replace="true"> <forms> <!-- Default form configuration for the cm:content type --> <form> <field-visibility> <show id="cm:name" /> <show id="cm:title" force="true" /> <show id="cm:description" force="true" /> <show id="mimetype" /> <show id="cm:author" force="true" /> <show id="size" for-mode="view" /> <show id="cm:creator" for-mode="view" /> <show id="cm:created" for-mode="view" /> <show id="cm:modifier" for-mode="view" /> <show id="cm:modified" for-mode="view" /> <!-- tags and categories --> <show id="cm:taggable" for-mode="edit" force="true" /> <show id="cm:categories" /> <!-- cm:dublincore aspect --> <show id="cm:publisher"/> <show id="cm:contributor"/> <show id="cm:type"/> <show id="cm:identifier"/> <show id="cm:dcsource"/> <show id="cm:coverage"/> <show id="cm:rights"/> <show id="cm:subject"/> <!-- cm:complianceable aspect --> <show id="cm:removeAfter" /> <!-- cm:effectivity aspect --> <show id="cm:from"/> <show id="cm:to"/> <!-- cm:summarizable aspect --> <show id="cm:summary" /> <!-- cm:translatable aspect --> <show id="cm:translations" /> <!-- cm:localizable aspect --> <show id="cm:locale" /> <!-- cm:ownable aspect --> <show id="cm:owner" /> <!-- cm:attachable aspect --> <show id="cm:attachments" /> <!-- cm:emailed aspect --> <show id="cm:originator" /> <show id="cm:addressee" /> <show id="cm:addressees" /> <show id="cm:sentdate" /> <show id="cm:subjectline" /> <!-- exif:exif aspect --> <show id="exif:dateTimeOriginal" /> <show id="exif:pixelXDimension" /> <show id="exif:pixelYDimension" /> <show id="exif:exposureTime" /> <show id="exif:fNumber" /> <show id="exif:flash" /> <show id="exif:focalLength" /> <show id="exif:isoSpeedRatings" /> <show id="exif:manufacturer" /> <show id="exif:model" /> <show id="exif:software" /> <show id="exif:orientation" /> <show id="exif:xResolution" /> <show id="exif:yResolution" /> <show id="exif:resolutionUnit" /> <!-- audio:audio aspect --> <show id="audio:album" /> <show id="audio:artist" /> <show id="audio:composer" /> <show id="audio:engineer" /> <show id="audio:genre" /> <show id="audio:trackNumber" /> <show id="audio:releaseDate" /> <show id="audio:sampleRate" /> <show id="audio:sampleType" /> <show id="audio:channelType" /> <show id="audio:compressor" /> <!-- cm:indexControl aspect --> <show id="cm:isIndexed" /> <show id="cm:isContentIndexed" /> <!-- cm:geographic aspect --> <show id="cm:latitude" /> <show id="cm:longitude" /> <!-- surf:widget aspect --> <show id="surf:widgetType"/> <show id="surf:mid"/> <show id="surf:label"/> </field-visibility> <appearance> <field id="cm:name"> <control> <control-param name="maxLength">255</control-param> </control> </field> <field id="cm:title"> <control template="/org/alfresco/components/form/controls/textfield.ftl" /> </field> <field id="cm:description"> <control> <control-param name="activateLinks">true</control-param> </control> </field> <field id="mimetype"> <control template="/org/alfresco/components/form/controls/mimetype.ftl" /> </field> <field id="size"> <control template="/org/alfresco/components/form/controls/size.ftl" /> </field> <field id="cm:taggable"> <control> <control-param name="compactMode">true</control-param> <control-param name="params">aspect=cm:taggable</control-param> <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param> <control-param name="createNewItemIcon">tag</control-param> </control> </field> <field id="cm:categories"> <control> <control-param name="compactMode">true</control-param> </control> </field> <field id="cm:originator" read-only="true" /> <field id="cm:addressee" read-only="true" /> <field id="cm:addressees" read-only="true" /> <field id="cm:sentdate" read-only="true" /> <field id="cm:subjectline" read-only="true" /> <set id="mySet" appearance="title" label="My Set" /> <field id="cm:subject" set="mySet"> <control template="/org/alfresco/components/form/controls/textarea.ftl"> <control-param name="rows">10</control-param> </control> </field> <field id="cm:publisher" set="mySet"> <control> <control-param name="maxLength">255</control-param> </control> </field> <set id="mySet2" appearance="title" label="My Set 2" /> <field id="cm:contributor" set="mySet2" /> <field id="cm:type" set="mySet2" /> </appearance> </form> <!-- Document Library pop-up Edit Metadata form --> <form id="doclib-simple-metadata"> <field-visibility> <show id="cm:name" /> <show id="cm:title" force="true" /> <show id="cm:description" force="true" /> <!-- tags and categories --> <show id="cm:taggable" for-mode="edit" force="true" /> <show id="cm:categories" /> </field-visibility> <edit-form template="../documentlibrary/forms/doclib-simple-metadata.ftl" /> <appearance> <field id="cm:name"> <control> <control-param name="maxLength">255</control-param> </control> </field> <field id="cm:title"> <control template="/org/alfresco/components/form/controls/textfield.ftl" /> </field> <field id="cm:description"> <control> <control-param name="activateLinks">true</control-param> </control> </field> <field id="cm:taggable"> <control> <control-param name="compactMode">true</control-param> <control-param name="params">aspect=cm:taggable</control-param> <control-param name="createNewItemUri">/api/tag/workspace/SpacesStore</control-param> <control-param name="createNewItemIcon">tag</control-param> </control> </field> <field id="cm:categories"> <control> <control-param name="compactMode">true</control-param> </control> </field> </appearance> </form> <!-- Document Library Inline Edit form --> <form id="doclib-inline-edit"> <field-visibility> <show id="cm:name" /> <show id="cm:title" force="true" /> <show id="cm:description" force="true" /> <show id="cm:content" force="true" /> </field-visibility> <appearance> <field id="cm:name"> <control> <control-param name="maxLength">255</control-param> </control> </field> <field id="cm:title"> <control template="/org/alfresco/components/form/controls/textfield.ftl" /> </field> <field id="cm:content"> <control> <control-param name="editorAppearance">explorer</control-param> <control-param name="forceEditor">true</control-param> </control> </field> </appearance> </form> </forms> </config>