Commit 6f34b6e330606e19ac074691943d7b7f8704ebe7
1 parent
61b8ea55
KTS-673
"The search algorithm needs some work" Updated. Committed By: Conrad Vermeulen Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7341 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
17 additions
and
12 deletions
plugins/ktcore/KTCorePlugin.php
| ... | ... | @@ -56,6 +56,7 @@ class KTCorePlugin extends KTPlugin { |
| 56 | 56 | $this->registerAction('documentaction', 'KTDocumentMoveAction', 'ktcore.actions.document.move', 'KTDocumentActions.php'); |
| 57 | 57 | $this->registerAction('documentaction', 'KTDocumentCopyAction', 'ktcore.actions.document.copy', 'KTDocumentActions.php'); |
| 58 | 58 | $this->registerAction('documentaction', 'KTDocumentRenameAction', 'ktcore.actions.document.rename', 'document/Rename.php'); |
| 59 | + $this->registerAction('documentaction', 'DocumentIndexAction', 'ktcore.search2.index.action', KT_DIR . '/plugins/search2/DocumentIndexAction.php'); | |
| 59 | 60 | $this->registerAction('documentinfo', 'KTDocumentTransactionHistoryAction', 'ktcore.actions.document.transactionhistory', 'KTDocumentActions.php'); |
| 60 | 61 | $this->registerAction('documentinfo', 'KTDocumentVersionHistoryAction', 'ktcore.actions.document.versionhistory', 'KTDocumentActions.php'); |
| 61 | 62 | $this->registerAction('documentaction', 'KTDocumentArchiveAction', 'ktcore.actions.document.archive', 'KTDocumentActions.php'); |
| ... | ... | @@ -97,17 +98,22 @@ class KTCorePlugin extends KTPlugin { |
| 97 | 98 | $this->registerDashlet('KTInfoDashlet', 'ktcore.dashlet.info', 'KTDashlets.php'); |
| 98 | 99 | $this->registerDashlet('KTNotificationDashlet', 'ktcore.dashlet.notifications', 'KTDashlets.php'); |
| 99 | 100 | $this->registerDashlet('KTCheckoutDashlet', 'ktcore.dashlet.checkout', 'KTDashlets.php'); |
| 100 | - $this->registerDashlet('KTIndexerStatusDashlet', 'ktcore.dashlet.indexer_status', 'KTDashlets.php'); | |
| 101 | 101 | $this->registerDashlet('KTMailServerDashlet', 'ktcore.dashlet.mail_server', 'KTDashlets.php'); |
| 102 | + $this->registerDashlet('ExternalResourceStatusDashlet', 'ktcore.dashlet.resource_status', KT_DIR . '/plugins/search2/ExternalDashlet.php'); | |
| 103 | + $this->registerDashlet('LuceneMigrationDashlet', 'ktcore.dashlet.lucene_migration', KT_DIR . '/plugins/search2/MigrationDashlet.php'); | |
| 104 | + $this->registerDashlet('IndexingStatusDashlet', 'ktcore.dashlet.indexing_status', KT_DIR . '/plugins/search2/IndexingStatusDashlet.php'); | |
| 105 | + $this->registerDashlet('LuceneStatisticsDashlet', 'ktcore.dashlet.indexing_statss', KT_DIR . '/plugins/search2/LuceneStatisticsDashlet.php'); | |
| 102 | 106 | |
| 103 | 107 | $this->registerAdminPage('authentication', 'KTAuthenticationAdminPage', 'principals', _kt('Authentication'), sprintf(_kt('By default, %s controls its own users and groups and stores all information about them inside the database. In many situations, an organisation will already have a list of users and groups, and needs to use that existing information to allow access to the DMS. These <strong>Authentication Sources</strong> allow the system administrator to specify additional sources of authentication data.'), APP_NAME), 'authentication/authenticationadminpage.inc.php'); |
| 104 | 108 | |
| 109 | + $this->registerPortlet(array('browse', 'dashboard'), | |
| 110 | + 'Search2Portlet', 'ktcore.search2.portlet', | |
| 111 | + KT_DIR . '/plugins/search2/Search2Portlet.php'); | |
| 112 | + | |
| 105 | 113 | $this->registerPortlet(array('browse'), |
| 106 | 114 | 'KTAdminModePortlet', 'ktcore.portlets.admin_mode', |
| 107 | 115 | 'KTPortlets.php'); |
| 108 | - /* NEW SEARCH $this->registerPortlet(array('browse', 'dashboard'), | |
| 109 | - 'KTSearchPortlet', 'ktcore.portlets.search', | |
| 110 | - 'KTPortlets.php');*/ | |
| 116 | + | |
| 111 | 117 | $this->registerPortlet(array('browse'), |
| 112 | 118 | 'KTBrowseModePortlet', 'ktcore.portlets.browsemodes', |
| 113 | 119 | 'KTPortlets.php'); |
| ... | ... | @@ -140,6 +146,11 @@ class KTCorePlugin extends KTPlugin { |
| 140 | 146 | $this->registerWorkflowTrigger('ktcore.workflowtriggers.copyaction', 'CopyActionTrigger', 'KTWorkflowTriggers.inc.php'); |
| 141 | 147 | $this->registerWorkflowTrigger('ktcore.workflowtriggers.moveaction', 'MoveActionTrigger', 'KTWorkflowTriggers.inc.php'); |
| 142 | 148 | |
| 149 | + // search triggers | |
| 150 | + $this->registerTrigger('edit', 'postValidate', 'SavedSearchSubscriptionTrigger', 'ktcore.search2.savedsearch.subscription.edit', KT_DIR . '/plugins/search2/Search2Triggers.php'); | |
| 151 | + $this->registerTrigger('add', 'postValidate', 'SavedSearchSubscriptionTrigger', 'ktcore.search2.savedsearch.subscription.add', KT_DIR . '/plugins/search2/Search2Triggers.php'); | |
| 152 | + $this->registerTrigger('discussion', 'postValidate', 'SavedSearchSubscriptionTrigger', 'ktcore.search2.savedsearch.subscription.discussion', KT_DIR . '/plugins/search2/Search2Triggers.php'); | |
| 153 | + | |
| 143 | 154 | // widgets |
| 144 | 155 | $this->registerWidget('KTCoreHiddenWidget', 'ktcore.widgets.hidden', 'KTWidgets.php'); |
| 145 | 156 | $this->registerWidget('KTCoreStringWidget', 'ktcore.widgets.string', 'KTWidgets.php'); |
| ... | ... | @@ -183,11 +194,7 @@ class KTCorePlugin extends KTPlugin { |
| 183 | 194 | $this->registerCriterion('DocumentTypeCriterion', 'ktcore.criteria.documenttype', KT_LIB_DIR . '/browse/Criteria.inc'); |
| 184 | 195 | $this->registerCriterion('DateModifiedCriterion', 'ktcore.criteria.datemodified', KT_LIB_DIR . '/browse/Criteria.inc'); |
| 185 | 196 | $this->registerCriterion('SizeCriterion', 'ktcore.criteria.size', KT_LIB_DIR . '/browse/Criteria.inc'); |
| 186 | - // NEW SEARCH $this->registerCriterion('ContentCriterion', 'ktcore.criteria.content', KT_LIB_DIR . '/browse/Criteria.inc'); | |
| 187 | 197 | $this->registerCriterion('WorkflowStateCriterion', 'ktcore.criteria.workflowstate', KT_LIB_DIR . '/browse/Criteria.inc'); |
| 188 | - // NEW SEARCH $this->registerCriterion('DiscussionTextCriterion', 'ktcore.criteria.discussiontext', KT_LIB_DIR . '/browse/Criteria.inc'); | |
| 189 | - // NEW SEARCH $this->registerCriterion('SearchableTextCriterion', 'ktcore.criteria.searchabletext', KT_LIB_DIR . '/browse/Criteria.inc'); | |
| 190 | - // NEW SEARCH $this->registerCriterion('TransactionTextCriterion', 'ktcore.criteria.transactiontext', KT_LIB_DIR . '/browse/Criteria.inc'); | |
| 191 | 198 | $this->registerCriterion('DateCreatedDeltaCriterion', 'ktcore.criteria.datecreateddelta', KT_LIB_DIR . '/browse/Criteria.inc'); |
| 192 | 199 | $this->registerCriterion('DateModifiedDeltaCriterion', 'ktcore.criteria.datemodifieddelta', KT_LIB_DIR . '/browse/Criteria.inc'); |
| 193 | 200 | $this->registerCriterion('GeneralMetadataCriterion', 'ktcore.criteria.generalmetadata', KT_LIB_DIR . '/browse/Criteria.inc'); |
| ... | ... | @@ -265,14 +272,12 @@ class KTCorePlugin extends KTPlugin { |
| 265 | 272 | _kt('Restore or Expunge Deleted Documents'), _kt('Restore previously deleted documents, or permanently expunge them.'), |
| 266 | 273 | 'admin/deletedDocuments.php', null); |
| 267 | 274 | |
| 275 | + | |
| 276 | + | |
| 268 | 277 | // misc |
| 269 | 278 | $this->registerAdminPage('helpmanagement', 'ManageHelpDispatcher', 'misc', |
| 270 | 279 | _kt('Edit Help files'), _kt('Change the help files that are displayed to users.'), |
| 271 | 280 | 'admin/manageHelp.php', null); |
| 272 | - /* NEW SEARCH $this->registerAdminPage('savedsearch', 'KTSavedSearchDispatcher', 'misc', | |
| 273 | - _kt('Saved searches'), | |
| 274 | - _kt('Manage saved searches - searches available by default to all users.'), | |
| 275 | - 'admin/savedSearch.php', null); */ | |
| 276 | 281 | $this->registerAdminPage('plugins', 'KTPluginDispatcher', 'misc', |
| 277 | 282 | _kt('Manage plugins'), _kt('Register new plugins, disable plugins, and so forth'), |
| 278 | 283 | 'admin/plugins.php', null); | ... | ... |