* 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 ( 'showRecordFieldList' => 'title,volume,author,year,place,uid,prod_id,location,oai_id,opac_id,union_id,urn', '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, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.prod_id', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'nospace', ), ), 'location' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.location', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 1024, 'eval' => 'required,uniqueInPid', ), ), 'record_id' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.record_id', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'nospace,uniqueInPid', ), ), 'opac_id' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.opac_id', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'nospace', ), ), 'union_id' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.union_id', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'nospace', ), ), 'urn' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.urn', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'nospace', ), ), 'purl' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.purl', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'nospace', ), ), 'title' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.title', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 1024, 'eval' => 'trim', ), ), 'title_sorting' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.title_sorting', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 1024, 'eval' => 'trim', ), ), 'author' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.author', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'trim', ), ), 'author_sorting' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.author_sorting', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'trim', ), ), 'year' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.year', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'trim', ), ), 'year_sorting' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.year_sorting', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'trim', ), ), 'place' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.place', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'trim', ), ), 'place_sorting' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.place_sorting', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'trim', ), ), 'metadata' => array ( 'config' => array ( 'type' => 'passthrough', ), ), 'structure' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.structure', '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, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.partof', 'config' => array ( 'type' => 'select', 'items' => array ( array ('LLL:EXT:dlf/locallang.xml:tx_dlf_documents.partof.none', 0), ), '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, ), ), 'volume' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.volume', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'trim', ), ), 'volume_sorting' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.volume_sorting', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'trim,int', ), ), 'collections' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.collections', '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, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.owner', '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, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.solrcore', 'config' => array ( 'type' => 'select', 'items' => array ( array ('LLL:EXT:dlf/locallang.xml:tx_dlf_documents.solrcore.none', 0), ), '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, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_documents.status', 'config' => array ( 'type' => 'select', 'items' => array ( array ('LLL:EXT:dlf/locallang.xml:tx_dlf_documents.status.default', 0), ), 'size' => 1, 'minitems' => 1, 'maxitems' => 1, 'default' => 0, ), ), ), 'types' => array ( '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'), ), '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), '5' => array ('showitem' => 'partof, --linebreak--, volume, volume_sorting', 'canNotCollapse' => 1), ), ); $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, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.toplevel', 'config' => array ( 'type' => 'check', 'default' => 0, ), ), 'label' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.label', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'required,trim', ), ), 'index_name' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.index_name', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'required,nospace', ), ), 'oai_name' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.oai_name', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'trim', ), ), 'status' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_structures.status', 'config' => array ( 'type' => 'select', 'items' => array ( array ('LLL:EXT:dlf/locallang.xml:tx_dlf_structures.status.default', 0), ), 'size' => 1, 'minitems' => 1, 'maxitems' => 1, 'default' => 0, ), ), ), 'types' => array ( '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'), ), '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, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.label', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'required,trim', ), ), 'index_name' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.index_name', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 255, 'eval' => 'required,nospace', ), ), 'encoded' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.encoded', 'config' => array ( 'type' => 'select', 'items' => array ( array ('LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.encoded.none', 0), ), '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, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.xpath', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 1024, 'eval' => 'trim', ), ), 'default_value' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.default_value', 'config' => array ( 'type' => 'input', 'size' => 30, 'max' => 1024, 'eval' => 'trim', ), ), 'wrap' => array ( 'exclude' => 1, 'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_metadata.wrap', 'config' => array ( 'type' => 'text', 'cols' => 48, 'rows' => 20, 'wrap' => 'off', 'default' => "key.wrap =