Skip to content

Commit

Permalink
failed and incomplete tests with searchBar in Bibliography Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-sc committed May 28, 2024
1 parent b6dbe77 commit f99865b
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 40 deletions.
4 changes: 3 additions & 1 deletion Classes/Controller/BibliographyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ public function searchAction(): ResponseInterface

$searchParams = $this->request->getQueryParams();
$this->view->assign('searchParams', $searchParams);

// $this->view->setPartialRootPaths(['EXT:liszt_web/Resources/Private/Partials/']);
// $this->view->setTemplateRootPaths(['EXT:liszt_web/Resources/Private/Templates/']);
// $this->view->setLayoutRootPaths(['EXT:liszt_web/Resources/Private/Layouts/']);

$this->view->assign('bibliographyList', $elasticResponse);
return $this->htmlResponse();
Expand Down
3 changes: 2 additions & 1 deletion Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
ExtensionUtility::registerPlugin(
'liszt_bibliography',
'BibliographyListing',
'Liszt Bibliography Listing'
'Liszt Bibliography Listing',
'content-text'
);
})();

Expand Down
2 changes: 1 addition & 1 deletion Configuration/TsConfig/Page/Mod/Wizards/Listing.tsconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod.wizards.newContentElement.wizardItems {
}
}
}
show := addToList(lisztbibliography_listing)
show := addToList(lisztbibliography_bibliographylisting)
}


Expand Down
19 changes: 8 additions & 11 deletions Configuration/TypoScript/setup.typoscript
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
######################
#### DEPENDENCIES ####
######################
@import 'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript'

// @import 'EXT:liszt_common/Configuration/TypoScript/setup.typoscript'
#@import 'EXT:fluid_styled_content/Configuration/TypoScript/setup.typoscript'


// ToDo: Frage Matthias warum doppelt?
Expand All @@ -14,30 +12,29 @@

}
templateRootPaths {
100 = EXT:liszt_bibliography/Resources/Private/Templates/
20 = EXT:liszt_web/Resources/Private/Templates/
100 = EXT:liszt_bibliography/Resources/Private/Templates/
}
partialRootPaths {
20 = EXT:liszt_web/Resources/Private/Partials/
100 = EXT:liszt_bibliography/Resources/Private/Partials/
}
}


}*/



// ToDo: needed?
tt_content {
/*tt_content {
lisztbibliography_listing =< lib.contentElement
lisztbibliography_listing {
templateName = BibliographyListing
}
}
}*/

// page.includeJSFooter.BibliographyController = EXT:liszt_bibliography/Resources/Public/JavaScript/Src/BibliographyController.js


plugin.tx_liszt_common {
/*plugin.tx_liszt_common {
settings {
searchBarSelectItems {
1:{
Expand All @@ -48,4 +45,4 @@ plugin.tx_liszt_common {
resultLimit = 20

}
}
}*/
2 changes: 1 addition & 1 deletion Resources/Private/Language/locallang.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<header/>
<body>
<trans-unit id="listing_title" resname="tx_publisherdb_domain_model_publishermikroitem">
<source>Bibliographie-Listing</source>
<source>Liszt Bibliography Listing</source>
</trans-unit>
<trans-unit id="listing_description" resname="tx_publisherdb_domain_model_publishermikroitem">
<source>Eine Auflistung aller Einträge der Liszt-Bibliographie</source>
Expand Down
22 changes: 0 additions & 22 deletions Resources/Private/Layouts/Testtemplate.html

This file was deleted.

6 changes: 4 additions & 2 deletions Resources/Private/Templates/Bibliography/Search.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">


searchTerm:
{searchParams.tx_liszt_bibliography_searchbar.searchForm.searchTerm}

<f:debug>{_all}</f:debug>



<div class="row" style="margin-top: 3rem;">
<div class="col-12 col-md-3 col-lg-2 ">
Expand Down
2 changes: 1 addition & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
defined('TYPO3') or die();

ExtensionUtility::configurePlugin(
'LisztBibliography',
'liszt_bibliography',
'BibliographyListing',
[ BibliographyController::class => 'search' ],
[ BibliographyController::class => '' ]
Expand Down

0 comments on commit f99865b

Please sign in to comment.