Commit ceae4aa06f313cb02d9f72f87f4fab673a1d27dd

Authored by Brad Shuttleworth
1 parent 303d9906

hide nbm's search-title work.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4991 c91229c3-7414-0410-bfa2-8a42b809f60b
search/booleanSearch.php
@@ -84,10 +84,11 @@ class BooleanSearchDispatcher extends KTStandardDispatcher { @@ -84,10 +84,11 @@ class BooleanSearchDispatcher extends KTStandardDispatcher {
84 $collection = new DocumentCollection; 84 $collection = new DocumentCollection;
85 $this->browseType = "Folder"; 85 $this->browseType = "Folder";
86 86
87 - $collection->addColumn(new SelectionColumn("Browse Selection","selection")); 87 + //$collection->addColumn(new SelectionColumn("Browse Selection","selection"));
88 $t =& new TitleColumn("Test 1 (title)","title"); 88 $t =& new TitleColumn("Test 1 (title)","title");
89 $t->setOptions(array('documenturl' => $GLOBALS['KTRootUrl'] . '/view.php')); 89 $t->setOptions(array('documenturl' => $GLOBALS['KTRootUrl'] . '/view.php'));
90 $collection->addColumn($t); 90 $collection->addColumn($t);
  91 + $collection->addColumn(new DownloadColumn('','download'));
91 $collection->addColumn(new DateColumn(_("Created"),"created", "getCreatedDateTime")); 92 $collection->addColumn(new DateColumn(_("Created"),"created", "getCreatedDateTime"));
92 $collection->addColumn(new DateColumn(_("Last Modified"),"modified", "getLastModifiedDate")); 93 $collection->addColumn(new DateColumn(_("Last Modified"),"modified", "getLastModifiedDate"));
93 $collection->addColumn(new UserColumn(_('Creator'),'creator_id','getCreatorID')); 94 $collection->addColumn(new UserColumn(_('Creator'),'creator_id','getCreatorID'));
search/simpleSearch.php
@@ -143,11 +143,16 @@ class SimpleSearchDispatcher extends KTStandardDispatcher { @@ -143,11 +143,16 @@ class SimpleSearchDispatcher extends KTStandardDispatcher {
143 $collection = new DocumentCollection; 143 $collection = new DocumentCollection;
144 $this->browseType = "Folder"; 144 $this->browseType = "Folder";
145 145
146 - $collection->addColumn(new SelectionColumn("Browse Selection","selection")); 146 + //$collection->addColumn(new SelectionColumn("Browse Selection","selection"));
  147 + /*
147 $t = new SimpleSearchTitleColumn("Test 1 (title)","title"); 148 $t = new SimpleSearchTitleColumn("Test 1 (title)","title");
148 $t->setOptions(array('documenturl' => $GLOBALS['KTRootUrl'] . '/view.php')); 149 $t->setOptions(array('documenturl' => $GLOBALS['KTRootUrl'] . '/view.php'));
149 $t->setSearch($searchable_text); 150 $t->setSearch($searchable_text);
  151 + */
  152 + $t =& new TitleColumn("Test 1 (title)","title");
  153 + $t->setOptions(array('documenturl' => $GLOBALS['KTRootUrl'] . '/view.php'));
150 $collection->addColumn($t); 154 $collection->addColumn($t);
  155 + $collection->addColumn(new DownloadColumn('','download'));
151 $collection->addColumn(new DateColumn(_("Created"),"created", "getCreatedDateTime")); 156 $collection->addColumn(new DateColumn(_("Created"),"created", "getCreatedDateTime"));
152 $collection->addColumn(new DateColumn(_("Last Modified"),"modified", "getLastModifiedDate")); 157 $collection->addColumn(new DateColumn(_("Last Modified"),"modified", "getLastModifiedDate"));
153 $collection->addColumn(new UserColumn(_('Creator'),'creator_id','getCreatorID')); 158 $collection->addColumn(new UserColumn(_('Creator'),'creator_id','getCreatorID'));