Commit 2c00e8b4 authored by Dainis Abols's avatar Dainis Abols
Browse files

Swapped to person type view

parent 2e91f983
......@@ -67,38 +67,16 @@ class PersonController extends ActionController
{
$this->createButtons();
$args = GeneralUtility::_GP('tx_lunames_web_lunamesnames');
// Initialize the dbList object:
$dbList = GeneralUtility::makeInstance(DatabaseRecordList::class);
$dbList->script = GeneralUtility::getIndpEnv('REQUEST_URI');
$dbList->allFields = 1;
$dbList->thumbs = 1;
$dbList->clickTitleMode = 'edit';
$dbList->calcPerms = $GLOBALS['BE_USER']->calcPerms($this->pageInformation);
$dbList->disableSingleTableView = 1;
$dbList->dontShowClipControlPanels = true;
$pointer = MathUtility::forceIntegerInRange(GeneralUtility::_GP('pointer'), 0);
$levelLimit = 0;
$itemLimit = 20;
$searchField = $args['search_field'];
$dbList->start($this->storagePageId, 'tx_lunames_domain_model_person', $pointer, $searchField, $levelLimit, $itemLimit);
$dbList->setDispFields();
$dbList->noControlPanels = true;
$dbList->setFields = [
'tx_lunames_domain_model_person' => GeneralUtility::trimExplode(',', 'given_name,family_name,year_of_birth,year_of_death', true),
];
$dbList->generateList();
$assignedValues = [
'personList' => $dbList->HTMLcode,
'personCount' => $dbList->counter,
'formSubmitted' => $args['formSubmitted'],
'searchTerm' => $searchField,
'requestUri' => GeneralUtility::quoteJSvalue(rawurlencode(GeneralUtility::getIndpEnv('REQUEST_URI'))),
];
$uriBuilder = GeneralUtility::makeInstance(BackendUriBuilder::class);
$this->view->assignMultiple($assignedValues);
$link = (string)$uriBuilder->buildUriFromRoute(
'web_list',
[
'id' => $this->storagePageId,
'table' => 'tx_lunames_domain_model_person'
]
);
HttpUtility::redirect($link);
}
/**
......
{
"name": "luitd/lu-names",
"version": "1.0.10",
"version": "1.0.11",
"description": "Jews in Latvia names database extension for TYPO3",
"type": "typo3-cms-extension",
"keywords": [
......
......@@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [
'author_email' => 'lauris.karklis@lu.lv, dainis.abols@lu.lv',
'state' => 'stable',
'clearCacheOnLoad' => true,
'version' => '1.0.10',
'version' => '1.0.11',
'constraints' => [
'depends' => [
'typo3' => '9.5.0-9.9.99',
......
......@@ -4,7 +4,7 @@ Jews in Latvia names database extension for TYPO3TYPO3 Extension for Regulations
## Version
1.0.10
1.0.11
## Dependecies
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment