Bug 117942

Summary: Folder browsing enhancement : display folder items and folder tree in an alphabetical order
Product: [Retired] Red Hat Enterprise CMS Reporter: durnez <vdurnez>
Component: uiAssignee: ccm-bugs-list
Status: CLOSED WONTFIX QA Contact: Jon Orris <jorris>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-05 17:29:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description durnez 2004-03-10 09:38:30 UTC
Description of problem:

Current CMS 6 does not display sort items in any intuitive manner.

Following modifications allow to :
1.
display items within a folder in an alphabetical order, sorted by
name, case insensitive.
(admin ui : content section page, 'browse' tab : right part :
paginated display)

2. 
display folder tree in an alphabetical order, sorted by label, case
insensitive.
(admin ui : content section page, 'browse' tab : left part)



Code modifications for point 1 (in CMS) :
in com.arsdigita.cms.ui.folder.FolderBrowser.getTotalSize(Paginator,
PageState) :
replace line :
itemColl.addOrder("item.name");
by line :
itemColl.setOrder("lower(item.name)");

Note : original line resulted in a query that sorts the following way
: order by st_.is_folder desc, st_.item_id desc, st_.name


Code modifications for point 2 (CMS) :
in pdl/com/arsdigita/content-section/Folder-queries.ora.pdl :
in query getSubFolders, 
after line :
     group by f.label, f.folder_id
add :
     order by lower(f.label)

in query getSubFoldersWithPermissions,
after line :
      group by f.label, f.folder_id
add :
     order by lower(f.label)

Do the same also for postgre.

Comment 1 Jon Orris 2006-09-05 17:29:54 UTC
Closing old tickets