diff --git a/config/alfresco/templates/webscripts/org/alfresco/office/myAlfresco.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/office/myAlfresco.get.html.ftl
index e6770938bf..beadc381ac 100644
--- a/config/alfresco/templates/webscripts/org/alfresco/office/myAlfresco.get.html.ftl
+++ b/config/alfresco/templates/webscripts/org/alfresco/office/myAlfresco.get.html.ftl
@@ -26,7 +26,7 @@
<#if res.isDocument>
+ <#assign relativePath = (res.displayPath?substring(companyhome.name?length+1) + '/' + res.name)?url?replace('%2F', '/')?replace('\'', '\\\'') />
<#if res.name?ends_with(extn) || res.name?ends_with(extnx)>
- <#assign relativePath = (res.displayPath?substring(companyhome.name?length+1) + '/' + res.name)?url?replace('%2F', '/')?replace('\'', '\\\'') />
-  |
+  |
${res.name}
- |
<#else>
-  |
+  |
${res.name}
- |
#if>
+
+ Modified: ${res.properties.modified?datetime} (${(res.size / 1024)?int}Kb)
+ <#if res.isLocked >
+
+ <#elseif hasAspect(res, "cm:workingcopy") == 1>
+
+ <#else>
+
+ #if>
+
+ <#if !res.name?ends_with(".pdf")>
+
+ #if>
+
<#else>
 |
diff --git a/config/alfresco/templates/webscripts/org/alfresco/office/search.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/office/search.get.html.ftl
index acd3b73068..aa6ed8e857 100644
--- a/config/alfresco/templates/webscripts/org/alfresco/office/search.get.html.ftl
+++ b/config/alfresco/templates/webscripts/org/alfresco/office/search.get.html.ftl
@@ -2,7 +2,7 @@
<#if args.n?exists><#assign node=args.n><#else><#assign node=companyhome>#if>
<#if args.e?exists><#assign extn=args.e><#else><#assign extn="doc">#if><#assign extnx=extn+"x">
<#if args.n?exists><#assign nav=args.n><#else><#assign nav="">#if>
-<#assign searchCommand="OfficeSearch.runSearch('${url.serviceContext}/office/searchResults', '${path}&e=${extn}')" >
+<#assign searchCommand="OfficeSearch.runSearch('${url.serviceContext}/office/searchResults', '${path?url}&e=${extn}')" >
<#if (args.searchagain?exists)><#assign searchText=args.searchagain><#else><#assign searchText="">#if>
<#if (args.maxresults?exists)><#assign maxResults=args.maxresults><#else><#assign maxResults="5">#if>
diff --git a/config/alfresco/templates/webscripts/org/alfresco/office/searchResults.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/office/searchResults.get.html.ftl
index 890bfc9201..3d564382c3 100644
--- a/config/alfresco/templates/webscripts/org/alfresco/office/searchResults.get.html.ftl
+++ b/config/alfresco/templates/webscripts/org/alfresco/office/searchResults.get.html.ftl
@@ -1,3 +1,5 @@
+<#assign doc_actions="${url.serviceContext}/office/docActions">
+<#if args.p?exists><#assign path=args.p><#else><#assign path="">#if>
<#if args.e?exists><#assign extn=args.e><#else><#assign extn="doc">#if><#assign extnx=extn+"x">
<#if args.search?exists>
<#assign searchString = args.search>
@@ -28,8 +30,8 @@
<#list results as child>
<#assign resCount=resCount + 1>
<#if child.isDocument>
+ <#assign relativePath = (child.displayPath?substring(companyhome.name?length+1) + '/' + child.name)?url?replace('%2F', '/')?replace('\'', '\\\'') />
<#if child.name?ends_with(extn) || child.name?ends_with(extnx)>
- <#assign relativePath = (child.displayPath?substring(companyhome.name?length+1) + '/' + child.name)?url?replace('%2F', '/')?replace('\'', '\\\'') />
<#assign openURL = "#">
<#assign hrefExtra = " onClick=\"window.external.openDocument('${relativePath}')\"">
<#else>
@@ -53,6 +55,21 @@
#if>
<#if child.isDocument>
Modified: ${child.properties.modified?datetime} (${(child.size / 1024)?int}Kb)
+ <#if child.isLocked >
+
+ <#elseif hasAspect(child, "cm:workingcopy") == 1>
+
+ <#else>
+
+ #if>
+
+
+ <#if !child.name?ends_with(".pdf")>
+
+ #if>
+ <#if !child.isLocked>
+
+ #if>
#if>
diff --git a/source/web/css/office.css b/source/web/css/office.css
index ab494340fb..88aeda11df 100644
--- a/source/web/css/office.css
+++ b/source/web/css/office.css
@@ -27,6 +27,7 @@ body {
a {
color: #0073e6;
text-decoration: none;
+ outline: none;
}
a img {
diff --git a/source/web/scripts/office/my_tasks.js b/source/web/scripts/office/my_tasks.js
index 52dc74b916..b11f4159fe 100644
--- a/source/web/scripts/office/my_tasks.js
+++ b/source/web/scripts/office/my_tasks.js
@@ -228,6 +228,21 @@ var OfficeMyTasks =
myAjax.request();
},
+ /* AJAX call to perform server-side actions */
+ runAction: function(useTemplate, Action, Doc, Msg)
+ {
+ // Re-select a selected task after reload
+ var taskSel = $E('#taskList .taskItemSelected');
+ var extraParams = "";
+ if (taskSel != null)
+ {
+ var taskId = taskSel.id;
+ extraParams = "t=" + encodeURI(taskId);
+ }
+
+ OfficeAddin.runAction(useTemplate, Action, Doc, Msg, extraParams);
+ },
+
refreshPage: function()
{
// Remove any trailing hash
diff --git a/source/web/scripts/office/office_addin.js b/source/web/scripts/office/office_addin.js
index 0d53d50407..afa5a5d0f3 100644
--- a/source/web/scripts/office/office_addin.js
+++ b/source/web/scripts/office/office_addin.js
@@ -91,7 +91,7 @@ var OfficeAddin =
},
/* AJAX call to perform server-side actions */
- runAction: function(useTemplate, Action, Doc, Msg)
+ runAction: function(useTemplate, Action, Doc, Msg, extraParams)
{
if (Msg != "" && !confirm(Msg))
{
@@ -114,6 +114,7 @@ var OfficeAddin =
{
href += (href.indexOf("?") == -1) ? "?" : "&";
href += "st=" + encodeURI(textResponse);
+ href += "&" + extraParams;
}
window.location.href = href;
}
|