<?php
global $lang;

$config->doc = new stdclass();
$config->doc->createlib = new stdclass();
$config->doc->editlib   = new stdclass();
$config->doc->create    = new stdclass();
$config->doc->edit      = new stdclass();

$config->doc->createlib->requiredFields = 'name';
$config->doc->editlib->requiredFields   = 'name';
$config->doc->create->requiredFields = 'lib,title';
$config->doc->edit->requiredFields   = 'title';

$config->doc->customObjectLibs = 'files,customFiles';
$config->doc->notArticleType   = '';
$config->doc->officeTypes      = 'word,ppt,excel';

$config->doc->custom = new stdclass();
$config->doc->custom->objectLibs = $config->doc->customObjectLibs;
$config->doc->custom->showLibs   = 'zero,children';

$config->doc->editor = new stdclass();
$config->doc->editor->create = array('id' => 'content', 'tools' => 'fullTools');
$config->doc->editor->edit   = array('id' => 'content', 'tools' => 'fullTools');
$config->doc->editor->view   = array('id' => 'comment,lastComment', 'tools' => 'simple');

$config->doc->markdown = new stdclass();
$config->doc->markdown->create = array('id' => 'contentMarkdown', 'tools' => 'withchange');

$config->doc->iconList['html']     = 'rich-text';
$config->doc->iconList['markdown'] = 'markdown';
$config->doc->iconList['url']      = 'text-link';
$config->doc->iconList['word']     = 'word';
$config->doc->iconList['ppt']      = 'ppt';
$config->doc->iconList['excel']    = 'excel';

$config->doc->search['module']                   = 'doc';
$config->doc->search['fields']['title']          = $lang->doc->title;
$config->doc->search['fields']['id']             = $lang->doc->id;
$config->doc->search['fields']['product']        = $lang->doc->product;
$config->doc->search['fields']['execution']      = $lang->doc->execution;
$config->doc->search['fields']['lib']            = $lang->doc->lib;
$config->doc->search['fields']['module']         = $lang->doc->module;
$config->doc->search['fields']['keywords']       = $lang->doc->keywords;
$config->doc->search['fields']['addedBy']        = $lang->doc->addedBy;
$config->doc->search['fields']['addedDate']      = $lang->doc->addedDate;
$config->doc->search['fields']['editedBy']       = $lang->doc->editedBy;
$config->doc->search['fields']['editedDate']     = $lang->doc->editedDate;
$config->doc->search['fields']['version']        = $lang->doc->version;

$config->doc->search['params']['title']         = array('operator' => 'include', 'control' => 'input',  'values' => '');
$config->doc->search['params']['keywords']      = array('operator' => 'include', 'control' => 'input',  'values' => '');
$config->doc->search['params']['product']       = array('operator' => '=',       'control' => 'select', 'values' => '');
$config->doc->search['params']['module']        = array('operator' => 'belong',  'control' => 'select', 'values' => '');
$config->doc->search['params']['execution']     = array('operator' => '=',       'control' => 'select', 'values' => '');
$config->doc->search['params']['lib']           = array('operator' => '=',       'control' => 'select', 'values' => '' );
$config->doc->search['params']['addedBy']       = array('operator' => '=',       'control' => 'select', 'values' => 'users');
$config->doc->search['params']['addedDate']     = array('operator' => '=',       'control' => 'input',  'values' => '', 'class' => 'date');
$config->doc->search['params']['editedBy']      = array('operator' => '=',       'control' => 'select', 'values' => 'users');
$config->doc->search['params']['editedDate']    = array('operator' => '=',       'control' => 'input',  'values' => '', 'class' => 'date');
$config->doc->search['params']['version']       = array('operator' => '=',       'control' => 'input',  'values' => '');
