mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Added placeholder doclib script, updated personsearch to call profile dialog
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7576 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
<webscript>
|
||||||
|
<shortname>DocLib Custom View</shortname>
|
||||||
|
<description>Collaboration Document Library view</description>
|
||||||
|
<url>/collaboration/docLibrary?nodeRef={noderef}</url>
|
||||||
|
<format default="html"/>
|
||||||
|
<authentication>user</authentication>
|
||||||
|
<transaction>required</transaction>
|
||||||
|
</webscript>
|
@@ -0,0 +1,84 @@
|
|||||||
|
<#assign doclib = companyhome.nodeByReference[args["nodeRef"]]>
|
||||||
|
<table id="collabContainer" cellspacing="0" cellpadding="2" width="100%">
|
||||||
|
<tr>
|
||||||
|
<td valign="top">
|
||||||
|
|
||||||
|
<div class="collabHeader">
|
||||||
|
<span>Recent Changes</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="collabContent">
|
||||||
|
|
||||||
|
<table width="100%" cellpadding="16" cellspacing="0">
|
||||||
|
<tr valign="top">
|
||||||
|
<td>
|
||||||
|
<#list doclib.childrenByXPath[".//*[subtypeOf('cm:content')]"] as child>
|
||||||
|
<#if (dateCompare(child.properties["cm:modified"], date, 1000*60*60*24*7) == 1) || (dateCompare(child.properties["cm:created"], date, 1000*60*60*24*7) == 1)>
|
||||||
|
<div class="docLib">
|
||||||
|
<a href="${url.context}${child.url}" target="new"><img src="${url.context}${child.icon16}" border=0></a>
|
||||||
|
<div class="docLibName">
|
||||||
|
<a href="${url.context}${child.url}" target="new">${child.properties.name}</a>
|
||||||
|
</div>
|
||||||
|
<div class="docLibProperty">
|
||||||
|
<#if dateCompare(child.properties["cm:modified"], child.properties["cm:created"], 100, "==") == 1>
|
||||||
|
Created
|
||||||
|
<#else>
|
||||||
|
Modified
|
||||||
|
</#if>
|
||||||
|
</div>
|
||||||
|
<div class="docLibProperty">
|
||||||
|
${child.properties["cm:modified"]?datetime}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</#if>
|
||||||
|
</#list>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="collabFooter">
|
||||||
|
<span> </span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
/* Main Container elements */
|
||||||
|
#collabContainer {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.collabHeader {
|
||||||
|
background: url(${url.context}/images/parts/collab_topleft.png) no-repeat left top;
|
||||||
|
margin: 0px -1px;
|
||||||
|
padding: 0px 0px 0px 8px;
|
||||||
|
}
|
||||||
|
.collabHeader span {
|
||||||
|
background: url(${url.context}/images/parts/collab_topright.png) no-repeat right top;
|
||||||
|
display: block;
|
||||||
|
float: none;
|
||||||
|
padding: 5px 15px 4px 6px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 10pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.collabContent {
|
||||||
|
border-left: 1px solid #B9BEC4;
|
||||||
|
border-right: 1px solid #B9BEC4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.collabFooter {
|
||||||
|
background: url(${url.context}/images/parts/collab_bottomleft.png) no-repeat left top;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px 0px 0px 4px;
|
||||||
|
}
|
||||||
|
.collabFooter span {
|
||||||
|
background: url(${url.context}/images/parts/collab_bottomright.png) no-repeat right top;
|
||||||
|
display: block;
|
||||||
|
float: none;
|
||||||
|
padding: 5px 15px 4px 6px;
|
||||||
|
}
|
||||||
|
</style>
|
@@ -26,7 +26,7 @@
|
|||||||
<#list search.results as row>
|
<#list search.results as row>
|
||||||
<entry>
|
<entry>
|
||||||
<title>${row.properties.firstName} ${row.properties.lastName}</title>
|
<title>${row.properties.firstName} ${row.properties.lastName}</title>
|
||||||
<link rel="alternate" href="${absurl(url.serviceContext)}"/>
|
<link rel="alternate" href="${absurl(url.context)}/c/ui/userprofile?id=${row.id}"/>
|
||||||
<#if row.assocs["cm:avatar"]?exists>
|
<#if row.assocs["cm:avatar"]?exists>
|
||||||
<icon>${absurl(url.context)}${row.assocs["cm:avatar"][0].url}</icon>
|
<icon>${absurl(url.context)}${row.assocs["cm:avatar"][0].url}</icon>
|
||||||
<#else>
|
<#else>
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<#list search.results as row>
|
<#list search.results as row>
|
||||||
<tr>
|
<tr>
|
||||||
<td><img src="${url.context}${row.assocs[\"cm:avatar\"][0].url}"/></td><td>${row.firstName} ${row.lastName}</td>
|
<td><img src="${url.context}${row.assocs[\"cm:avatar\"][0].url}"/></td><td><a href="${absurl(url.context)}/c/ui/userprofile?id=${row.id}">${row.firstName} ${row.lastName}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<table>
|
<table>
|
||||||
<#list search.results as row>
|
<#list search.results as row>
|
||||||
<tr>
|
<tr>
|
||||||
<td><img src="${url.context}${row.assocs[\"cm:avatar\"][0].url}"/></td><td>${row.firstName} ${row.lastName}</td>
|
<td><img src="${url.context}${row.assocs[\"cm:avatar\"][0].url}"/></td><td><a href="${absurl(url.context)}/c/ui/userprofile?id=${row.id}">${row.firstName} ${row.lastName}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
<#list search.results as row>
|
<#list search.results as row>
|
||||||
<item>
|
<item>
|
||||||
<title>${row.firstName} ${row.lastName}</title>
|
<title>${row.firstName} ${row.lastName}</title>
|
||||||
<link>${absurl(url.serviceContext)}</link>
|
<link>${absurl(url.context)}/c/ui/userprofile?id=${row.id}</link>
|
||||||
<description>
|
<description>
|
||||||
<#if row.properties.jobtitle??>${row.properties.jobtitle},</#if>
|
<#if row.properties.jobtitle??>${row.properties.jobtitle},</#if>
|
||||||
<#if row.properties.organization??>${row.properties.organization},</#if>
|
<#if row.properties.organization??>${row.properties.organization},</#if>
|
||||||
|
Reference in New Issue
Block a user