From 654e37ed11b3f8e0ead8b300f78eb038a6bb5ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=B6ffler?= Date: Thu, 7 Jun 2018 20:33:00 +0200 Subject: [PATCH] Add a document wrap for better difference between exact match and result --- .../Partials/Solr/Result/Document.html | 130 ++++++++++-------- .../Private/Templates/Solr/Results.html | 4 +- 2 files changed, 76 insertions(+), 58 deletions(-) diff --git a/html/typo3conf/ext/ter_layout/Resources/Private/Partials/Solr/Result/Document.html b/html/typo3conf/ext/ter_layout/Resources/Private/Partials/Solr/Result/Document.html index dfcd8212..8218edd6 100644 --- a/html/typo3conf/ext/ter_layout/Resources/Private/Partials/Solr/Result/Document.html +++ b/html/typo3conf/ext/ter_layout/Resources/Private/Partials/Solr/Result/Document.html @@ -2,62 +2,80 @@ xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers" xmlns:s="http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers"> - - <{f:if(condition:exactMatch, then: 'div', else: 'li')} class="card card-size-medium mb-3{f:if(condition:exactMatch, then: ' border-primary bg-light')}" - data-document-score="{document.score}" - data-document-id="{document.id}" - data-document-url="{document.url}" - > - -
- -
-
-
-
-

- - {document.title} - - {document.title} -

-

- {document.extensionKey_stringS} / - {document.extensionState_stringS} -

-

- - {s:document.highlightResult(resultSet:resultSet, document:document, fieldName:'content')} -
- - Uploaded on - @{document.extensionLastUpload_intS} - - by - {document.author} - - -
-

-
    - -
  • 7 LTS
  • -
    - -
  • 8 LTS
  • -
    - -
  • Has manual
  • -
    -
+ + + + +
+
+
+ +
  • + +
  • +
    +
    +
    + + + +
    + +
    +
    +
    +
    +

    + + {document.title} + + {document.title} +

    +

    + {document.extensionKey_stringS} / + {document.extensionState_stringS} +

    +

    + + {s:document.highlightResult(resultSet:resultSet, document:document, fieldName:'content')} +
    + + Uploaded on + @{document.extensionLastUpload_intS} + + by + {document.author} + + +
    +

    +
      + +
    • 7 LTS
    • +
      + +
    • 8 LTS
    • +
      + +
    • Has manual
    • +
      +
    - - - - Download version {document.extensionVersion_stringS} as ZIP - - - - +
    + + + + Download version {document.extensionVersion_stringS} as ZIP + + +
    diff --git a/html/typo3conf/ext/ter_layout/Resources/Private/Templates/Solr/Results.html b/html/typo3conf/ext/ter_layout/Resources/Private/Templates/Solr/Results.html index febf6a07..2f70219e 100644 --- a/html/typo3conf/ext/ter_layout/Resources/Private/Templates/Solr/Results.html +++ b/html/typo3conf/ext/ter_layout/Resources/Private/Templates/Solr/Results.html @@ -45,14 +45,14 @@ - +
      - + -- GitLab