From 3436bff364c6fc7f477f688e7e3a567cd8221895 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Fri, 25 Nov 2016 09:15:49 +0000 Subject: [PATCH] added header param for catalogue requests git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/liferay62-plugins/d4science-responsive-theme@134748 82a268e6-3cf1-43bd-a215-b396298e98cf --- src/main/webapp/WEB-INF/liferay-plugin-package.properties | 2 +- src/main/webapp/js/gcube-context.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/WEB-INF/liferay-plugin-package.properties b/src/main/webapp/WEB-INF/liferay-plugin-package.properties index 5fdd6b2..46d6d5f 100644 --- a/src/main/webapp/WEB-INF/liferay-plugin-package.properties +++ b/src/main/webapp/WEB-INF/liferay-plugin-package.properties @@ -1,6 +1,6 @@ name=d4science-responsive-theme module-group-id=liferay -module-incremental-version=3 +module-incremental-version=5 tags= short-description= change-log= diff --git a/src/main/webapp/js/gcube-context.js b/src/main/webapp/js/gcube-context.js index cca493d..f3d7d1d 100644 --- a/src/main/webapp/js/gcube-context.js +++ b/src/main/webapp/js/gcube-context.js @@ -11,7 +11,7 @@ function injectClientContext() { if (Liferay.ThemeDisplay.isSignedIn()) { userId = Liferay.ThemeDisplay.getUserId(); groupId = Liferay.ThemeDisplay.getScopeGroupId(); - console.log("D4S groupId is = " + groupId); + console.log("groupid is = " + groupId); } else { groupId = Liferay.ThemeDisplay.getScopeGroupId(); @@ -22,6 +22,7 @@ function injectClientContext() { var newSend = function(vData) { this.setRequestHeader("gcube-userId", userId); this.setRequestHeader("gcube-vreid", groupId); + this.setRequestHeader("gcube-request-url", location.href); this.realSend(vData); }; XMLHttpRequest.prototype.send = newSend;