From 590bfaf41ba6533e27691993a4b08634f275fdc6 Mon Sep 17 00:00:00 2001
From: Gregor Gawol <gawol@ub.uni-leipzig.de>
Date: Tue, 22 Jun 2021 11:57:25 +0200
Subject: [PATCH] refs #20112 [fid_adlr] remove label text * under result list
 icon * fixed in detailview too

---
 .../fid_adlr/templates/RecordDriver/DefaultRecord/core.phtml   | 2 +-
 .../templates/RecordDriver/DefaultRecord/result-list.phtml     | 3 ++-
 themes/fid_adlr/templates/RecordDriver/SolrAI/core.phtml       | 2 +-
 .../fid_adlr/templates/RecordDriver/SolrAI/result-list.phtml   | 3 ++-
 themes/fid_adlr/templates/RecordDriver/SolrMarc/core.phtml     | 2 +-
 5 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/themes/fid_adlr/templates/RecordDriver/DefaultRecord/core.phtml b/themes/fid_adlr/templates/RecordDriver/DefaultRecord/core.phtml
index a57af5b8dcd..0af2c6444fe 100644
--- a/themes/fid_adlr/templates/RecordDriver/DefaultRecord/core.phtml
+++ b/themes/fid_adlr/templates/RecordDriver/DefaultRecord/core.phtml
@@ -33,7 +33,7 @@
         <?php /* if cover or qrcode or preview not set you can not finc-specific StyleBasedIcons, right position - GG */ ?>
     <?php elseif ($this->record($this->driver)->showStyleBasedIcons()): ?>
   <div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col">
-        <?=$this->record($this->driver)->getRecordIcon()?>
+        <?=$this->record($this->driver)->getRecordIcon('record-icon', false)?>
         <?php /* EOF - finc-specific StyleBasedIcons */ ?>
   </div>
     <?php endif; ?>
diff --git a/themes/fid_adlr/templates/RecordDriver/DefaultRecord/result-list.phtml b/themes/fid_adlr/templates/RecordDriver/DefaultRecord/result-list.phtml
index c9e679ad5d9..f3ed0336e08 100644
--- a/themes/fid_adlr/templates/RecordDriver/DefaultRecord/result-list.phtml
+++ b/themes/fid_adlr/templates/RecordDriver/DefaultRecord/result-list.phtml
@@ -16,7 +16,8 @@ if ($cover):
 <?php elseif ($this->record($this->driver)->showStyleBasedIcons()): ?>
   <?php ob_start(); ?>
   <div class="media-<?=$thumbnailAlignment?> record-icon">
-    <?=$this->record($this->driver)->getRecordIcon()?>
+    <?php /* #20112 Remove label text under result list icon - GG */ ?>
+    <?=$this->record($this->driver)->getRecordIcon('record-icon', false)?>
   </div>
   <?php $thumbnail = ob_get_contents(); ?>
   <?php ob_end_clean(); ?>
diff --git a/themes/fid_adlr/templates/RecordDriver/SolrAI/core.phtml b/themes/fid_adlr/templates/RecordDriver/SolrAI/core.phtml
index 2037a043c58..43c1a52dfe8 100644
--- a/themes/fid_adlr/templates/RecordDriver/SolrAI/core.phtml
+++ b/themes/fid_adlr/templates/RecordDriver/SolrAI/core.phtml
@@ -35,7 +35,7 @@
         <?php /* if cover or qrcode or preview not set you can not finc-specific StyleBasedIcons, right position - GG */ ?>
     <?php elseif ($this->record($this->driver)->showStyleBasedIcons()): ?>
   <div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col">
-        <?=$this->record($this->driver)->getRecordIcon()?>
+        <?=$this->record($this->driver)->getRecordIcon('record-icon', false)?>
         <?php /* EOF - finc-specific StyleBasedIcons */ ?>
   </div>
     <?php endif; ?>
diff --git a/themes/fid_adlr/templates/RecordDriver/SolrAI/result-list.phtml b/themes/fid_adlr/templates/RecordDriver/SolrAI/result-list.phtml
index fc9ca125b07..57b8acf00c3 100644
--- a/themes/fid_adlr/templates/RecordDriver/SolrAI/result-list.phtml
+++ b/themes/fid_adlr/templates/RecordDriver/SolrAI/result-list.phtml
@@ -15,7 +15,8 @@ if ($cover):
 <?php elseif ($this->record($this->driver)->showStyleBasedIcons()): ?>
   <?php ob_start(); ?>
   <div class="media-<?=$thumbnailAlignment?> record-icon">
-    <?=$this->record($this->driver)->getRecordIcon()?>
+    <?php /* #20112 Remove label text under result list icon - GG */ ?>
+    <?=$this->record($this->driver)->getRecordIcon('record-icon', false)?>
   </div>
   <?php $thumbnail = ob_get_contents(); ?>
   <?php ob_end_clean(); ?>
diff --git a/themes/fid_adlr/templates/RecordDriver/SolrMarc/core.phtml b/themes/fid_adlr/templates/RecordDriver/SolrMarc/core.phtml
index 2d2eb4cacad..330edf9ca9d 100644
--- a/themes/fid_adlr/templates/RecordDriver/SolrMarc/core.phtml
+++ b/themes/fid_adlr/templates/RecordDriver/SolrMarc/core.phtml
@@ -35,7 +35,7 @@
         <?php /* if cover or qrcode or preview not set you can not finc-specific StyleBasedIcons, right position - GG */ ?>
     <?php elseif ($this->record($this->driver)->showStyleBasedIcons()): ?>
   <div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col">
-        <?=$this->record($this->driver)->getRecordIcon()?>
+        <?=$this->record($this->driver)->getRecordIcon('record-icon', false)?>
         <?php /* EOF - finc-specific StyleBasedIcons */ ?>
   </div>
     <?php endif; ?>
-- 
GitLab