first commit
This commit is contained in:
48
Resources/Private/Partials/Result/Document.html
Normal file
48
Resources/Private/Partials/Result/Document.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
|
||||
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
|
||||
xmlns:s="http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers">
|
||||
|
||||
<f:section name="Document">
|
||||
|
||||
<div class="list-group-item search-result results-entry{f:if(condition:document.isElevated, then: ' results-elevated')}"
|
||||
data-document-score="{document.score}"
|
||||
data-document-id="{document.id}"
|
||||
data-document-url="{document.url}"
|
||||
>
|
||||
<f:if condition="{document.isElevated}">
|
||||
<div class="results-elevated-label"><s:translate key="sponsored"/></div>
|
||||
</f:if>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<h3 class="results-topic"><a href="{s:uri.result.addSearchWordList(url:document.url, searchWords:resultSet.usedQuery.query)}">{document.title}</a></h3>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<f:render partial="Result/RelevanceBar" section="RelevanceBar" arguments="{resultSet:resultSet, document:document}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="results-teaser">
|
||||
<p class="result-content">{s:document.highlightResult(resultSet:resultSet, document:document, fieldName:'content')}</p>
|
||||
<f:if condition="{document.type} == 'tx_meilisearch_file'">
|
||||
<p>
|
||||
<s:translate key="file_mimetype" />: {document.fileMimeType}<br />
|
||||
<s:translate key="file_referenced" />:
|
||||
|
||||
<ul class="references">
|
||||
<f:if condition="{document.fileReferenceUrl}">
|
||||
<li><f:link.typolink title="{document.fileReferenceTitle}" parameter="{document.fileReferenceUrl}">{document.fileReferenceTitle}</f:link.typolink></li>
|
||||
</f:if>
|
||||
<f:if condition="{document.variants}">
|
||||
<f:for each="{document.variants}" as="variant">
|
||||
<li><f:link.typolink title="{variant.fileReferenceTitle}" parameter="{variant.fileReferenceUrl}">{variant.fileReferenceTitle}</f:link.typolink></li>
|
||||
</f:for>
|
||||
</f:if>
|
||||
</ul>
|
||||
</p>
|
||||
</f:if>
|
||||
<s:debug.documentScoreAnalyzer document="{document}" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</f:section>
|
22
Resources/Private/Partials/Result/Facets.html
Normal file
22
Resources/Private/Partials/Result/Facets.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
|
||||
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
|
||||
xmlns:s="http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers">
|
||||
|
||||
<f:section name="Facets">
|
||||
<div id="tx-solr-faceting">
|
||||
<s:facet.area.group groupName="main" facets="{resultSet.facets.available}">
|
||||
<div class="facet-area-main">
|
||||
<div class="solr-facets-available secondaryContentSection">
|
||||
<div class="facets">
|
||||
<f:for each="{areaFacets}" as="facet">
|
||||
<div class="facet facet-type facet-type-{facet.type} panel-group" id="facet-accordion-{facet.name}">
|
||||
<f:render partial="Facets/{facet.partialName}" arguments="{resultSet:resultSet, facet:facet}"/>
|
||||
</div>
|
||||
</f:for>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</s:facet.area.group>
|
||||
</div>
|
||||
|
||||
</f:section>
|
23
Resources/Private/Partials/Result/FacetsActive.html
Normal file
23
Resources/Private/Partials/Result/FacetsActive.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
|
||||
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
|
||||
xmlns:s="http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers">
|
||||
|
||||
<f:section name="FacetsActive">
|
||||
<f:if condition="{resultSet.facets.used -> f:count()}">
|
||||
<div id="tx-solr-facets-in-use">
|
||||
<s:translate key="faceting_resultsNarrowedBy">Narrowed by</s:translate>:
|
||||
<f:for each="{resultSet.facets.used}" as="facet">
|
||||
<f:for each="{facet.allFacetItems.selected}" as="item">
|
||||
<a href="{s:uri.facet.removeFacetItem(facet: facet, facetItem: item)}" class="facet remove-facet-option solr-ajaxified btn btn-circle">
|
||||
{facet.label}: {item.label}
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</a>
|
||||
</f:for>
|
||||
</f:for>
|
||||
<a href="{s:uri.facet.removeAllFacets()}" class="solr-ajaxified btn btn-circle">
|
||||
<s:translate key="faceting_removeAllFilters">Remove all filters</s:translate>
|
||||
<i class="glyphicon glyphicon-remove"></i>
|
||||
</a>
|
||||
</div>
|
||||
</f:if>
|
||||
</f:section>
|
19
Resources/Private/Partials/Result/PerPage.html
Normal file
19
Resources/Private/Partials/Result/PerPage.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
|
||||
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
|
||||
xmlns:s="http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers">
|
||||
|
||||
<f:section name="PerPage">
|
||||
<div id="results-per-page">
|
||||
<form method="post" action="{s:uri.search.currentSearch()}">
|
||||
<s:translate key="results_per_page">Per page:</s:translate>
|
||||
<select name="{resultSet.usedSearchRequest.argumentNameSpace}[resultsPerPage]" onchange="this.form.submit()">
|
||||
<f:for each="{resultSet.usedSearchRequest.contextTypoScriptConfiguration.searchResultsPerPageSwitchOptionsAsArray}" as="availablePerPage">
|
||||
<f:if condition="{availablePerPage}=={resultSet.usedResultsPerPage}">
|
||||
<f:then><option selected="selected" value="{availablePerPage}">{availablePerPage}</option></f:then>
|
||||
<f:else><option value="{availablePerPage}">{availablePerPage}</option></f:else>
|
||||
</f:if>
|
||||
</f:for>
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
</f:section>
|
18
Resources/Private/Partials/Result/RelevanceBar.html
Normal file
18
Resources/Private/Partials/Result/RelevanceBar.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
|
||||
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
|
||||
xmlns:s="http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers">
|
||||
|
||||
<f:section name="RelevanceBar">
|
||||
|
||||
<div class="relevance hidden-xs">
|
||||
<s:translate key="relevance" />:
|
||||
<div class="progress" style="max-width: 100px; height: 5px;">
|
||||
<div class="progress-bar" role="progressbar" aria-valuenow="{s:document.relevance(resultSet:resultSet, document:document)}" aria-valuemin="0" aria-valuemax="100" style="width: {s:document.relevance(resultSet:resultSet, document:document)}%;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</f:section>
|
||||
|
||||
</html>
|
48
Resources/Private/Partials/Result/Sorting.html
Normal file
48
Resources/Private/Partials/Result/Sorting.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"
|
||||
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
|
||||
xmlns:s="http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers">
|
||||
|
||||
<f:section name="Sorting">
|
||||
<div id="tx-solr-sorting" class="secondaryContentSection dropdown">
|
||||
<button class="btn btn-default dropdown-toggle" type="button" id="sortDropDown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
<span class=" glyphicon glyphicon-sort"></span>
|
||||
<s:translate key="sorting_sortBy">Sorting</s:translate>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="sortDropDown">
|
||||
<f:for each="{resultSet.sortings}" as="sorting">
|
||||
|
||||
<f:if condition="{sorting.isResetOption}">
|
||||
<f:then>
|
||||
<li>
|
||||
<a href="{s:uri.sorting.removeSorting()}" class="solr-ajaxified">{sorting.label}</a>
|
||||
</li>
|
||||
</f:then>
|
||||
|
||||
<f:else>
|
||||
<f:if condition="{sorting.selected}">
|
||||
<f:then>
|
||||
<li class="active">
|
||||
<a href="{s:uri.sorting.setSorting(sortingName: sorting.name, sortingDirection: sorting.oppositeDirection)}" class="solr-ajaxified">
|
||||
<f:if condition="{sorting.isAscDirection}">
|
||||
<f:then><span class=" glyphicon glyphicon-arrow-up pull-right"></span></f:then>
|
||||
<f:else><span class=" glyphicon glyphicon-arrow-down pull-right"></span></f:else>
|
||||
</f:if>
|
||||
<span>{sorting.label}</span>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<li>
|
||||
<a href="{s:uri.sorting.setSorting(sortingName: sorting.name, sortingDirection: sorting.direction)}" class="solr-ajaxified">{sorting.label}</a>
|
||||
</li>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
</f:for>
|
||||
</ul>
|
||||
</div>
|
||||
</f:section>
|
Reference in New Issue
Block a user