diff --git a/distribution/package-bin.sh b/distribution/package-bin.sh index 2a69c9aa..e2e638fa 100755 --- a/distribution/package-bin.sh +++ b/distribution/package-bin.sh @@ -9,8 +9,8 @@ BASE_DIR=`pwd` TARGET_DIR=$BASE_DIR/target JETTY_DIR=$TARGET_DIR/wisemapping-$WISE_VERSION WISE_WEBAPP_DIR=$JETTY_DIR/webapps/wisemapping -JETTY_DIST_DIR=jetty-distribution-8.1.4.v20120524.zip -JETTY_ZIP=${JETTY_DIST_DIR} +JETTY_DIST_DIR=jetty-distribution-8.1.4.v20120524 +JETTY_ZIP=${JETTY_DIST_DIR}.zip # Clean ... mvn -o -f $BASE_DIR/../pom.xml clean @@ -19,7 +19,7 @@ rm -fr ${JETTY_DIR} rm -fr ${TARGET_DIR}/${JETTY_DIST_DIR} # Prepare resources .. -mvn -o -f $BASE_DIR/../pom.xml install -Dmaven.test.skip=true +mvn -o -f $BASE_DIR/../pom.xml package -Dmaven.test.skip=true if [ ! -f ./target/${JETTY_ZIP} ] then @@ -30,16 +30,22 @@ fi echo "Unzip Jetty ...:" unzip ${TARGET_DIR}/${JETTY_ZIP} -d ${TARGET_DIR}/ > /dev/null mv ${TARGET_DIR}/${JETTY_DIST_DIR} ${JETTY_DIR} - + # Clean unsed files ... rm -rf $JETTY_DIR/webapps/* rm -rf $JETTY_DIR/contexts/* +rm -rf $JETTY_DIR/javadoc # Now, start wise-webapps customization ... echo "Unzip wisemappig.war ..." mkdir $WISE_WEBAPP_DIR unzip $BASE_DIR/../wise-webapp/target/wisemapping.war -d $WISE_WEBAPP_DIR >/dev/null +# DB Configuration ... +sed 's/target\/db\/wisemapping/webapps\/wisemapping\/WEB-INF\/database\/wisemapping/' $WISE_WEBAPP_DIR/WEB-INF/app.properties > $WISE_WEBAPP_DIR/WEB-INF/app.properties2 +mv $WISE_WEBAPP_DIR/WEB-INF/app.properties2 $WISE_WEBAPP_DIR/WEB-INF/app.properties + + mkdir $WISE_WEBAPP_DIR/WEB-INF/database cp -r $BASE_DIR/../wise-webapp/target/db/* $WISE_WEBAPP_DIR/WEB-INF/database/ cp $BASE_DIR/wisemapping.xml $JETTY_DIR/contexts/ diff --git a/mindplot/src/main/javascript/widget/Menu.js b/mindplot/src/main/javascript/widget/Menu.js index b46819a5..1facb287 100644 --- a/mindplot/src/main/javascript/widget/Menu.js +++ b/mindplot/src/main/javascript/widget/Menu.js @@ -207,7 +207,7 @@ mindplot.widget.Menu = new Class({ } this._addButton('export', false, false, function () { - var reqDialog = new MooDialog.Request('/c/iframeWrapper.htm?url=c/maps/' + mapId + "/exportf", null, + var reqDialog = new MooDialog.Request('c/iframeWrapper.htm?url=c/maps/' + mapId + "/exportf", null, {'class':'modalDialog exportModalDialog', closeButton:true, destroyOnClose:true, @@ -223,7 +223,7 @@ mindplot.widget.Menu = new Class({ this._registerTooltip('export', $msg('EXPORT')); this._addButton('print', false, false, function () { - window.open('/c/maps/' + mapId + '/print'); + window.open('c/maps/' + mapId + '/print'); }); this._registerTooltip('print', $msg('PRINT')); @@ -348,7 +348,7 @@ mindplot.widget.Menu = new Class({ var shareElem = $('shareIt'); if (shareElem) { this._addButton('shareIt', false, false, function () { - var reqDialog = new MooDialog.Request('/c/iframeWrapper?url=c/maps/' + mapId + "/sharef", null, + var reqDialog = new MooDialog.Request('c/iframeWrapper?url=c/maps/' + mapId + "/sharef", null, {'class':'modalDialog shareModalDialog', closeButton:true, destroyOnClose:true, @@ -368,7 +368,7 @@ mindplot.widget.Menu = new Class({ var publishElem = $('publishIt'); if (publishElem) { this._addButton('publishIt', false, false, function () { - var reqDialog = new MooDialog.Request('/c/iframeWrapper?url=c/maps/' + mapId + "/publishf", null, + var reqDialog = new MooDialog.Request('c/iframeWrapper?url=c/maps/' + mapId + "/publishf", null, {'class':'modalDialog publishModalDialog', closeButton:true, destroyOnClose:true, @@ -389,7 +389,7 @@ mindplot.widget.Menu = new Class({ if (historyElem) { this._addButton('history', false, false, function () { - var reqDialog = new MooDialog.Request('/c/iframeWrapper?url=c/maps/' + mapId + "/historyf", null, + var reqDialog = new MooDialog.Request('c/iframeWrapper?url=c/maps/' + mapId + "/historyf", null, {'class':'modalDialog historyModalDialog', closeButton:true, destroyOnClose:true, diff --git a/wise-webapp/src/main/webapp/js/mindmapList.js b/wise-webapp/src/main/webapp/js/mindmapList.js index 24d3cb21..8c7831cd 100644 --- a/wise-webapp/src/main/webapp/js/mindmapList.js +++ b/wise-webapp/src/main/webapp/js/mindmapList.js @@ -263,8 +263,8 @@ $(function() { $("#newBtn").click( function() { $("#new-dialog-modal").dialogForm({ - redirect: "/c/maps/{header.resourceId}/edit", - url : "../service/maps" + redirect: "c/maps/{header.resourceId}/edit", + url : "service/maps" }); }); @@ -283,8 +283,8 @@ $(function() { // Initialize dialog ... $("#duplicate-dialog-modal").dialogForm({ - redirect: "/c/maps/{header.resourceId}/edit", - url : "../service/maps/" + mapId + redirect: "c/maps/{header.resourceId}/edit", + url : "service/maps/" + mapId }); } }); @@ -318,7 +318,7 @@ $(function() { rowData.description = reqBodyData.description; dataTable.fnAddData(JSON.parse(JSON.stringify(rowData))); }, - url : "../service/maps/" + mapId + url : "service/maps/" + mapId }); } }); @@ -336,7 +336,7 @@ $(function() { // Remove old entry ... tableUI.dataTableExt.removeSelectedRows(); }, - url : "../service/maps/batch?ids=" + jQuery.makeArray(mapIds).join(',') + url : "service/maps/batch?ids=" + jQuery.makeArray(mapIds).join(',') }); } }); @@ -344,32 +344,32 @@ $(function() { $("#printBtn").click(function() { var mapIds = $('#mindmapListTable').dataTableExt.getSelectedMapsIds(); if (mapIds.length > 0) { - window.open('/c/maps/' + mapIds[0] + '/print'); + window.open('c/maps/' + mapIds[0] + '/print'); } }); $("#infoBtn").click(function() { - showEmbeddedDialog("/c/maps/{mapId}/details", 'info-dialog-modal'); + showEmbeddedDialog("c/maps/{mapId}/details", 'info-dialog-modal'); }); $("#historyBtn").click(function() { - showEmbeddedDialog("/c/maps/{mapId}/history", 'history-dialog-modal'); + showEmbeddedDialog("c/maps/{mapId}/history", 'history-dialog-modal'); }); $("#publishBtn").click(function() { - showEmbeddedDialog("/c/maps/{mapId}/publish", "publish-dialog-modal"); + showEmbeddedDialog("c/maps/{mapId}/publish", "publish-dialog-modal"); }); $("#exportBtn").click(function() { - showEmbeddedDialog("/c/maps/{mapId}/export", 'export-dialog-modal'); + showEmbeddedDialog("c/maps/{mapId}/export", 'export-dialog-modal'); }); $("#importBtn").click(function() { - showEmbeddedDialog("/c/maps/import", 'import-dialog-modal', true); + showEmbeddedDialog("c/maps/import", 'import-dialog-modal', true); }); $("#shareBtn").click(function() { - showEmbeddedDialog("/c/maps/{mapId}/share", 'share-dialog-modal', true); + showEmbeddedDialog("c/maps/{mapId}/share", 'share-dialog-modal', true); }); var showEmbeddedDialog = function(urlTemplate, dialogElemId, ignore) { @@ -397,7 +397,7 @@ $(function() { $('#foldersContainer .active i').addClass('icon-white'); // Reload the table data ... - dataTable.fnReloadAjax("../service/maps/?q=" + $(this).attr('data-filter'), callbackOnTableInit, true); + dataTable.fnReloadAjax("service/maps/?q=" + $(this).attr('data-filter'), callbackOnTableInit, true); event.preventDefault(); }); }); diff --git a/wise-webapp/src/main/webapp/jsp/mindmapEditorToolbar.jsf b/wise-webapp/src/main/webapp/jsp/mindmapEditorToolbar.jsf index f987dd2c..0d6ddf4c 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapEditorToolbar.jsf +++ b/wise-webapp/src/main/webapp/jsp/mindmapEditorToolbar.jsf @@ -4,97 +4,97 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
diff --git a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp index 5f4584fc..45744992 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp @@ -5,7 +5,7 @@ - + <spring:message code="SITE.TITLE"/>