* Many changes to indexed_search. For details, see typo3/sysext/indexed_search/ChangeLog.
authorMichael Stucki <michael.stucki@typo3.org>
Sun, 16 Oct 2005 14:05:57 +0000 (14:05 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Sun, 16 Oct 2005 14:05:57 +0000 (14:05 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@819 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/indexed_search/ChangeLog
typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php

index bde3bbc..03ca5bf 100755 (executable)
@@ -1,6 +1,18 @@
 2005-10-15  Michael Stucki  <michael@typo3.org>
 
+       * !!! In the past, pages were marked as search hits even if a user had no access to it. This default has been changed, but the setting can be reverted by setting "show.forbiddenRecords"
+       * !!! New option "show.resultNumber" for displaying the numbers of the search results. The old behavior was to display the numbers, but the default value has been changed to the opposite (0).
+       * !!! The default search type has been changed to "part of word" instead of "distinct word". Please note that this will be slower than before, however it is more Google-like (=logical?) that searching for "mistak" will match "mistake", too.
+       * !!! The default result layout has been changed from "sections" to "flat"
+       * !!! Because of the template support, some options have been removed. You will need to adjust the layout in the template file for these settings: "tableParams.secHead", "tableParams.searchRes"
        * Added template support to indexed_search. Many thanks to Udo von Eynern for his great work!
+       * Added an additional CSS based template, written by Udo van Eynern
+       * Changed number of default search results from 20 to 10
+       * New option "search.mediaList" for restricting the file type list when searching for files
+       * Changed (fixed?) the behavior of the result counter
+       * New option "show.advancedSearchLink" to hide the link to the advanced search page (default is to display the link)
+       * Changed the result browser to make it more logical (=Google-like)
+       * HTTP references are cut if they are too long (this could destroy the layout of the result page)
 
 2005-05-15  Michael Stucki  <michael@typo3.org>
 
index c20d89e..765d50b 100755 (executable)
@@ -1200,10 +1200,10 @@ class tx_indexedsearch extends tslib_pibase {
                        // Multilangual text
                $substituteArray = array('searchFor', 'extResume', 'atATime', 'orderBy', 'fromSection', 'searchIn', 'match', 'style');
                foreach ($substituteArray as $marker)   {
-                       $markerArray['###FORM_'.strtoupper($marker).'###'] = $this->pi_getLL('form_'.$marker);
+                       $markerArray['###FORM_'.strtoupper($marker).'###'] = $this->pi_getLL('form_'.$marker,'',1);
                }
 
-               $markerArray['###FORM_SUBMIT###'] = $this->pi_getLL('submit_button_label');
+               $markerArray['###FORM_SUBMIT###'] = $this->pi_getLL('submit_button_label','',1);
 
                        // Adding search field value
                $markerArray['###SWORD_VALUE###'] = htmlspecialchars($this->piVars['sword']);
@@ -1212,7 +1212,7 @@ class tx_indexedsearch extends tslib_pibase {
                if ($this->conf['show.']['clearSearchBox'] && $this->conf['show.']['clearSearchBox.']['enableSubSearchCheckBox'])       {
                        $markerArray['###SWORD_PREV_VALUE###'] = htmlspecialchars($this->conf['show.']['clearSearchBox'] ? '' : $this->piVars['sword']);
                        $markerArray['###SWORD_PREV_INCLUDE_CHECKED###'] = $this->piVars['sword_prev_include'] ? ' checked="checked"':'';
-                       $markerArray['###ADD_TO_CURRENT_SEARCH###'] = $this->pi_getLL('makerating_addToCurrentSearch');
+                       $markerArray['###ADD_TO_CURRENT_SEARCH###'] = $this->pi_getLL('makerating_addToCurrentSearch','',1);
                } else {
                        $html = $this->cObj->substituteSubpart($html, '###ADDITONAL_KEYWORD###', '');
                }
@@ -1300,8 +1300,8 @@ class tx_indexedsearch extends tslib_pibase {
 
                if($this->conf['show.']['advancedSearchLink'])  {
                        $markerArray['###LINKTOOTHERMODE###'] = ($this->piVars['ext'] ?
-                               '<a href="'.$this->pi_getPageLink($GLOBALS['TSFE']->id,$GLOBALS['TSFE']->sPre,array($this->prefixId.'[ext]'=>0)).'">'.$this->pi_getLL('link_regularSearch').'</a>' :
-                               '<a href="'.$this->pi_getPageLink($GLOBALS['TSFE']->id,$GLOBALS['TSFE']->sPre,array($this->prefixId.'[ext]'=>1)).'">'.$this->pi_getLL('link_advancedSearch').'</a>'
+                               '<a href="'.$this->pi_getPageLink($GLOBALS['TSFE']->id,$GLOBALS['TSFE']->sPre,array($this->prefixId.'[ext]'=>0)).'">'.$this->pi_getLL('link_regularSearch','',1).'</a>' :
+                               '<a href="'.$this->pi_getPageLink($GLOBALS['TSFE']->id,$GLOBALS['TSFE']->sPre,array($this->prefixId.'[ext]'=>1)).'">'.$this->pi_getLL('link_advancedSearch','',1).'</a>'
                        );
                } else {
                        $markerArray['###LINKTOOTHERMODE###'] = '';
@@ -1437,10 +1437,10 @@ class tx_indexedsearch extends tslib_pibase {
                        }
 
                                // Description text
-                       $markerArray['###TEXT_ITEM_SIZE###'] = $this->pi_getLL('res_size');
-                       $markerArray['###TEXT_ITEM_CRDATE###'] = $this->pi_getLL('res_created');
-                       $markerArray['###TEXT_ITEM_MTIME###'] = $this->pi_getLL('res_modified');
-                       $markerArray['###TEXT_ITEM_PATH###'] = $this->pi_getLL('res_path');
+                       $markerArray['###TEXT_ITEM_SIZE###'] = $this->pi_getLL('res_size','',1);
+                       $markerArray['###TEXT_ITEM_CRDATE###'] = $this->pi_getLL('res_created','',1);
+                       $markerArray['###TEXT_ITEM_MTIME###'] = $this->pi_getLL('res_modified','',1);
+                       $markerArray['###TEXT_ITEM_PATH###'] = $this->pi_getLL('res_path','',1);
 
                        $html = $this->cObj->substituteMarkerArrayCached($html, $markerArray, array(), array());
 
@@ -1448,16 +1448,16 @@ class tx_indexedsearch extends tslib_pibase {
                        if (is_array($row['_sub']))     {
                                if ($this->multiplePagesType($row['item_type']))        {
 
-                                       $html = str_replace('###TEXT_ROW_SUB###', $this->pi_getLL('res_otherMatching'), $html);
+                                       $html = str_replace('###TEXT_ROW_SUB###', $this->pi_getLL('res_otherMatching','',1), $html);
 
                                        foreach($row['_sub'] as $subRow)        {
                                                $html .= $this->printResultRow($subRow,1);
                                        }
                                } else {
 
-                                       $markerArray['###TEXT_ROW_SUB###'] = $this->pi_getLL('res_otherMatching');
+                                       $markerArray['###TEXT_ROW_SUB###'] = $this->pi_getLL('res_otherMatching','',1);
 
-                                       $html = str_replace('###TEXT_ROW_SUB###', $this->pi_getLL('res_otherPageAsWell'), $html);
+                                       $html = str_replace('###TEXT_ROW_SUB###', $this->pi_getLL('res_otherPageAsWell','',1), $html);
                                }
                        }