From cea330a6986f0757fdb155e26cd873577b7846b5 Mon Sep 17 00:00:00 2001
From: Dorian Merz <merz@ub.uni-leipzig.de>
Date: Wed, 10 Jul 2019 12:37:20 +0200
Subject: [PATCH] refs #15586 [fid_bbi] remove trailing comma

* TODO: decide on display of publication year (cf. #4826)
---
 .../RecordDriver/DefaultRecord/data-publicationDetails.phtml  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/themes/fid_bbi/templates/RecordDriver/DefaultRecord/data-publicationDetails.phtml b/themes/fid_bbi/templates/RecordDriver/DefaultRecord/data-publicationDetails.phtml
index d9f0a51db26..1355e678f2b 100644
--- a/themes/fid_bbi/templates/RecordDriver/DefaultRecord/data-publicationDetails.phtml
+++ b/themes/fid_bbi/templates/RecordDriver/DefaultRecord/data-publicationDetails.phtml
@@ -9,14 +9,14 @@
           </span>
         <? endif; ?>
         <? $pubName = $field->getName(); if (!empty($pubName)): ?>
-          <span property="name"><a href="<?=$this->record($this->driver)->getLink('publisher', $pubName)?>"><?=$this->escapeHtml($pubName)?>,</a></span>
+          <span property="name"><a href="<?=$this->record($this->driver)->getLink('publisher', $pubName)?>"><?=$this->escapeHtml($pubName)?></a></span>
         <? endif; ?>
     </span>
     <span property="datePublished">
         <? /* do not show solr publish date #13993 - GG */ ?>
     <? /*$pubDateSort = $this->driver->tryMethod('getPublishDateSort');*/ ?>
     <? $pubDate = $field->getDate(); if (!empty($pubDate)): ?>
-        <?=$this->escapeHtml($pubDate)?>
+        <?=!empty($pubPlace) || !empty($pubName) ? ', ' :''?><?=$this->escapeHtml($pubDate)?>
     <? /*else: ?>
         <?=$this->escapeHtml($pubDateSort)*/?></span>
     <? endif; ?>
-- 
GitLab