From 2914c1bfcc81d149ae92479a5aa6795a53ae42c3 Mon Sep 17 00:00:00 2001
From: Claas Kazzer <kazzer@ub.uni-leipzig.de>
Date: Thu, 31 May 2018 17:03:02 +0200
Subject: [PATCH] refs #11703 * adds format-list file to SolrDefault with
 extended content as compares to BS * this serves format/genre to result list
 and record view

---
 data/cache/.gitignore                                  |  2 +-
 .../RecordDriver/SolrDefault/format-list.phtml         | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 themes/finc/templates/RecordDriver/SolrDefault/format-list.phtml

diff --git a/data/cache/.gitignore b/data/cache/.gitignore
index d6b7ef32c84..c96a04f008e 100644
--- a/data/cache/.gitignore
+++ b/data/cache/.gitignore
@@ -1,2 +1,2 @@
 *
-!.gitignore
+!.gitignore
\ No newline at end of file
diff --git a/themes/finc/templates/RecordDriver/SolrDefault/format-list.phtml b/themes/finc/templates/RecordDriver/SolrDefault/format-list.phtml
new file mode 100644
index 00000000000..f34cd0182ae
--- /dev/null
+++ b/themes/finc/templates/RecordDriver/SolrDefault/format-list.phtml
@@ -0,0 +1,10 @@
+<? foreach ($this->driver->getFormats() as $format): ?>
+  <span class="format <?=$this->record($this->driver)->getFormatClass($format) ?>"><?=$this->transEsc($format) ?></span>
+<? endforeach; ?>
+<? /* New genre string to display nxt to format in RESULT LIST and RECORD/Detail View, #11703, CK */ ?>
+<? $genres = $this->driver->tryMethod('getGenreFacet');?>
+<? if (!empty($genres)): ?>
+  <? foreach($genres as $genre): ?>
+    <span class="format"><?=$this->transEsc($genre)?></span>
+  <?endforeach;?>
+<?endif;?>
-- 
GitLab