mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Added type filter query. Missing file from previous check-in.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10409 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -90,3 +90,17 @@ function getFilterParams(filter, obj)
|
||||
|
||||
return filterParams;
|
||||
}
|
||||
|
||||
const TYPE_MAP = {
|
||||
"documents": '+TYPE:"{http://www.alfresco.org/model/content/1.0}content"',
|
||||
|
||||
"folders": '+TYPE:"{http://www.alfresco.org/model/content/1.0}folder"',
|
||||
|
||||
"images": "+@cm\\:content.mimetype:image/*",
|
||||
};
|
||||
|
||||
function getTypeFilterQuery(type)
|
||||
{
|
||||
return TYPE_MAP[type] || "";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user