Skip to content

Commit ff24c52

Browse files
author
Alexander Bigga
authored
Merge pull request #4 from slub/going-kitodo-presentation-4
Make compatible with Kitodo.Presentation 4.0
2 parents ea6dc29 + 0ae1926 commit ff24c52

File tree

5 files changed

+91
-132
lines changed

5 files changed

+91
-132
lines changed

Classes/Controller/SearchController.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
/**
3434
* Class SearchController
3535
*/
36-
class SearchController extends AbstractController {
36+
class SearchController extends AbstractController
37+
{
3738

3839
/**
3940
* searchRepository
@@ -48,7 +49,8 @@ class SearchController extends AbstractController {
4849
*
4950
* @return void
5051
*/
51-
public function listAction() {
52+
public function listAction()
53+
{
5254
$userUid = $this->user->getUid();
5355

5456
$this->view->assignMultiple([
@@ -63,7 +65,8 @@ public function listAction() {
6365
*
6466
* @return void
6567
*/
66-
public function saveAction() {
68+
public function saveAction()
69+
{
6770

6871
}
6972

@@ -76,16 +79,16 @@ public function createAction()
7679
{
7780
if($this->user !==NULL && $this->user->getUid()) {
7881

79-
$searchParams = GeneralUtility::_GP('tx_dlf');
82+
$searchParams = GeneralUtility::_GP('tx_dlf_search');
8083

81-
if(array_key_exists('query',$searchParams) && array_key_exists('fulltext',$searchParams)) {
84+
if (is_array($searchParams) && array_key_exists('query',$searchParams['searchParameter']) && array_key_exists('fulltext',$searchParams['searchParameter'])) {
8285
$arguments = $this->request->getArguments();
8386

8487
$searchRequest = new Search();
8588
$title = $arguments['title'] ? $arguments['title'] : LocalizationUtility::translate('search', 'DigasFeManagement').': '.strftime('%d.%m.%y - %H:%M');
8689

8790
$searchRequest->setTitle($title);
88-
$searchRequest->setSearchParams($searchParams);
91+
$searchRequest->setSearchParams($searchParams['searchParameter']);
8992
$searchRequest->setFeUser($this->user->getUid());
9093

9194
$this->searchRepository->add($searchRequest);
@@ -95,7 +98,7 @@ public function createAction()
9598
'DigasFeManagement'
9699
);
97100

98-
if(GeneralUtility::_GET('type')>0) {
101+
if (GeneralUtility::_GET('type')>0) {
99102
return $statusMessage;
100103
}
101104

Resources/Private/Extensions/slub_web_digas/Layouts/KitodoPage.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
data-namespace-typo3-fluid="true"
66
lang="en">
77

8-
<dv:titleTag
9-
title="<dc:xpath xpath='(//mets:dmdSec/mets:mdWrap/mets:xmlData/mods:mods/mods:titleInfo[not(@type=\"alternative\")]/mods:nonSort | //mets:dmdSec/mets:mdWrap/mets:xmlData/mods:mods/mods:titleInfo[not(@type=\"alternative\")]/mods:title | //mets:dmdSec/mets:mdWrap/mets:xmlData/mods:mods/mods:titleInfo[not(@type=\"alternative\")]/mods:partNumber | //mets:dmdSec/mets:mdWrap/mets:xmlData/mods:mods/mods:titleInfo[not(@type=\"alternative\")]/mods:partName)[1]' />"
10-
/>
11-
128
<f:comment>
139
<!--
1410
check if access on certain document id is granted

0 commit comments

Comments
 (0)