diff --git a/config/alfresco/extension/web-client-config-custom.xml.sample b/config/alfresco/extension/web-client-config-custom.xml.sample index fcaf522a8f..712964539a 100644 --- a/config/alfresco/extension/web-client-config-custom.xml.sample +++ b/config/alfresco/extension/web-client-config-custom.xml.sample @@ -68,11 +68,8 @@ - - - diff --git a/config/alfresco/messages/webclient.properties b/config/alfresco/messages/webclient.properties index c99047e075..3f73c06744 100644 --- a/config/alfresco/messages/webclient.properties +++ b/config/alfresco/messages/webclient.properties @@ -635,6 +635,7 @@ edit_rule_desc=This wizard helps you modify a rule. edit_rule_finish_instruction=To update the rule click Finish. To review or change your selections click Back. select_action=Select Action select_an_action=Select an action... +select_a_type=Select a type... action=Action action_settings=Action Settings set_action_values=Set action values diff --git a/config/alfresco/web-client-config-properties.xml b/config/alfresco/web-client-config-properties.xml index 762489503e..e7afc96f0f 100644 --- a/config/alfresco/web-client-config-properties.xml +++ b/config/alfresco/web-client-config-properties.xml @@ -5,21 +5,27 @@ + + + + - + + + + + + + + + + + + + + + + + + + + + @@ -138,12 +162,6 @@ - - - - - - diff --git a/config/alfresco/web-client-config.xml b/config/alfresco/web-client-config.xml index 441149f6f9..00d737eccd 100644 --- a/config/alfresco/web-client-config.xml +++ b/config/alfresco/web-client-config.xml @@ -193,7 +193,7 @@ - + diff --git a/source/java/org/alfresco/web/bean/actions/BaseActionWizard.java b/source/java/org/alfresco/web/bean/actions/BaseActionWizard.java index f62a63863a..dd05c0ddb5 100644 --- a/source/java/org/alfresco/web/bean/actions/BaseActionWizard.java +++ b/source/java/org/alfresco/web/bean/actions/BaseActionWizard.java @@ -329,10 +329,8 @@ public abstract class BaseActionWizard extends BaseWizardBean // add the well known object type to start with this.objectTypes = new ArrayList(5); - this.objectTypes.add(new SelectItem(ContentModel.TYPE_CONTENT.toString(), - Application.getMessage(context, "content"))); - // add any configured content sub-types to the list + // add any configured content or folder sub-types to the list ConfigService svc = Application.getConfigService(FacesContext.getCurrentInstance()); Config wizardCfg = svc.getConfig("Action Wizards"); if (wizardCfg != null) @@ -345,8 +343,13 @@ public abstract class BaseActionWizard extends BaseWizardBean QName idQName = Repository.resolveToQName(child.getAttribute("name")); TypeDefinition typeDef = this.dictionaryService.getType(idQName); + // make sure the type is a subtype of content or folder but not + // the content or folder type itself if (typeDef != null && - this.dictionaryService.isSubClass(typeDef.getName(), ContentModel.TYPE_CONTENT)) + typeDef.getName().equals(ContentModel.TYPE_CONTENT) == false && + typeDef.getName().equals(ContentModel.TYPE_FOLDER) == false && + (this.dictionaryService.isSubClass(typeDef.getName(), ContentModel.TYPE_CONTENT) || + this.dictionaryService.isSubClass(typeDef.getName(), ContentModel.TYPE_FOLDER))) { // try and get the display label from config String label = Utils.getDisplayLabel(context, child); @@ -370,6 +373,10 @@ public abstract class BaseActionWizard extends BaseWizardBean // make sure the list is sorted by the label QuickSort sorter = new QuickSort(this.objectTypes, "label", true, IDataContainer.SORT_CASEINSENSITIVE); sorter.sort(); + + // add the select an action item at the start of the list + this.objectTypes.add(0, new SelectItem("null", + Application.getMessage(FacesContext.getCurrentInstance(), "select_a_type"))); } else { diff --git a/source/web/jsp/actions/specialise-type.jsp b/source/web/jsp/actions/specialise-type.jsp index 443b807e67..2c8f381d63 100644 --- a/source/web/jsp/actions/specialise-type.jsp +++ b/source/web/jsp/actions/specialise-type.jsp @@ -26,6 +26,20 @@ + + <%-- load a bundle of properties with I18N strings --%> @@ -105,7 +119,8 @@ - + @@ -120,7 +135,8 @@
- +