From 3830f2aaba775d5ceef05ddd94e524c5af3302af Mon Sep 17 00:00:00 2001 From: nbm Date: Tue, 29 Nov 2005 14:31:49 +0000 Subject: [PATCH] Tweak the columns - add creator and fix the path for the title column link. --- presentation/lookAndFeel/knowledgeTree/search/simpleSearch.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/search/simpleSearch.php b/presentation/lookAndFeel/knowledgeTree/search/simpleSearch.php index a46a39e..1e08d94 100644 --- a/presentation/lookAndFeel/knowledgeTree/search/simpleSearch.php +++ b/presentation/lookAndFeel/knowledgeTree/search/simpleSearch.php @@ -56,23 +56,17 @@ class SimpleSearchDispatcher extends KTStandardDispatcher { function do_main() { - // There's a fair amount here, so we want to break it down. - // we want: - // - folder_id - // - batch info. - // - (browse type)? - - - $collection = new DocumentCollection; $this->browseType = "Folder"; $collection->addColumn(new SelectionColumn("Browse Selection","selection")); - $collection->addColumn(new TitleColumn("Test 1 (title)","title")); + $t = new TitleColumn("Test 1 (title)","title"); + $t->setOptions(array('documenturl' => '../documentmanagement/view.php')); + $collection->addColumn($t); $collection->addColumn(new DateColumn("Created","created", "getCreatedDateTime")); $collection->addColumn(new DateColumn("Last Modified","modified", "getLastModifiedDate")); - $collection->addColumn(new BrowseColumn("Test 3","test3")); - $collection->addColumn(new BrowseColumn("Test 4","test4")); + $collection->addColumn(new DateColumn("Last Modified","modified", "getLastModifiedDate")); + $collection->addColumn(new UserColumn('Creator','creator_id','getCreatorID')); $searchable_text = KTUtil::arrayGet($_REQUEST, "fSearchableText"); -- libgit2 0.21.4