Commit 8a266b6cf1a05a22ec9531af7e54ab59b0e8b46d
1 parent
2b7fb06b
Set (basic) breadcrumb information, and don't manually implement
handleOutput. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4251 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
7 additions
and
17 deletions
presentation/lookAndFeel/knowledgeTree/search/booleanSearch.php
| @@ -12,18 +12,15 @@ require_once(KT_LIB_DIR . "/visualpatterns/PatternBrowsableSearchResults.inc"); | @@ -12,18 +12,15 @@ require_once(KT_LIB_DIR . "/visualpatterns/PatternBrowsableSearchResults.inc"); | ||
| 12 | require_once(KT_LIB_DIR . "/search/savedsearch.inc.php"); | 12 | require_once(KT_LIB_DIR . "/search/savedsearch.inc.php"); |
| 13 | require_once(KT_LIB_DIR . '/search/searchutil.inc.php'); | 13 | require_once(KT_LIB_DIR . '/search/searchutil.inc.php'); |
| 14 | 14 | ||
| 15 | -// specific includes | ||
| 16 | - | ||
| 17 | -$sectionName = "General"; | ||
| 18 | -require_once(KT_DIR . "/presentation/webpageTemplate.inc"); | ||
| 19 | - | ||
| 20 | -/* | ||
| 21 | - * example code - tests the frontend behaviour. remember to check ajaxConditional.php | ||
| 22 | - * | ||
| 23 | - */ | ||
| 24 | - | ||
| 25 | class BooleanSearchDispatcher extends KTStandardDispatcher { | 15 | class BooleanSearchDispatcher extends KTStandardDispatcher { |
| 16 | + // Breadcrumbs base - added to in methods | ||
| 17 | + var $aBreadcrumbs = array( | ||
| 18 | + array('action' => 'browse', 'name' => 'Browse'), | ||
| 19 | + ); | ||
| 20 | + var $sSection = "browse"; | ||
| 21 | + | ||
| 26 | function do_main() { | 22 | function do_main() { |
| 23 | + $this->oPage->setBreadcrumbDetails('searching'); | ||
| 27 | $oTemplating = new KTTemplating; | 24 | $oTemplating = new KTTemplating; |
| 28 | $oTemplate = $oTemplating->loadTemplate("ktcore/boolean_search"); | 25 | $oTemplate = $oTemplating->loadTemplate("ktcore/boolean_search"); |
| 29 | 26 | ||
| @@ -35,13 +32,6 @@ class BooleanSearchDispatcher extends KTStandardDispatcher { | @@ -35,13 +32,6 @@ class BooleanSearchDispatcher extends KTStandardDispatcher { | ||
| 35 | return $oTemplate->render($aTemplateData); | 32 | return $oTemplate->render($aTemplateData); |
| 36 | } | 33 | } |
| 37 | 34 | ||
| 38 | - function handleOutput($data) { | ||
| 39 | - global $main; | ||
| 40 | - $main->bFormDisabled = true; | ||
| 41 | - $main->setCentralPayload($data); | ||
| 42 | - $main->render(); | ||
| 43 | - } | ||
| 44 | - | ||
| 45 | function do_performSearch() { | 35 | function do_performSearch() { |
| 46 | // TODO first extract environ vars | 36 | // TODO first extract environ vars |
| 47 | // TODO second create criterion objects (see getAdvancedSearchResults for this. | 37 | // TODO second create criterion objects (see getAdvancedSearchResults for this. |