2011-03-09 16:36:27 +01:00
< ? php
/***************************************************************
* Copyright notice
*
2011-04-01 17:53:16 +02:00
* ( c ) 2011 Sebastian Meyer < sebastian . meyer @ slub - dresden . de >
2011-03-09 16:36:27 +01:00
* 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 !
***************************************************************/
if ( ! defined ( 'TYPO3_MODE' )) die ( 'Access denied.' );
$TCA [ 'tx_dlf_documents' ] = array (
'ctrl' => $TCA [ 'tx_dlf_documents' ][ 'ctrl' ],
'interface' => array (
2011-04-18 08:36:30 +02:00
'showRecordFieldList' => 'title,volume,author,year,place,uid,prod_id,location,oai_id,opac_id,union_id,urn' ,
2011-03-09 16:36:27 +01:00
'maxDBListItems' => 50 ,
'maxSingleDBListItems' => 250 ,
),
'feInterface' => $TCA [ 'tx_dlf_documents' ][ 'feInterface' ],
'columns' => array (
'hidden' => array (
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden' ,
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'fe_group' => array (
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group' ,
'config' => array (
'type' => 'select' ,
'items' => array (
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login' , - 1 ),
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.any_login' , - 2 ),
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.usergroups' , '--div--' ),
),
'foreign_table' => 'fe_groups' ,
'size' => 5 ,
'autoSizeMax' => 15 ,
'minitems' => 0 ,
'maxitems' => 20 ,
'exclusiveKeys' => '-1,-2' ,
),
),
'prod_id' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.prod_id' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'nospace' ,
),
),
'location' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.location' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 1024 ,
'eval' => 'required,uniqueInPid' ,
),
),
'record_id' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.record_id' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'nospace,uniqueInPid' ,
),
),
'opac_id' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.opac_id' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'nospace' ,
),
),
'union_id' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.union_id' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'nospace' ,
),
),
'urn' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.urn' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'nospace' ,
),
),
'purl' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.purl' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'nospace' ,
),
),
'title' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.title' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 1024 ,
'eval' => 'trim' ,
),
),
'title_sorting' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.title_sorting' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 1024 ,
'eval' => 'trim' ,
),
),
'author' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.author' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'trim' ,
),
),
'author_sorting' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.author_sorting' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'trim' ,
),
),
'year' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.year' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'trim' ,
),
),
'year_sorting' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.year_sorting' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'trim' ,
),
),
'place' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.place' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'trim' ,
),
),
'place_sorting' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.place_sorting' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'trim' ,
),
),
'metadata' => array (
'config' => array (
'type' => 'passthrough' ,
),
),
'structure' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.structure' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'foreign_table' => 'tx_dlf_structures' ,
'foreign_table_where' => 'AND tx_dlf_structures.pid=###CURRENT_PID### AND tx_dlf_structures.sys_language_uid IN (-1,0) AND tx_dlf_structures.toplevel=1 ORDER BY tx_dlf_structures.label' ,
'size' => 1 ,
'minitems' => 1 ,
'maxitems' => 1 ,
),
),
'partof' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.partof' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'items' => array (
2011-11-11 15:48:17 +01:00
array ( 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.partof.none' , 0 ),
2011-03-09 16:36:27 +01:00
),
'foreign_table' => 'tx_dlf_documents' ,
'foreign_table_where' => 'AND tx_dlf_documents.pid=###CURRENT_PID### ORDER BY tx_dlf_documents.title_sorting' ,
'size' => 1 ,
'minitems' => 1 ,
'maxitems' => 1 ,
'default' => 0 ,
),
),
2011-04-18 08:36:30 +02:00
'volume' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.volume' ,
2011-04-18 08:36:30 +02:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'trim' ,
),
),
2011-03-09 16:36:27 +01:00
'volume_sorting' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.volume_sorting' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'trim,int' ,
),
),
'collections' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.collections' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'foreign_table' => 'tx_dlf_collections' ,
'foreign_table_where' => 'AND tx_dlf_collections.pid=###CURRENT_PID### AND tx_dlf_collections.sys_language_uid IN (-1,0) ORDER BY tx_dlf_collections.label' ,
'size' => 5 ,
'autoSizeMax' => 15 ,
'minitems' => 1 ,
'maxitems' => 1024 ,
'MM' => 'tx_dlf_relations' ,
'MM_match_fields' => array (
'ident' => 'docs_colls' ,
),
),
),
'owner' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.owner' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'foreign_table' => 'tx_dlf_libraries' ,
'foreign_table_where' => 'AND tx_dlf_libraries.sys_language_uid IN (-1,0) ORDER BY tx_dlf_libraries.label' ,
'size' => 1 ,
'minitems' => 0 ,
'maxitems' => 1 ,
),
),
'solrcore' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.solrcore' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'items' => array (
2011-11-11 15:48:17 +01:00
array ( 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.solrcore.none' , 0 ),
2011-03-09 16:36:27 +01:00
),
'foreign_table' => 'tx_dlf_solrcores' ,
'foreign_table_where' => 'AND tx_dlf_solrcores.pid=0 ORDER BY tx_dlf_solrcores.label' ,
'size' => 1 ,
'minitems' => 1 ,
'maxitems' => 1 ,
),
),
'status' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.status' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'items' => array (
2011-11-11 15:48:17 +01:00
array ( 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.status.default' , 0 ),
2011-03-09 16:36:27 +01:00
),
'size' => 1 ,
'minitems' => 1 ,
'maxitems' => 1 ,
'default' => 0 ,
),
),
),
'types' => array (
2011-11-11 15:48:17 +01:00
'0' => array ( 'showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_documents.tab1, title;;1;;1-1-1, author;;2, year;;3, place;;4, structure;;5;;2-2-2, collections;;;;3-3-3, metadata, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_documents.tab2, location;;;;1-1-1, record_id, prod_id;;;;2-2-2, oai_id;;;;3-3-3, opac_id, union_id, urn, purl;;;;4-4-4, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_documents.tab3, hidden;;;;1-1-1, fe_group;;;;2-2-2, status;;;;3-3-3, owner;;;;4-4-4' ),
2011-03-09 16:36:27 +01:00
),
'palettes' => array (
'1' => array ( 'showitem' => 'title_sorting' , 'canNotCollapse' => 1 ),
'2' => array ( 'showitem' => 'author_sorting' , 'canNotCollapse' => 1 ),
'3' => array ( 'showitem' => 'year_sorting' , 'canNotCollapse' => 1 ),
'4' => array ( 'showitem' => 'place_sorting' , 'canNotCollapse' => 1 ),
2011-04-18 08:36:30 +02:00
'5' => array ( 'showitem' => 'partof, --linebreak--, volume, volume_sorting' , 'canNotCollapse' => 1 ),
2011-03-09 16:36:27 +01:00
),
);
$TCA [ 'tx_dlf_structures' ] = array (
'ctrl' => $TCA [ 'tx_dlf_structures' ][ 'ctrl' ],
'interface' => array (
'showRecordFieldList' => 'label,index_name,oai_name,toplevel' ,
),
'feInterface' => $TCA [ 'tx_dlf_structures' ][ 'feInterface' ],
'columns' => array (
'sys_language_uid' => array (
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language' ,
'config' => array (
'type' => 'select' ,
'foreign_table' => 'sys_language' ,
'foreign_table_where' => 'ORDER BY sys_language.title' ,
'items' => array (
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.allLanguages' , - 1 ),
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.default_value' , 0 ),
),
),
),
'l18n_parent' => array (
'displayCond' => 'FIELD:sys_language_uid:>:0' ,
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent' ,
'config' => array (
'type' => 'select' ,
'items' => array (
array ( '' , 0 ),
),
'foreign_table' => 'tx_dlf_structures' ,
'foreign_table_where' => 'AND tx_dlf_structures.pid=###CURRENT_PID### AND tx_dlf_structures.sys_language_uid IN (-1,0)' ,
),
),
'l18n_diffsource' => array (
'config' => array (
'type' => 'passthrough' ,
),
),
'hidden' => array (
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden' ,
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'toplevel' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.toplevel' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'label' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.label' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'required,trim' ,
),
),
'index_name' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.index_name' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'required,nospace' ,
),
),
'oai_name' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.oai_name' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'trim' ,
),
),
'status' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.status' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'items' => array (
2011-11-11 15:48:17 +01:00
array ( 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.status.default' , 0 ),
2011-03-09 16:36:27 +01:00
),
'size' => 1 ,
'minitems' => 1 ,
'maxitems' => 1 ,
'default' => 0 ,
),
),
),
'types' => array (
2011-11-11 15:48:17 +01:00
'0' => array ( 'showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_structures.tab1, toplevel;;;;1-1-1, label;;1, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_structures.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_structures.tab3, hidden;;;;1-1-1, status;;;;2-2-2' ),
2011-03-09 16:36:27 +01:00
),
'palettes' => array (
'1' => array ( 'showitem' => 'index_name, --linebreak--, oai_name' , 'canNotCollapse' => 1 ),
),
);
$TCA [ 'tx_dlf_metadata' ] = array (
'ctrl' => $TCA [ 'tx_dlf_metadata' ][ 'ctrl' ],
'interface' => array (
'showRecordFieldList' => 'label,index_name,encoding,xpath,default,tokenized,stored,indexed,is_sortable,is_facet' ,
),
'feInterface' => $TCA [ 'tx_dlf_metadata' ][ 'feInterface' ],
'columns' => array (
'sys_language_uid' => array (
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language' ,
'config' => array (
'type' => 'select' ,
'foreign_table' => 'sys_language' ,
'foreign_table_where' => 'ORDER BY sys_language.title' ,
'items' => array (
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.allLanguages' , - 1 ),
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.default_value' , 0 ),
),
),
),
'l18n_parent' => array (
'displayCond' => 'FIELD:sys_language_uid:>:0' ,
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent' ,
'config' => array (
'type' => 'select' ,
'items' => array (
array ( '' , 0 ),
),
'foreign_table' => 'tx_dlf_metadata' ,
'foreign_table_where' => 'AND tx_dlf_metadata.pid=###CURRENT_PID### AND tx_dlf_metadata.sys_language_uid IN (-1,0)' ,
),
),
'l18n_diffsource' => array (
'config' => array (
'type' => 'passthrough'
),
),
'hidden' => array (
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden' ,
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'label' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.label' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'required,trim' ,
),
),
'index_name' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.index_name' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'required,nospace' ,
),
),
'encoded' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.encoded' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'items' => array (
2011-11-11 15:48:17 +01:00
array ( 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.encoded.none' , 0 ),
2011-03-09 16:36:27 +01:00
),
'foreign_table' => 'tx_dlf_formats' ,
'foreign_table_where' => 'ORDER BY tx_dlf_formats.type' ,
'size' => 1 ,
'minitems' => 1 ,
'maxitems' => 1 ,
'default' => 0 ,
),
),
'xpath' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.xpath' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 1024 ,
'eval' => 'trim' ,
),
),
'default_value' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.default_value' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 1024 ,
'eval' => 'trim' ,
),
),
'wrap' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.wrap' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'text' ,
'cols' => 48 ,
'rows' => 20 ,
'wrap' => 'off' ,
'default' => " key.wrap = <dt>|</dt> \n value.wrap = <dd>|</dd> " ,
),
'defaultExtras' => 'nowrap:fixed-font:enable-tab' ,
),
'tokenized' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tokenized' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'stored' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.stored' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'indexed' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.indexed' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'check' ,
'default' => 1 ,
),
),
'boost' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.boost' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 5 ,
'max' => 64 ,
'default' => '1.00' ,
'eval' => 'double2' ,
),
),
'is_sortable' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.is_sortable' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'is_facet' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.is_facet' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'is_listed' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.is_listed' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'status' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.status' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'items' => array (
2011-11-11 15:48:17 +01:00
array ( 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.status.default' , 0 ),
2011-03-09 16:36:27 +01:00
),
'size' => 1 ,
'minitems' => 1 ,
'maxitems' => 1 ,
'default' => 0 ,
),
),
),
'types' => array (
2011-11-11 15:48:17 +01:00
'0' => array ( 'showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.tab1, label;;1;;1-1-1, encoded;;;;2-2-2, xpath, 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' ),
2011-03-09 16:36:27 +01:00
),
'palettes' => array (
'1' => array ( 'showitem' => 'index_name, --linebreak--, tokenized, stored, indexed, boost, --linebreak--, is_sortable, is_facet, is_listed' , 'canNotCollapse' => 1 ),
),
);
$TCA [ 'tx_dlf_formats' ] = array (
'ctrl' => $TCA [ 'tx_dlf_formats' ][ 'ctrl' ],
'interface' => array (
'showRecordFieldList' => 'type,class' ,
),
'feInterface' => $TCA [ 'tx_dlf_formats' ][ 'feInterface' ],
'columns' => array (
'type' => array (
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.type' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'required,nospace,alphanum_x,unique' ,
),
),
'other_type' => array (
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.other_type' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'root' => array (
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.root' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'required,nospace,alphanum_x,unique' ,
),
),
'namespace' => array (
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.namespace' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 1024 ,
'eval' => 'required,nospace,unique' ,
),
),
'class' => array (
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_formats.class' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 1024 ,
'eval' => 'required,nospace,alphanum_x,unique' ,
),
),
),
'types' => array (
2011-11-11 15:48:17 +01:00
'0' => array ( 'showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_formats.tab1, type;;;;1-1-1, other, root;;;;2-2-2, namespace, class;;;;3-3-3' ),
2011-03-09 16:36:27 +01:00
),
'palettes' => array (
'1' => array ( 'showitem' => '' ),
),
);
$TCA [ 'tx_dlf_solrcores' ] = array (
'ctrl' => $TCA [ 'tx_dlf_solrcores' ][ 'ctrl' ],
'interface' => array (
'showRecordFieldList' => 'label,index_name' ,
),
'feInterface' => $TCA [ 'tx_dlf_solrcores' ][ 'feInterface' ],
'columns' => array (
'label' => array (
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores.label' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'required,trim,unique' ,
),
),
'index_name' => array (
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores.index_name' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'form_type' => 'none' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'alphanum,unique' ,
),
),
),
'types' => array (
2011-11-11 15:48:17 +01:00
'0' => array ( 'showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_solrcores.tab1, label;;;;1-1-1, index_name;;;;2-2-2' ),
2011-03-09 16:36:27 +01:00
),
'palettes' => array (
'1' => array ( 'showitem' => '' ),
),
);
$TCA [ 'tx_dlf_collections' ] = array (
'ctrl' => $TCA [ 'tx_dlf_collections' ][ 'ctrl' ],
'interface' => array (
'showRecordFieldList' => 'label,index_name,oai_name,fe_cruser_id' ,
),
'feInterface' => $TCA [ 'tx_dlf_collections' ][ 'feInterface' ],
'columns' => array (
'sys_language_uid' => array (
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language' ,
'config' => array (
'type' => 'select' ,
'foreign_table' => 'sys_language' ,
'foreign_table_where' => 'ORDER BY sys_language.title' ,
'items' => array (
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.allLanguages' , - 1 ),
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.default_value' , 0 ),
),
),
),
'l18n_parent' => array (
'displayCond' => 'FIELD:sys_language_uid:>:0' ,
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent' ,
'config' => array (
'type' => 'select' ,
'items' => array (
array ( '' , 0 ),
),
'foreign_table' => 'tx_dlf_collections' ,
'foreign_table_where' => 'AND tx_dlf_collections.pid=###CURRENT_PID### AND tx_dlf_collections.sys_language_uid IN (-1,0)' ,
),
),
'l18n_diffsource' => array (
'config' => array (
'type' => 'passthrough'
),
),
'hidden' => array (
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden' ,
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'fe_group' => array (
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group' ,
'config' => array (
'type' => 'select' ,
'items' => array (
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login' , - 1 ),
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.any_login' , - 2 ),
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.usergroups' , '--div--' ),
),
'foreign_table' => 'fe_groups' ,
'size' => 5 ,
'autoSizeMax' => 15 ,
'minitems' => 0 ,
'maxitems' => 20 ,
'exclusiveKeys' => '-1,-2' ,
),
),
'label' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.label' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'required,trim,uniqueInPid' ,
),
),
'index_name' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.index_name' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'form_type' => 'none' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'required,uniqueInPid' ,
),
),
'oai_name' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.oai_name' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
2011-04-01 17:31:56 +02:00
'eval' => 'nospace,alphanum_x,uniqueInPid' ,
2011-03-09 16:36:27 +01:00
),
),
'description' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.description' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'text' ,
'cols' => 30 ,
'rows' => 10 ,
'wrap' => 'virtual' ,
),
'defaultExtras' => 'richtext[undo,redo,cut,copy,paste,link,image,line,acronym,chMode,blockstylelabel,formatblock,blockstyle,textstylelabel,textstyle,bold,italic,unorderedlist,orderedlist]:rte_transform[mode=ts_css]' ,
),
'documents' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.documents' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'foreign_table' => 'tx_dlf_documents' ,
'foreign_table_where' => 'AND tx_dlf_documents.pid=###CURRENT_PID### ORDER BY tx_dlf_documents.title_sorting' ,
'size' => 5 ,
'autoSizeMax' => 15 ,
'minitems' => 0 ,
'maxitems' => 1048576 ,
'MM' => 'tx_dlf_relations' ,
'MM_match_fields' => array (
'ident' => 'docs_colls' ,
),
'MM_opposite_field' => 'collections' ,
),
),
'owner' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.owner' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'items' => array (
2011-11-11 15:48:17 +01:00
array ( 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.owner.none' , 0 ),
2011-03-09 16:36:27 +01:00
),
'foreign_table' => 'tx_dlf_libraries' ,
'foreign_table_where' => 'AND tx_dlf_libraries.sys_language_uid IN (-1,0) ORDER BY tx_dlf_libraries.label' ,
'size' => 1 ,
'minitems' => 1 ,
'maxitems' => 1 ,
),
),
'fe_cruser_id' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_cruser_id' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'items' => array (
2011-11-11 15:48:17 +01:00
array ( 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_cruser_id.none' , 0 ),
2011-03-09 16:36:27 +01:00
),
'foreign_table' => 'fe_users' ,
'foreign_table_where' => 'ORDER BY fe_users.username' ,
'size' => 1 ,
'minitems' => 1 ,
'maxitems' => 1 ,
),
),
'fe_admin_lock' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_admin_lock' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'check' ,
'default' => 0 ,
),
),
'status' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.status' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'select' ,
'items' => array (
2011-11-11 15:48:17 +01:00
array ( 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.status.default' , 0 ),
2011-03-09 16:36:27 +01:00
),
'size' => 1 ,
'minitems' => 1 ,
'maxitems' => 1 ,
'default' => 0 ,
),
),
),
'types' => array (
2011-11-11 15:48:17 +01:00
'0' => array ( 'showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab1, label;;1;;1-1-1, description;;;;2-2-2, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab3, hidden;;;;1-1-1, fe_group;;;;2-2-2, status;;;;3-3-3, owner;;;;4-4-4, fe_cruser_id;;2' ),
2011-03-09 16:36:27 +01:00
),
'palettes' => array (
'1' => array ( 'showitem' => 'index_name, --linebreak--, oai_name' , 'canNotCollapse' => 1 ),
'2' => array ( 'showitem' => 'fe_admin_lock' , 'canNotCollapse' => 1 ),
),
);
$TCA [ 'tx_dlf_libraries' ] = array (
'ctrl' => $TCA [ 'tx_dlf_libraries' ][ 'ctrl' ],
'interface' => array (
'showRecordFieldList' => 'label,website,contact' ,
),
'feInterface' => $TCA [ 'tx_dlf_libraries' ][ 'feInterface' ],
'columns' => array (
'sys_language_uid' => array (
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language' ,
'config' => array (
'type' => 'select' ,
'foreign_table' => 'sys_language' ,
'foreign_table_where' => 'ORDER BY sys_language.title' ,
'items' => array (
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.allLanguages' , - 1 ),
array ( 'LLL:EXT:lang/locallang_general.xml:LGL.default_value' , 0 ),
),
),
),
'l18n_parent' => array (
'displayCond' => 'FIELD:sys_language_uid:>:0' ,
'exclude' => 1 ,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent' ,
'config' => array (
'type' => 'select' ,
'items' => array (
array ( '' , 0 ),
),
'foreign_table' => 'tx_dlf_libraries' ,
'foreign_table_where' => 'AND tx_dlf_libraries.pid=###CURRENT_PID### AND tx_dlf_libraries.sys_language_uid IN (-1,0)' ,
),
),
'l18n_diffsource' => array (
'config' => array (
'type' => 'passthrough'
),
),
'label' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.label' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'required,trim,uniqueInPid' ,
),
),
'index_name' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.index_name' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'form_type' => 'none' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'required,uniqueInPid' ,
),
),
'website' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.website' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'nospace' ,
),
),
'contact' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.contact' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'nospace' ,
),
),
'image' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.image' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'group' ,
'internal_type' => 'file' ,
'allowed' => $GLOBALS [ 'TYPO3_CONF_VARS' ][ 'GFX' ][ 'imagefile_ext' ],
'max_size' => 256 ,
'uploadfolder' => 'uploads/tx_dlf' ,
'show_thumbs' => 1 ,
'size' => 1 ,
'minitems' => 0 ,
'maxitems' => 1 ,
),
),
'oai_label' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.oai_label' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
),
),
'oai_base' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.oai_base' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'group' ,
'internal_type' => 'db' ,
'allowed' => 'pages' ,
'size' => 1 ,
'minitems' => 0 ,
'maxitems' => 1 ,
),
),
'opac_label' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.opac_label' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
),
),
'opac_base' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.opac_base' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'nospace' ,
),
),
'union_label' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.union_label' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
),
),
'union_base' => array (
'exclude' => 1 ,
2011-11-11 15:48:17 +01:00
'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.union_base' ,
2011-03-09 16:36:27 +01:00
'config' => array (
'type' => 'input' ,
'size' => 30 ,
'max' => 255 ,
'eval' => 'nospace' ,
),
),
),
'types' => array (
2011-11-11 15:48:17 +01:00
'0' => array ( 'showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab1, label;;1;;1-1-1, website;;;;2-2-2, contact, image;;;;3-3-3, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_libraries.tab3, oai_label;;2;;1-1-1, opac_label;;3;;2-2-2, union_label;;4;;3-3-3' ),
2011-03-09 16:36:27 +01:00
),
'palettes' => array (
'1' => array ( 'showitem' => 'index_name' , 'canNotCollapse' => 1 ),
'2' => array ( 'showitem' => 'oai_base' , 'canNotCollapse' => 1 ),
'3' => array ( 'showitem' => 'opac_base' , 'canNotCollapse' => 1 ),
'4' => array ( 'showitem' => 'union_base' , 'canNotCollapse' => 1 ),
),
);
?>