Commit 3830f2aaba775d5ceef05ddd94e524c5af3302af

Authored by nbm
1 parent 7545ed81

Tweak the columns - add creator and fix the path for the title column

link.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4255 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/search/simpleSearch.php
@@ -56,23 +56,17 @@ class SimpleSearchDispatcher extends KTStandardDispatcher { @@ -56,23 +56,17 @@ class SimpleSearchDispatcher extends KTStandardDispatcher {
56 56
57 57
58 function do_main() { 58 function do_main() {
59 - // There's a fair amount here, so we want to break it down.  
60 - // we want:  
61 - // - folder_id  
62 - // - batch info.  
63 - // - (browse type)?  
64 -  
65 -  
66 -  
67 $collection = new DocumentCollection; 59 $collection = new DocumentCollection;
68 $this->browseType = "Folder"; 60 $this->browseType = "Folder";
69 61
70 $collection->addColumn(new SelectionColumn("Browse Selection","selection")); 62 $collection->addColumn(new SelectionColumn("Browse Selection","selection"));
71 - $collection->addColumn(new TitleColumn("Test 1 (title)","title")); 63 + $t = new TitleColumn("Test 1 (title)","title");
  64 + $t->setOptions(array('documenturl' => '../documentmanagement/view.php'));
  65 + $collection->addColumn($t);
72 $collection->addColumn(new DateColumn("Created","created", "getCreatedDateTime")); 66 $collection->addColumn(new DateColumn("Created","created", "getCreatedDateTime"));
73 $collection->addColumn(new DateColumn("Last Modified","modified", "getLastModifiedDate")); 67 $collection->addColumn(new DateColumn("Last Modified","modified", "getLastModifiedDate"));
74 - $collection->addColumn(new BrowseColumn("Test 3","test3"));  
75 - $collection->addColumn(new BrowseColumn("Test 4","test4")); 68 + $collection->addColumn(new DateColumn("Last Modified","modified", "getLastModifiedDate"));
  69 + $collection->addColumn(new UserColumn('Creator','creator_id','getCreatorID'));
76 70
77 $searchable_text = KTUtil::arrayGet($_REQUEST, "fSearchableText"); 71 $searchable_text = KTUtil::arrayGet($_REQUEST, "fSearchableText");
78 72