From 7644596c74e14c7063cc80fd207816b39274bf17 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Wed, 23 May 2007 12:25:04 +0000 Subject: [PATCH] The Import dialog now allows ZIP file structure import into the repo from the web-client by any user with Write access to a folder - this is nice quick way for any user to import bulk data without using an FTP client or CIFS folder access. Import action moved to top-level in the main browse screen now it is useful on a day-to-day basis. The 'import' repository action (ImporterActionExecuter) extended to support import of any zip flavour file. More zip flavour filetypes added to mimetype map. Improved debugging output added to BasePathResultsMap for xpaths executed in templates. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5760 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/messages/webclient.properties | 6 +- config/alfresco/web-client-config-actions.xml | 1 + .../org/alfresco/web/bean/ImportBean.java | 42 ++++++--- .../web/bean/wcm/ImportWebsiteDialog.java | 90 +------------------ source/web/WEB-INF/faces-config-beans.xml | 4 + .../web/WEB-INF/faces-config-navigation.xml | 17 +--- source/web/jsp/dialog/import.jsp | 2 +- 7 files changed, 46 insertions(+), 116 deletions(-) diff --git a/config/alfresco/messages/webclient.properties b/config/alfresco/messages/webclient.properties index e7a33d1194..c861121956 100644 --- a/config/alfresco/messages/webclient.properties +++ b/config/alfresco/messages/webclient.properties @@ -639,8 +639,10 @@ run_export_in_background=Run export in background export_error_info=If this option is selected the export will be performed in the background so the results may not appear immediately. You may also want to monitor the server console and log files for errors. # Import messages -import_info=Imports an Alfresco content package file into the repository. -import_package_description=Alfresco content package +import_info=Imports an Alfresco Content Package or ZIP format file into the repository. +import_acp_description=Alfresco content package +import_zip_description=Archive package +locate_acp_upload=Locate the .acp or .zip file to upload run_import_in_background=Run import in background import_error_info=If this option is selected the import will be performed in the background so the results may not appear immediately. You may also want to monitor the server console and log files for errors. diff --git a/config/alfresco/web-client-config-actions.xml b/config/alfresco/web-client-config-actions.xml index b0d671491a..279d5f497d 100644 --- a/config/alfresco/web-client-config-actions.xml +++ b/config/alfresco/web-client-config-actions.xml @@ -710,6 +710,7 @@ + diff --git a/source/web/WEB-INF/faces-config-navigation.xml b/source/web/WEB-INF/faces-config-navigation.xml index 9ca9ea9ac1..57e26a4578 100644 --- a/source/web/WEB-INF/faces-config-navigation.xml +++ b/source/web/WEB-INF/faces-config-navigation.xml @@ -69,7 +69,10 @@ addTranslation /jsp/ml/add-translation-dialog.jsp - + + import + /jsp/dialog/import.jsp + @@ -222,10 +225,6 @@ showNodeBrowser /jsp/admin/store-browser.jsp - - import - /jsp/dialog/import.jsp - export /jsp/dialog/export.jsp @@ -294,10 +293,6 @@ manageRules /jsp/dialog/rules.jsp - - import - /jsp/dialog/import.jsp - export /jsp/dialog/export.jsp @@ -834,10 +829,6 @@ manageInvitedUsers /jsp/roles/manage-invited-users.jsp - - import - /jsp/dialog/import.jsp - export /jsp/dialog/export.jsp diff --git a/source/web/jsp/dialog/import.jsp b/source/web/jsp/dialog/import.jsp index 819d296b3e..7109491462 100644 --- a/source/web/jsp/dialog/import.jsp +++ b/source/web/jsp/dialog/import.jsp @@ -114,7 +114,7 @@ - +
1. 1.