From 319bac604da965b61587cb763fbb70cd07297fd1 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Thu, 9 Aug 2012 12:31:57 +0200 Subject: [PATCH] Make fields for search suggestion configurable --- dlf/common/class.tx_dlf_document.php | 14 +- dlf/common/class.tx_dlf_indexing.php | 30 +- dlf/ext_emconf.php | 2 +- dlf/ext_tables.sql | 1 + dlf/locallang.xml | 2 + dlf/plugins/oai/transform.xsl | 998 +++++++++--------- dlf/plugins/search/class.tx_dlf_search.php | 4 +- .../search/class.tx_dlf_search_suggest.php | 162 +-- dlf/plugins/search/template.tmpl | 2 +- dlf/plugins/search/tx_dlf_search_suggest.js | 54 +- dlf/tca.php | 10 +- 11 files changed, 654 insertions(+), 625 deletions(-) diff --git a/dlf/common/class.tx_dlf_document.php b/dlf/common/class.tx_dlf_document.php index 532ede97..60a5ddc0 100644 --- a/dlf/common/class.tx_dlf_document.php +++ b/dlf/common/class.tx_dlf_document.php @@ -1758,15 +1758,15 @@ class tx_dlf_document { if (!$this->smLinksLoaded) { - $smLinks = $this->mets->xpath('./mets:structLink/mets:smLink'); - - foreach ($smLinks as $smLink) { - + $smLinks = $this->mets->xpath('./mets:structLink/mets:smLink'); + + foreach ($smLinks as $smLink) { + $this->smLinks['l2p'][(string) $smLink->attributes('http://www.w3.org/1999/xlink')->from][] = (string) $smLink->attributes('http://www.w3.org/1999/xlink')->to; - $this->smLinks['p2l'][(string) $smLink->attributes('http://www.w3.org/1999/xlink')->to][] = (string) $smLink->attributes('http://www.w3.org/1999/xlink')->from; - - } + $this->smLinks['p2l'][(string) $smLink->attributes('http://www.w3.org/1999/xlink')->to][] = (string) $smLink->attributes('http://www.w3.org/1999/xlink')->from; + + } $this->smLinksLoaded = TRUE; diff --git a/dlf/common/class.tx_dlf_indexing.php b/dlf/common/class.tx_dlf_indexing.php index 9646a8d7..71e3e079 100644 --- a/dlf/common/class.tx_dlf_indexing.php +++ b/dlf/common/class.tx_dlf_indexing.php @@ -37,6 +37,15 @@ */ class tx_dlf_indexing { + /** + * Array of autocompletable metadata + * @see loadIndexConf() + * + * @var array + * @access protected + */ + protected static $autocompleted = array (); + /** * The extension key * @@ -396,7 +405,7 @@ class tx_dlf_indexing { // Get the metadata indexing options. $_result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( - 'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadata.tokenized AS tokenized,tx_dlf_metadata.stored AS stored,tx_dlf_metadata.indexed AS indexed,tx_dlf_metadata.is_sortable AS is_sortable,tx_dlf_metadata.is_facet AS is_facet,tx_dlf_metadata.is_listed AS is_listed,tx_dlf_metadata.boost AS boost', + 'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadata.tokenized AS tokenized,tx_dlf_metadata.stored AS stored,tx_dlf_metadata.indexed AS indexed,tx_dlf_metadata.is_sortable AS is_sortable,tx_dlf_metadata.is_facet AS is_facet,tx_dlf_metadata.is_listed AS is_listed,tx_dlf_metadata.autocomplete AS autocomplete,tx_dlf_metadata.boost AS boost', 'tx_dlf_metadata', 'tx_dlf_metadata.pid='.intval($pid).tx_dlf_helper::whereClause('tx_dlf_metadata'), '', @@ -436,6 +445,12 @@ class tx_dlf_indexing { } + if ($_indexing['autocomplete']) { + + self::$autocompleted[] = $_indexing['index_name']; + + } + if ($_indexing['boost'] > 0.0) { self::$fieldboost[$_indexing['index_name']] = floatval($_indexing['boost']); @@ -502,12 +517,6 @@ class tx_dlf_indexing { $solrDoc->setField('title', $metadata['title'][0], self::$fieldboost['title']); - $solrDoc->setField('author', $metadata['author'], self::$fieldboost['author']); - - $solrDoc->setField('year', $metadata['year'], self::$fieldboost['year']); - - $solrDoc->setField('place', $metadata['place'], self::$fieldboost['place']); - $solrDoc->setField('volume', $metadata['volume'][0], self::$fieldboost['volume']); foreach ($metadata as $index_name => $data) { @@ -536,6 +545,13 @@ class tx_dlf_indexing { } + if (in_array($index_name, self::$autocompleted)) { + + // Add autocomplete values to index. + $solrDoc->setField($index_name.'_suggest', $data); + + } + } } diff --git a/dlf/ext_emconf.php b/dlf/ext_emconf.php index b536af07..64c013f6 100644 --- a/dlf/ext_emconf.php +++ b/dlf/ext_emconf.php @@ -49,7 +49,7 @@ $EM_CONF[$_EXTKEY] = array( ), 'suggests' => array( 'realurl' => '', - 't3jquery' => '2.1.2-', + 't3jquery' => '', ), ), '_md5_values_when_last_written' => '', diff --git a/dlf/ext_tables.sql b/dlf/ext_tables.sql index 09f596de..7c74b00d 100644 --- a/dlf/ext_tables.sql +++ b/dlf/ext_tables.sql @@ -91,6 +91,7 @@ CREATE TABLE tx_dlf_metadata ( is_sortable tinyint(4) DEFAULT '0' NOT NULL, is_facet tinyint(4) DEFAULT '0' NOT NULL, is_listed tinyint(4) DEFAULT '0' NOT NULL, + autocomplete tinyint(4) DEFAULT '0' NOT NULL, status tinyint(4) unsigned DEFAULT '0' NOT NULL, PRIMARY KEY (uid), diff --git a/dlf/locallang.xml b/dlf/locallang.xml index 4a4aec23..ff9de08d 100644 --- a/dlf/locallang.xml +++ b/dlf/locallang.xml @@ -56,6 +56,7 @@ + @@ -210,6 +211,7 @@ + diff --git a/dlf/plugins/oai/transform.xsl b/dlf/plugins/oai/transform.xsl index ac4be04a..74a58f03 100644 --- a/dlf/plugins/oai/transform.xsl +++ b/dlf/plugins/oai/transform.xsl @@ -1,500 +1,500 @@ - - - - - - - - -td.value { - vertical-align: top; - padding-left: 1em; - padding: 3px; -} -td.key { - background-color: #e0e0ff; - padding: 3px; - text-align: right; - border: 1px solid #c0c0c0; - white-space: nowrap; - font-weight: bold; - vertical-align: top; -} -.dcdata td.key { - background-color: #ffffe0; -} -body { - margin: 1em 2em 1em 2em; -} -h1, -h2, -h3 { - font-family: sans-serif; - clear: left; -} -h1 { - padding-bottom: 4px; - margin-bottom: 0px; -} -h2 { - margin-bottom: 0.5em; -} -h3 { - margin-bottom: 0.3em; - font-size: medium; -} -.link { - border: 1px outset #88f; - background-color: #c0c0ff; - padding: 1px 4px 1px 4px; - font-size: 80%; - text-decoration: none; - font-weight: bold; - font-family: sans-serif; - color: black; -} -.link:hover { - color: red; -} -.link:active { - color: red; - border: 1px inset #88f; - background-color: #a0a0df; -} -.oaiRecord, -.oaiRecordTitle { - background-color: #f0f0ff; - border-style: solid; - border-color: #d0d0d0; -} -h2.oaiRecordTitle { - background-color: #e0e0ff; - font-size: medium; - font-weight: bold; - padding: 10px; - border-width: 2px 2px 0px 2px; - margin: 0px; -} -.oaiRecord { - margin-bottom: 3em; - border-width: 2px; - padding: 10px; -} - -.results { - margin-bottom: 1.5em; -} -ul.quicklinks { - margin-top: 2px; - padding: 4px; - text-align: left; - border-bottom: 2px solid #ccc; - border-top: 2px solid #ccc; - clear: left; -} -ul.quicklinks li { - font-size: 80%; - display: inline; - list-stlye: none; - font-family: sans-serif; -} -p.intro { - font-size: 80%; -} - - - - -.xmlSource { - font-size: 70%; - border: solid #c0c0a0 1px; - background-color: #ffffe0; - padding: 2em 2em 2em 0em; -} -.xmlBlock { - padding-left: 2em; -} -.xmlTagName { - color: #800000; - font-weight: bold; -} -.xmlAttrName { - font-weight: bold; -} -.xmlAttrValue { - color: #0000c0; -} - - - - - - - - Goobi.Presentation: OAI 2.0 Request Results - - - -

Goobi.Presentation: OAI 2.0 Request Results

- -

You are viewing an HTML version of the XML OAI response. To see the underlying XML as it appears to any OAI harvester use your web browser's view source option or disable XSLT processing.
- More information about this XSLT is at the bottom of the page.

- - -

About the XSLT

-

An XSLT file has converted the OAI-PMH 2.0 responses into XHTML in order to make it human-readable in a browser which supports XSLT such as Mozilla Firefox and Microsoft Internet Explorer.
- The original XSLT file was created by Christopher Gutteridge at the University of Southampton as part of the GNU EPrints system, and is freely redistributable under the GPL.
- It was adapted to Goobi.Presentation by Sebastian Meyer at the Saxon State and University Library Dresden.

- - -
- - - - - - - - - - - -
Datestamp of Response
Request URL
- - -

OAI Error

-

The request could not be completed due to the following error.

-
- -
-
- -

Request was of type .

-
- - - - - - -
-
-
-
- - - - - - -
Error Code
-

-
- - - -

Repository

- - - - - - - - - - - - - - -
Name
Base URL
Protocol Version
Earliest Datestamp
Deleted Record Policy
Granularity
-
- - - Admin Email - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This is a list of metadata formats available for the record "". Use these links to view the metadata:

-
- -

This is a list of metadata formats available from this repository.

-
-
- -
- - - - -

Set

- - - - -
Name
-
- - - setSpec - - Identifiers (OAI_DC) - Identifiers (METS) - Records (OAI_DC) - Records (METS) - - - - - - -

Metadata Format

- - - - - - - -
Prefix
Namespace
Schema
-
- - - - - - - - -

OAI Record:

-
- - -
-
- - -

OAI Record Header

- - - - - - -
OAI Identifier - - OAI_DC - METS - formats -
Datestamp
- -

This record has been deleted.

-
-
- - -   - - - - - - -

There are more results.

- - - - - - - - - -
Submitted Records
Total Records
Expiration Datestamp
Resumption Token - - Resume
-
- - - - -

Unknown Metadata Format

-
- -
-
- - - - -
-

DublinCore Metadata

- - -
-
-
- - -Title - - -Author or Creator - - -Subject and Keywords - - -Description - - -Publisher - - -Other Contributor - - -Date - - -Resource Type - - -Format - - -Resource Identifier - - -Source - - -Language - - -Relation - - - - - URL - URL not shown as it is very long. - - - - - - - - - - - - - -Coverage - - -Rights Management - - - - -
- <></> -
-
- - - - - ="" - - + + + + + + + + +td.value { + vertical-align: top; + padding-left: 1em; + padding: 3px; +} +td.key { + background-color: #e0e0ff; + padding: 3px; + text-align: right; + border: 1px solid #c0c0c0; + white-space: nowrap; + font-weight: bold; + vertical-align: top; +} +.dcdata td.key { + background-color: #ffffe0; +} +body { + margin: 1em 2em 1em 2em; +} +h1, +h2, +h3 { + font-family: sans-serif; + clear: left; +} +h1 { + padding-bottom: 4px; + margin-bottom: 0px; +} +h2 { + margin-bottom: 0.5em; +} +h3 { + margin-bottom: 0.3em; + font-size: medium; +} +.link { + border: 1px outset #88f; + background-color: #c0c0ff; + padding: 1px 4px 1px 4px; + font-size: 80%; + text-decoration: none; + font-weight: bold; + font-family: sans-serif; + color: black; +} +.link:hover { + color: red; +} +.link:active { + color: red; + border: 1px inset #88f; + background-color: #a0a0df; +} +.oaiRecord, +.oaiRecordTitle { + background-color: #f0f0ff; + border-style: solid; + border-color: #d0d0d0; +} +h2.oaiRecordTitle { + background-color: #e0e0ff; + font-size: medium; + font-weight: bold; + padding: 10px; + border-width: 2px 2px 0px 2px; + margin: 0px; +} +.oaiRecord { + margin-bottom: 3em; + border-width: 2px; + padding: 10px; +} + +.results { + margin-bottom: 1.5em; +} +ul.quicklinks { + margin-top: 2px; + padding: 4px; + text-align: left; + border-bottom: 2px solid #ccc; + border-top: 2px solid #ccc; + clear: left; +} +ul.quicklinks li { + font-size: 80%; + display: inline; + list-stlye: none; + font-family: sans-serif; +} +p.intro { + font-size: 80%; +} + + + + +.xmlSource { + font-size: 70%; + border: solid #c0c0a0 1px; + background-color: #ffffe0; + padding: 2em 2em 2em 0em; +} +.xmlBlock { + padding-left: 2em; +} +.xmlTagName { + color: #800000; + font-weight: bold; +} +.xmlAttrName { + font-weight: bold; +} +.xmlAttrValue { + color: #0000c0; +} + + + + + + + + Goobi.Presentation: OAI 2.0 Request Results + + + +

Goobi.Presentation: OAI 2.0 Request Results

+ +

You are viewing an HTML version of the XML OAI response. To see the underlying XML as it appears to any OAI harvester use your web browser's view source option or disable XSLT processing.
+ More information about this XSLT is at the bottom of the page.

+ + +

About the XSLT

+

An XSLT file has converted the OAI-PMH 2.0 responses into XHTML in order to make it human-readable in a browser which supports XSLT such as Mozilla Firefox and Microsoft Internet Explorer.
+ The original XSLT file was created by Christopher Gutteridge at the University of Southampton as part of the GNU EPrints system, and is freely redistributable under the GPL.
+ It was adapted to Goobi.Presentation by Sebastian Meyer at the Saxon State and University Library Dresden.

+ + +
+ + + + + + + + + + + +
Datestamp of Response
Request URL
+ + +

OAI Error

+

The request could not be completed due to the following error.

+
+ +
+
+ +

Request was of type .

+
+ + + + + + +
+
+
+
+ + + + + + +
Error Code
+

+
+ + + +

Repository

+ + + + + + + + + + + + + + +
Name
Base URL
Protocol Version
Earliest Datestamp
Deleted Record Policy
Granularity
+
+ + + Admin Email + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

This is a list of metadata formats available for the record "". Use these links to view the metadata:

+
+ +

This is a list of metadata formats available from this repository.

+
+
+ +
+ + + + +

Set

+ + + + +
Name
+
+ + + setSpec + + Identifiers (OAI_DC) + Identifiers (METS) + Records (OAI_DC) + Records (METS) + + + + + + +

Metadata Format

+ + + + + + + +
Prefix
Namespace
Schema
+
+ + + + + + + + +

OAI Record:

+
+ + +
+
+ + +

OAI Record Header

+ + + + + + +
OAI Identifier + + OAI_DC + METS + formats +
Datestamp
+ +

This record has been deleted.

+
+
+ + +   + + + + + + +

There are more results.

+ + + + + + + + + +
Submitted Records
Total Records
Expiration Datestamp
Resumption Token + + Resume
+
+ + + + +

Unknown Metadata Format

+
+ +
+
+ + + + +
+

DublinCore Metadata

+ + +
+
+
+ + +Title + + +Author or Creator + + +Subject and Keywords + + +Description + + +Publisher + + +Other Contributor + + +Date + + +Resource Type + + +Format + + +Resource Identifier + + +Source + + +Language + + +Relation + + + + + URL + URL not shown as it is very long. + + + + + + + + + + + + + +Coverage + + +Rights Management + + + + +
+ <></> +
+
+ + + + + ="" + +
\ No newline at end of file diff --git a/dlf/plugins/search/class.tx_dlf_search.php b/dlf/plugins/search/class.tx_dlf_search.php index 87618d9a..bec0f5b0 100644 --- a/dlf/plugins/search/class.tx_dlf_search.php +++ b/dlf/plugins/search/class.tx_dlf_search.php @@ -61,7 +61,7 @@ class tx_dlf_search extends tx_dlf_plugin { tx_t3jquery::addJqJS(); - $GLOBALS['TSFE']->additionalHeaderData[$this->prefixId.'_search_suggest'] = ' '; + $GLOBALS['TSFE']->additionalHeaderData[$this->prefixId.'_search_suggest'] = ''; return TRUE; @@ -98,7 +98,7 @@ class tx_dlf_search extends tx_dlf_plugin { // Add encrypted fields to search form. if (is_array($name)) { - return ''; + return ''; } else { diff --git a/dlf/plugins/search/class.tx_dlf_search_suggest.php b/dlf/plugins/search/class.tx_dlf_search_suggest.php index 5088e69f..0f28de7a 100644 --- a/dlf/plugins/search/class.tx_dlf_search_suggest.php +++ b/dlf/plugins/search/class.tx_dlf_search_suggest.php @@ -1,82 +1,82 @@ - - * All rights reserved - * - * This script is part of the TYPO3 project. The TYPO3 project is - * free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * The GNU General Public License can be found at - * http://www.gnu.org/copyleft/gpl.html. - * - * This script 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. - * - * This copyright notice MUST APPEAR in all copies of the script! - ***************************************************************/ - -require_once (PATH_tslib.'class.tslib_pibase.php'); - -/** - * Autocompletion for the search plugin of the 'dlf' extension. - * - * @author Henrik Lochmann - * @copyright Copyright (c) 2012, Zeutschel GmbH - * @package TYPO3 - * @subpackage tx_dlf - * @access public - */ -class tx_dlf_search_suggest extends tslib_pibase { - - public $scriptRelPath = 'plugins/search/class.tx_dlf_search_suggest.php'; - - /** - * The main method of the PlugIn - * - * @access public - * - * @param string $content: The PlugIn content - * @param array $conf: The PlugIn configuration - * - * @return void - */ - public function main($content = '', $conf = array ()) { - - if (!empty(t3lib_div::_GP('encrypted')) && !empty(t3lib_div::_GP('hashed'))) { - - $core = tx_dlf_helper::decrypt(t3lib_div::_GP('encrypted'), t3lib_div::_GP('hashed')); - - } - - if (!empty($core)) { - - $url = trim(tx_dlf_solr::getSolrUrl($core), '/').'/suggest/?q='.t3lib_div::_GP('q'); - - if ($stream = fopen($url, 'r')) { - - $content .= stream_get_contents($stream); - - fclose($stream); - - } - - } - - echo $content; - - } - -} - -$cObj = t3lib_div::makeInstance('tx_dlf_search_suggest'); - -$cObj->main(); - + + * All rights reserved + * + * This script is part of the TYPO3 project. The TYPO3 project is + * free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * The GNU General Public License can be found at + * http://www.gnu.org/copyleft/gpl.html. + * + * This script 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. + * + * This copyright notice MUST APPEAR in all copies of the script! + ***************************************************************/ + +require_once (PATH_tslib.'class.tslib_pibase.php'); + +/** + * Autocompletion for the search plugin of the 'dlf' extension. + * + * @author Henrik Lochmann + * @copyright Copyright (c) 2012, Zeutschel GmbH + * @package TYPO3 + * @subpackage tx_dlf + * @access public + */ +class tx_dlf_search_suggest extends tslib_pibase { + + public $scriptRelPath = 'plugins/search/class.tx_dlf_search_suggest.php'; + + /** + * The main method of the PlugIn + * + * @access public + * + * @param string $content: The PlugIn content + * @param array $conf: The PlugIn configuration + * + * @return void + */ + public function main($content = '', $conf = array ()) { + + if (t3lib_div::_GP('encrypted') != '' && t3lib_div::_GP('hashed') != '') { + + $core = tx_dlf_helper::decrypt(t3lib_div::_GP('encrypted'), t3lib_div::_GP('hashed')); + + } + + if (!empty($core)) { + + $url = trim(tx_dlf_solr::getSolrUrl($core), '/').'/suggest/?q='.t3lib_div::_GP('q'); + + if ($stream = fopen($url, 'r')) { + + $content .= stream_get_contents($stream); + + fclose($stream); + + } + + } + + echo $content; + + } + +} + +$cObj = t3lib_div::makeInstance('tx_dlf_search_suggest'); + +$cObj->main(); + ?> \ No newline at end of file diff --git a/dlf/plugins/search/template.tmpl b/dlf/plugins/search/template.tmpl index 776dd400..6eacbe39 100644 --- a/dlf/plugins/search/template.tmpl +++ b/dlf/plugins/search/template.tmpl @@ -1,7 +1,7 @@
- + ###ADDITIONAL_INPUTS###
diff --git a/dlf/plugins/search/tx_dlf_search_suggest.js b/dlf/plugins/search/tx_dlf_search_suggest.js index cd07d388..d5985c4e 100644 --- a/dlf/plugins/search/tx_dlf_search_suggest.js +++ b/dlf/plugins/search/tx_dlf_search_suggest.js @@ -1,27 +1,29 @@ -$( - function(){ - // jQuery autocomplete integration - $(".autocomplete").autocomplete({ - source: function(request, response) { - return $.post( - '/', - { - eID: "tx_dlf_search_suggest", - q: escape(request.term), - encrypted: $("input[name='tx_dlf[encrypted]']").val(), - hashed: $("input[name='tx_dlf[hashed]']").val() - }, - function(xmlData) { - var result = new array(); - $('arr[name="suggestion"] str', xmlData).each(function(i) { - if ($(this).text().indexOf(request.term) == 0) { - result.push($(this).text()); - } - }); - return response(result); - }, - 'xml'); - } - }); - } +$( + function() { + // jQuery autocomplete integration + $(".tx-dlf-search-query").autocomplete({ + source: function(request, response) { + return $.post( + '/', + { + eID: "tx_dlf_search_suggest", + q: escape(request.term), + encrypted: $("input[name='tx_dlf[encrypted]']").val(), + hashed: $("input[name='tx_dlf[hashed]']").val() + }, + function(xmlData) { + var result = new array(); + $('arr[name="suggestion"] str', xmlData).each(function(i) { + if ($(this).text().indexOf(request.term) == 0) { + result.push($(this).text()); + } + }); + return response(result); + }, + 'xml'); + }, + minLength: 3, + appendTo: ".tx-dlf-search-form" + }); + } ); \ No newline at end of file diff --git a/dlf/tca.php b/dlf/tca.php index 8c82e871..f96a44fd 100644 --- a/dlf/tca.php +++ b/dlf/tca.php @@ -587,6 +587,14 @@ $TCA['tx_dlf_metadata'] = array ( 'default' => 0, ), ), + 'autocomplete' => array ( + 'exlude' => 1, + 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.autocomplete', + 'config' => array ( + 'type' => 'check', + 'default' => 0, + ), + ), 'status' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.status', @@ -606,7 +614,7 @@ $TCA['tx_dlf_metadata'] = array ( '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab1, label;;1;;1-1-1, encoded;;;;2-2-2, xpath, xpath_sorting, default_value;;;;3-3-3, wrap, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab3, hidden;;;;1-1-1, status;;;;2-2-2'), ), 'palettes' => array ( - '1' => array ('showitem' => 'index_name, --linebreak--, tokenized, stored, indexed, boost, --linebreak--, is_sortable, is_facet, is_listed', 'canNotCollapse' => 1), + '1' => array ('showitem' => 'index_name, --linebreak--, tokenized, stored, indexed, boost, --linebreak--, is_sortable, is_facet, is_listed, autocomplete', 'canNotCollapse' => 1), ), );