From c0b42cf0641c4f71a2a11b19f2df7ccbf7127075 Mon Sep 17 00:00:00 2001 From: Megan Watson Date: Tue, 19 May 2009 09:09:37 +0200 Subject: [PATCH] KTS-4276 Moved the templates into the templates directory and removed the addLocation function "Templating "addLocation" not in plugin setup method" Fixed. --- plugins/search2/reporting/ExtractorInfo.php | 62 ++++++++++++++++++++++++++++++-------------------------------- plugins/search2/reporting/IndexErrors.php | 4 +--- plugins/search2/reporting/ManageMimeTypes.php | 50 ++++++++++++++++++++++++-------------------------- plugins/search2/reporting/PendingDocuments.php | 21 ++++++++++----------- plugins/search2/reporting/RescheduleDocuments.php | 45 +++++++++++++++++++++------------------------ plugins/search2/reporting/templates/extractorinfo.smarty | 39 --------------------------------------- plugins/search2/reporting/templates/indexerrors.smarty | 83 ----------------------------------------------------------------------------------- plugins/search2/reporting/templates/managemimetypes.smarty | 48 ------------------------------------------------ plugins/search2/reporting/templates/pendingdocuments.smarty | 38 -------------------------------------- plugins/search2/reporting/templates/rescheduledocuments.smarty | 15 --------------- templates/ktcore/search2/reporting/extractorinfo.smarty | 39 +++++++++++++++++++++++++++++++++++++++ templates/ktcore/search2/reporting/indexerrors.smarty | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ templates/ktcore/search2/reporting/managemimetypes.smarty | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ templates/ktcore/search2/reporting/pendingdocuments.smarty | 38 ++++++++++++++++++++++++++++++++++++++ templates/ktcore/search2/reporting/rescheduledocuments.smarty | 15 +++++++++++++++ 15 files changed, 309 insertions(+), 319 deletions(-) delete mode 100644 plugins/search2/reporting/templates/extractorinfo.smarty delete mode 100644 plugins/search2/reporting/templates/indexerrors.smarty delete mode 100644 plugins/search2/reporting/templates/managemimetypes.smarty delete mode 100644 plugins/search2/reporting/templates/pendingdocuments.smarty delete mode 100644 plugins/search2/reporting/templates/rescheduledocuments.smarty create mode 100644 templates/ktcore/search2/reporting/extractorinfo.smarty create mode 100644 templates/ktcore/search2/reporting/indexerrors.smarty create mode 100644 templates/ktcore/search2/reporting/managemimetypes.smarty create mode 100644 templates/ktcore/search2/reporting/pendingdocuments.smarty create mode 100644 templates/ktcore/search2/reporting/rescheduledocuments.smarty diff --git a/plugins/search2/reporting/ExtractorInfo.php b/plugins/search2/reporting/ExtractorInfo.php index 48fc70d..788083f 100644 --- a/plugins/search2/reporting/ExtractorInfo.php +++ b/plugins/search2/reporting/ExtractorInfo.php @@ -6,42 +6,42 @@ * Document Management Made Simple * Copyright (C) 2008, 2009 KnowledgeTree Inc. * Portions copyright The Jam Warehouse Software (Pty) Limited - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 3 as published by the * Free Software Foundation. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License * along with this program. If not, see . - * - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, + * + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, * California 94120-7775, or email info@knowledgetree.com. - * + * * The interactive user interfaces in modified source and object code versions * of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU General Public License version 3. - * + * * In accordance with Section 7(b) of the GNU General Public License version 3, * these Appropriate Legal Notices must retain the display of the "Powered by - * KnowledgeTree" logo and retain the original copyright notice. If the display of the + * KnowledgeTree" logo and retain the original copyright notice. If the display of the * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices - * must display the words "Powered by KnowledgeTree" and retain the original + * must display the words "Powered by KnowledgeTree" and retain the original * copyright notice. * Contributor( s): ______________________________________ * */ - + require_once(KT_LIB_DIR . '/dispatcher.inc.php'); require_once(KT_LIB_DIR . '/templating/templating.inc.php'); require_once(KT_LIB_DIR . '/mime.inc.php'); class ExtractorInfoDispatcher extends KTAdminDispatcher { - + function check() { $this->aBreadcrumbs[] = array( @@ -52,60 +52,58 @@ class ExtractorInfoDispatcher extends KTAdminDispatcher { } function do_main() { - + //registerTypes registers the mime types and populates the needed tables. $indexer = Indexer::get(); $indexer->registerTypes(); - + $oTemplating =& KTTemplating::getSingleton(); - $oTemplating->addLocation('Extractor Information', '/plugins/search2/reporting/templates'); - - $oTemplate =& $oTemplating->loadTemplate('extractorinfo'); - + $oTemplate =& $oTemplating->loadTemplate('ktcore/search2/reporting/extractorinfo'); + $aExtractorInfo = KTMime::getMimeExtractorInformation(); - + if(empty($aExtractorInfo)) { $oTemplate->setData(array( 'context' => $this, 'extractor_info' => $aExtractorInfo )); - - return $oTemplate; + + return $oTemplate; } - + foreach($aExtractorInfo as $key=>$info) { $extractorClass = $info['name']; $extractor = $indexer->getExtractor($extractorClass); $info['mimeTypes'] = array(); $aMimeTypes = $this->getSupportedMimeTypesDB($extractorClass);//$extractor->getSupportedMimeTypes(); - - + + foreach($aMimeTypes as $mimeType) { - $sMimeInfo = KTMime::getFriendlyNameAndExtension($mimeType); - + $sMimeInfo = KTMime::getFriendlyNameAndExtension($mimeType); + $info['mimeTypes'][$mimeType] = array('description'=>$sMimeInfo[0]['friendly_name'], 'extensions'=>array($sMimeInfo[0]['filetypes'])); - + $extensions = array(); - foreach($sMimeInfo as $item) + foreach($sMimeInfo as $item) { $extensions[] = $item['filetypes']; } $info['mimeTypes'][$mimeType]['extensions'] = implode(', ', $extensions); } - - $aExtractorInfo[$key] = $info; + + $aExtractorInfo[$key] = $info; } - + $oTemplate->setData(array( 'context' => $this, 'extractor_info' => $aExtractorInfo )); return $oTemplate; } - + function getSupportedMimeTypesDB($sExtractorName) { $sQuery = "SELECT MT.mimetypes FROM mime_extractors as ME LEFT JOIN mime_types as MT ON " . @@ -118,7 +116,7 @@ class ExtractorInfoDispatcher extends KTAdminDispatcher { if(!in_array($aTempRes[$i]['mimetypes'], $aRes)) { $aRes[] = $aTempRes[$i]['mimetypes']; - + } } return $aRes; diff --git a/plugins/search2/reporting/IndexErrors.php b/plugins/search2/reporting/IndexErrors.php index 9636c8e..aab22e1 100644 --- a/plugins/search2/reporting/IndexErrors.php +++ b/plugins/search2/reporting/IndexErrors.php @@ -90,9 +90,7 @@ class IndexErrorsDispatcher extends KTAdminDispatcher { } $oTemplating =& KTTemplating::getSingleton(); - $oTemplating->addLocation('Index Errors', '/plugins/search2/reporting/templates'); - - $oTemplate =& $oTemplating->loadTemplate('indexerrors'); + $oTemplate =& $oTemplating->loadTemplate('ktcore/search2/reporting/indexerrors'); $aIndexerValues = Indexer::getIndexingQueue(); foreach($aIndexerValues as $key=>$doc) diff --git a/plugins/search2/reporting/ManageMimeTypes.php b/plugins/search2/reporting/ManageMimeTypes.php index 99f12e5..50dced6 100644 --- a/plugins/search2/reporting/ManageMimeTypes.php +++ b/plugins/search2/reporting/ManageMimeTypes.php @@ -6,40 +6,40 @@ * Document Management Made Simple * Copyright (C) 2008, 2009 KnowledgeTree Inc. * Portions copyright The Jam Warehouse Software (Pty) Limited - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 3 as published by the * Free Software Foundation. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License * along with this program. If not, see . - * - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, + * + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, * California 94120-7775, or email info@knowledgetree.com. - * + * * The interactive user interfaces in modified source and object code versions * of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU General Public License version 3. - * + * * In accordance with Section 7(b) of the GNU General Public License version 3, * these Appropriate Legal Notices must retain the display of the "Powered by - * KnowledgeTree" logo and retain the original copyright notice. If the display of the + * KnowledgeTree" logo and retain the original copyright notice. If the display of the * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices - * must display the words "Powered by KnowledgeTree" and retain the original + * must display the words "Powered by KnowledgeTree" and retain the original * copyright notice. * Contributor( s): ______________________________________ * */ -require_once(KT_LIB_DIR . '/dispatcher.inc.php'); -require_once(KT_LIB_DIR . '/templating/templating.inc.php'); +require_once(KT_LIB_DIR . '/dispatcher.inc.php'); +require_once(KT_LIB_DIR . '/templating/templating.inc.php'); require_once(KT_LIB_DIR . '/mime.inc.php'); -class ManageMimeTypesDispatcher extends KTAdminDispatcher { +class ManageMimeTypesDispatcher extends KTAdminDispatcher { function check() { $this->aBreadcrumbs[] = array( @@ -50,23 +50,21 @@ class ManageMimeTypesDispatcher extends KTAdminDispatcher { } function do_main() { - - //registerTypes registers the mime types and populates the needed tables. + + //registerTypes registers the mime types and populates the needed tables. $indexer = Indexer::get(); $indexer->registerTypes(); - + $oTemplating =& KTTemplating::getSingleton(); - $oTemplating->addLocation('Manage Mime Type Plugin', '/plugins/search2/reporting/templates'); + $oTemplate =& $oTemplating->loadTemplate('ktcore/search2/reporting/managemimetypes'); - $oTemplate =& $oTemplating->loadTemplate('managemimetypes'); - $aMimeTypes = KTMime::getAllMimeTypesInformation(); - - $indexer = Indexer::get(); - + + $indexer = Indexer::get(); + $numExtensions = 0; $numIndexedExtensions = 0; - + foreach($aMimeTypes as $key=>$mimeType) { $extractorClass = $mimeType['extractor']; @@ -78,21 +76,21 @@ class ManageMimeTypesDispatcher extends KTAdminDispatcher { $extractor = $indexer->getExtractor($extractorClass); $aMimeTypes[$key]['extractor'] = $extractor->getDisplayName(); $numIndexedExtensions++; - } - + } + $indexedPercentage = 0; if ($numExtensions > 0) { $indexedPercentage = number_format(($numIndexedExtensions * 100)/$numExtensions,2,'.',','); } - + $oTemplate->setData(array( 'context' => $this, 'mime_types' => $aMimeTypes, 'numExtensions'=>$numExtensions, 'numIndexedExtensions'=>$numIndexedExtensions, 'indexedPercentage'=>$indexedPercentage - + )); return $oTemplate; } diff --git a/plugins/search2/reporting/PendingDocuments.php b/plugins/search2/reporting/PendingDocuments.php index c7c04de..e0ba011 100644 --- a/plugins/search2/reporting/PendingDocuments.php +++ b/plugins/search2/reporting/PendingDocuments.php @@ -6,31 +6,31 @@ * Document Management Made Simple * Copyright (C) 2008, 2009 KnowledgeTree Inc. * Portions copyright The Jam Warehouse Software (Pty) Limited - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 3 as published by the * Free Software Foundation. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License * along with this program. If not, see . - * - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, + * + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, * California 94120-7775, or email info@knowledgetree.com. - * + * * The interactive user interfaces in modified source and object code versions * of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU General Public License version 3. - * + * * In accordance with Section 7(b) of the GNU General Public License version 3, * these Appropriate Legal Notices must retain the display of the "Powered by - * KnowledgeTree" logo and retain the original copyright notice. If the display of the + * KnowledgeTree" logo and retain the original copyright notice. If the display of the * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices - * must display the words "Powered by KnowledgeTree" and retain the original + * must display the words "Powered by KnowledgeTree" and retain the original * copyright notice. * Contributor( s): ______________________________________ * @@ -69,8 +69,7 @@ class PendingDocumentsDispatcher extends KTAdminDispatcher } $oTemplating =& KTTemplating::getSingleton(); - $oTemplating->addLocation('Pending Documents', '/plugins/search2/reporting/templates'); - $oTemplate =& $oTemplating->loadTemplate('pendingdocuments'); + $oTemplate =& $oTemplating->loadTemplate('ktcore/search2/reporting/pendingdocuments'); $config = KTConfig::getSingleton(); $rootUrl = $config->get('KnowledgeTree/rootUrl'); diff --git a/plugins/search2/reporting/RescheduleDocuments.php b/plugins/search2/reporting/RescheduleDocuments.php index de87997..533f9fc 100644 --- a/plugins/search2/reporting/RescheduleDocuments.php +++ b/plugins/search2/reporting/RescheduleDocuments.php @@ -6,40 +6,40 @@ * Document Management Made Simple * Copyright (C) 2008, 2009 KnowledgeTree Inc. * Portions copyright The Jam Warehouse Software (Pty) Limited - * + * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 3 as published by the * Free Software Foundation. - * + * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. - * + * * You should have received a copy of the GNU General Public License * along with this program. If not, see . - * - * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, + * + * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco, * California 94120-7775, or email info@knowledgetree.com. - * + * * The interactive user interfaces in modified source and object code versions * of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU General Public License version 3. - * + * * In accordance with Section 7(b) of the GNU General Public License version 3, * these Appropriate Legal Notices must retain the display of the "Powered by - * KnowledgeTree" logo and retain the original copyright notice. If the display of the + * KnowledgeTree" logo and retain the original copyright notice. If the display of the * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices - * must display the words "Powered by KnowledgeTree" and retain the original + * must display the words "Powered by KnowledgeTree" and retain the original * copyright notice. * Contributor( s): ______________________________________ * */ - -require_once(KT_LIB_DIR . '/dispatcher.inc.php'); -require_once(KT_LIB_DIR . '/templating/templating.inc.php'); -class RescheduleDocumentsDispatcher extends KTAdminDispatcher +require_once(KT_LIB_DIR . '/dispatcher.inc.php'); +require_once(KT_LIB_DIR . '/templating/templating.inc.php'); + +class RescheduleDocumentsDispatcher extends KTAdminDispatcher { function check() { $this->aBreadcrumbs[] = array( @@ -50,17 +50,14 @@ class RescheduleDocumentsDispatcher extends KTAdminDispatcher } function do_main() { - - //registerTypes registers the mime types and populates the needed tables. + + //registerTypes registers the mime types and populates the needed tables. $indexer = Indexer::get(); $indexer->registerTypes(); - + $oTemplating =& KTTemplating::getSingleton(); - $oTemplating->addLocation('Reschedule Documents', '/plugins/search2/reporting/templates'); - - - $oTemplate =& $oTemplating->loadTemplate('rescheduledocuments'); - + $oTemplate =& $oTemplating->loadTemplate('ktcore/search2/reporting/rescheduledocuments'); + if ($_REQUEST['rescheduleValue'] == 'reschedule') { Indexer::indexAll(); @@ -70,14 +67,14 @@ class RescheduleDocumentsDispatcher extends KTAdminDispatcher )); return $oTemplate; } - + $oTemplate->setData(array( 'context' => $this, 'rescheduleDone' => false - + )); return $oTemplate; - } + } } ?> diff --git a/plugins/search2/reporting/templates/extractorinfo.smarty b/plugins/search2/reporting/templates/extractorinfo.smarty deleted file mode 100644 index 220f6fe..0000000 --- a/plugins/search2/reporting/templates/extractorinfo.smarty +++ /dev/null @@ -1,39 +0,0 @@ -

{i18n}Extractor Information{/i18n}

-

{i18n}This report lists the text extractors and their supported mime types.{/i18n}

- -{if $extractor_info} - -{foreach key=key from=$extractor_info item=extractor} -
-

{$extractor.name}{if $extractor.active == 1} ({i18n}Active{/i18n}){else} ({i18n}Inactive{/i18n}){/if}

- - - - - - - - - - - - - -{foreach from=$extractor.mimeTypes key=key item=mimeType} - - - - - -{/foreach} - - - -
{i18n}Description{/i18n}{i18n}Mime Types{/i18n}{i18n}Extensions{/i18n}
{$mimeType.description}{$key}{$extractor.mimeTypes.$key.extensions}
- -{/foreach} - -{else} -
-

{i18n}There are no extractors registered.{/i18n}

-{/if} diff --git a/plugins/search2/reporting/templates/indexerrors.smarty b/plugins/search2/reporting/templates/indexerrors.smarty deleted file mode 100644 index 5cd2280..0000000 --- a/plugins/search2/reporting/templates/indexerrors.smarty +++ /dev/null @@ -1,83 +0,0 @@ -{literal} - -{/literal} - -

{i18n}Document Indexing Diagnostics{/i18n}

-

{i18n}This report will help to diagnose problems with document indexing.{/i18n}

- -
-{if $indexErrors} - -
- - - - - - - - - - - - - - - -{foreach key=key from=$indexErrors item=indexError} - - - - - - - - - - - - - -{/foreach} - - - - - - - - - - -
{i18n}Filename{/i18n}{i18n}Extractor{/i18n}{i18n}Index Date{/i18n}
{$indexError.filename|truncate:40:'...'}{if $indexError.extractor}{$indexError.extractor}{else}

{i18n}n/a{/i18n}

{/if}
{$indexError.indexdate}
 
{$indexError.status_msg}
-
-{foreach item=page from=$pageList} -{$page} -{/foreach} -
-
-
{$itemCount} items, {$itemsPerPage} items per page.
-
- -
- - - - -{else} -

{i18n}There are no indexing issues.{/i18n}

-{/if} -
\ No newline at end of file diff --git a/plugins/search2/reporting/templates/managemimetypes.smarty b/plugins/search2/reporting/templates/managemimetypes.smarty deleted file mode 100644 index f49e963..0000000 --- a/plugins/search2/reporting/templates/managemimetypes.smarty +++ /dev/null @@ -1,48 +0,0 @@ -

{i18n}Manage Mime Types{/i18n}

-

{i18n arg_appname="$appname"}This report lists all mime types and extensions that can be identified by #appname#.{/i18n}

- - -{if $mime_types} - - - - - - - - - - - - - - -{foreach from=$mime_types item=mimetype} - - - - - - - -{/foreach} - - -
Icon Extension Mime Type Description Extractor
{$mimetype.filetypes}{$mimetype.mimetypes}{if $mimetype.friendly_name} -{$mimetype.friendly_name} -{else} -

no description

-{/if}
{if $mimetype.extractor} -{$mimetype.extractor} -{else} -

n/a

-{/if}
- - -
Number of Extensions{$numExtensions} -
Number of indexed extensions{$numIndexedExtensions} ( {$indexedPercentage}% ) -
- - -{/if} - diff --git a/plugins/search2/reporting/templates/pendingdocuments.smarty b/plugins/search2/reporting/templates/pendingdocuments.smarty deleted file mode 100644 index 3cc8a52..0000000 --- a/plugins/search2/reporting/templates/pendingdocuments.smarty +++ /dev/null @@ -1,38 +0,0 @@ -

{i18n}Pending Documents Indexing Queue{/i18n}

-{i18n}This report lists documents that are waiting to be indexed.{/i18n} -

-{i18n}If a document is not associated with an extractor, no content will be added to the index. These documents can be identified in the list by the extractor column reflecting n/a.{/i18n} -

- -{if empty($pending_docs)} - -{i18n}There are no documents in the indexing queue.{/i18n} - -{else} - - - - - - - - - - - - - - -{foreach key=key from=$pending_docs item=pendingDocs} - - - - - -{/foreach} - - - -
{i18n}Filename{/i18n}{i18n}Extractor{/i18n}{i18n}Index Date{/i18n}
{$pendingDocs.filename|mb_truncate:50:'...':true}{if $pendingDocs.extractor}{$pendingDocs.extractor}{else}

{i18n}n/a{/i18n}

{/if}
{$pendingDocs.indexdate}
- -{/if} diff --git a/plugins/search2/reporting/templates/rescheduledocuments.smarty b/plugins/search2/reporting/templates/rescheduledocuments.smarty deleted file mode 100644 index 77bdbf9..0000000 --- a/plugins/search2/reporting/templates/rescheduledocuments.smarty +++ /dev/null @@ -1,15 +0,0 @@ -

{i18n}Reschedule All Documents{/i18n}

-

{i18n}This function allows you to re-index your entire repository.{/i18n}

-

{i18n}Please note that rescheduling all documents may take a long time, depending on the size of the repository.{/i18n} - -

-
-{if $rescheduleDone == true} -

Documents Rescheduled

-

You can view the schedule queue here

-
-{/if} - - - -
\ No newline at end of file diff --git a/templates/ktcore/search2/reporting/extractorinfo.smarty b/templates/ktcore/search2/reporting/extractorinfo.smarty new file mode 100644 index 0000000..220f6fe --- /dev/null +++ b/templates/ktcore/search2/reporting/extractorinfo.smarty @@ -0,0 +1,39 @@ +

{i18n}Extractor Information{/i18n}

+

{i18n}This report lists the text extractors and their supported mime types.{/i18n}

+ +{if $extractor_info} + +{foreach key=key from=$extractor_info item=extractor} +
+

{$extractor.name}{if $extractor.active == 1} ({i18n}Active{/i18n}){else} ({i18n}Inactive{/i18n}){/if}

+ + + + + + + + + + + + + +{foreach from=$extractor.mimeTypes key=key item=mimeType} + + + + + +{/foreach} + + + +
{i18n}Description{/i18n}{i18n}Mime Types{/i18n}{i18n}Extensions{/i18n}
{$mimeType.description}{$key}{$extractor.mimeTypes.$key.extensions}
+ +{/foreach} + +{else} +
+

{i18n}There are no extractors registered.{/i18n}

+{/if} diff --git a/templates/ktcore/search2/reporting/indexerrors.smarty b/templates/ktcore/search2/reporting/indexerrors.smarty new file mode 100644 index 0000000..5cd2280 --- /dev/null +++ b/templates/ktcore/search2/reporting/indexerrors.smarty @@ -0,0 +1,83 @@ +{literal} + +{/literal} + +

{i18n}Document Indexing Diagnostics{/i18n}

+

{i18n}This report will help to diagnose problems with document indexing.{/i18n}

+ +
+{if $indexErrors} + +
+ + + + + + + + + + + + + + + +{foreach key=key from=$indexErrors item=indexError} + + + + + + + + + + + + + +{/foreach} + + + + + + + + + + +
{i18n}Filename{/i18n}{i18n}Extractor{/i18n}{i18n}Index Date{/i18n}
{$indexError.filename|truncate:40:'...'}{if $indexError.extractor}{$indexError.extractor}{else}

{i18n}n/a{/i18n}

{/if}
{$indexError.indexdate}
 
{$indexError.status_msg}
+
+{foreach item=page from=$pageList} +{$page} +{/foreach} +
+
+
{$itemCount} items, {$itemsPerPage} items per page.
+
+ +
+ + + + +{else} +

{i18n}There are no indexing issues.{/i18n}

+{/if} +
\ No newline at end of file diff --git a/templates/ktcore/search2/reporting/managemimetypes.smarty b/templates/ktcore/search2/reporting/managemimetypes.smarty new file mode 100644 index 0000000..f49e963 --- /dev/null +++ b/templates/ktcore/search2/reporting/managemimetypes.smarty @@ -0,0 +1,48 @@ +

{i18n}Manage Mime Types{/i18n}

+

{i18n arg_appname="$appname"}This report lists all mime types and extensions that can be identified by #appname#.{/i18n}

+ + +{if $mime_types} + + + + + + + + + + + + + + +{foreach from=$mime_types item=mimetype} + + + + + + + +{/foreach} + + +
Icon Extension Mime Type Description Extractor
{$mimetype.filetypes}{$mimetype.mimetypes}{if $mimetype.friendly_name} +{$mimetype.friendly_name} +{else} +

no description

+{/if}
{if $mimetype.extractor} +{$mimetype.extractor} +{else} +

n/a

+{/if}
+ + +
Number of Extensions{$numExtensions} +
Number of indexed extensions{$numIndexedExtensions} ( {$indexedPercentage}% ) +
+ + +{/if} + diff --git a/templates/ktcore/search2/reporting/pendingdocuments.smarty b/templates/ktcore/search2/reporting/pendingdocuments.smarty new file mode 100644 index 0000000..3cc8a52 --- /dev/null +++ b/templates/ktcore/search2/reporting/pendingdocuments.smarty @@ -0,0 +1,38 @@ +

{i18n}Pending Documents Indexing Queue{/i18n}

+{i18n}This report lists documents that are waiting to be indexed.{/i18n} +

+{i18n}If a document is not associated with an extractor, no content will be added to the index. These documents can be identified in the list by the extractor column reflecting n/a.{/i18n} +

+ +{if empty($pending_docs)} + +{i18n}There are no documents in the indexing queue.{/i18n} + +{else} + + + + + + + + + + + + + + +{foreach key=key from=$pending_docs item=pendingDocs} + + + + + +{/foreach} + + + +
{i18n}Filename{/i18n}{i18n}Extractor{/i18n}{i18n}Index Date{/i18n}
{$pendingDocs.filename|mb_truncate:50:'...':true}{if $pendingDocs.extractor}{$pendingDocs.extractor}{else}

{i18n}n/a{/i18n}

{/if}
{$pendingDocs.indexdate}
+ +{/if} diff --git a/templates/ktcore/search2/reporting/rescheduledocuments.smarty b/templates/ktcore/search2/reporting/rescheduledocuments.smarty new file mode 100644 index 0000000..77bdbf9 --- /dev/null +++ b/templates/ktcore/search2/reporting/rescheduledocuments.smarty @@ -0,0 +1,15 @@ +

{i18n}Reschedule All Documents{/i18n}

+

{i18n}This function allows you to re-index your entire repository.{/i18n}

+

{i18n}Please note that rescheduling all documents may take a long time, depending on the size of the repository.{/i18n} + +

+
+{if $rescheduleDone == true} +

Documents Rescheduled

+

You can view the schedule queue here

+
+{/if} + + + +
\ No newline at end of file -- libgit2 0.21.4