Bug 117942 - Folder browsing enhancement : display folder items and folder tree in an alphabetical order
Summary: Folder browsing enhancement : display folder items and folder tree in an alph...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise CMS
Classification: Retired
Component: ui
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: ccm-bugs-list
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-10 09:38 UTC by durnez
Modified: 2007-04-18 17:04 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-05 17:29:54 UTC
Embargoed:


Attachments (Terms of Use)

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





Note You need to log in before you can comment on or make changes to this bug.