From b3fbd94cb98621fb845020d436d5d05bdfa6f03a Mon Sep 17 00:00:00 2001
From: Gregor Gawol <gawol@ub.uni-leipzig.de>
Date: Mon, 18 Jan 2016 10:29:41 +0100
Subject: [PATCH] refs #6820: * show journaltitle without search url if issn
 array is empty

---
 themes/finc/templates/RecordDriver/SolrAI/core.phtml | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/themes/finc/templates/RecordDriver/SolrAI/core.phtml b/themes/finc/templates/RecordDriver/SolrAI/core.phtml
index c8f694fe552..333ade8e09a 100644
--- a/themes/finc/templates/RecordDriver/SolrAI/core.phtml
+++ b/themes/finc/templates/RecordDriver/SolrAI/core.phtml
@@ -137,11 +137,10 @@ if($loggedin = $this->auth()->isLoggedIn()) {
         <tr>
           <th><?=$this->transEsc('In')?>: </th>
             <td>
-              <? $issns = $aidatain['issns']; if (!empty($issns)): ?>
+              <? $jtitle = $aidatain['jtitle']; $issns = $aidatain['issns']; if (!empty($issns)): ?>
                 <a href="<?=$this->record($this->driver)->getLinkISN($issns)?>">
-                  <? $jtitle = $aidatain['jtitle'];
-                  if (!empty($jtitle)): ?><?=$this->escapeHtml($jtitle)?><? endif; ?>
-                </a><? endif; ?><? $volume = $aidatain['volume']; if (!empty($volume)): ?>, <?=$this->escapeHtml($volume) ?><? endif; ?><? $date = $aidatain['date']; if (!empty($date)): ?><? if (empty($volume)): ?>, <? endif; ?>(<?=$this->escapeHtml($date) ?>)<? endif; ?><? $issue = $aidatain['issue']; if (!empty($issue)): ?>, <?=$this->escapeHtml($issue) ?><? endif; ?><? $pages = $aidatain['pages']; if (!empty($pages)): ?>, <?=$this->transEsc('p.')?> <?=$this->escapeHtml($pages) ?><? endif; ?>
+                <? if (!empty($jtitle)): ?><?=$this->escapeHtml($jtitle)?><? endif; ?>
+                </a><? elseif (!empty($jtitle)): ?><?=$this->escapeHtml($jtitle)?><? endif; ?><? $volume = $aidatain['volume']; if (!empty($volume)): ?><? if (empty($jtitle)): ?>, <? endif; ?><?=$this->escapeHtml($volume) ?><? endif; ?><? $date = $aidatain['date']; if (!empty($date)): ?><? if (empty($volume)): ?>, <? endif; ?>(<?=$this->escapeHtml($date) ?>)<? endif; ?><? $issue = $aidatain['issue']; if (!empty($issue)): ?>, <?=$this->escapeHtml($issue) ?><? endif; ?><? $pages = $aidatain['pages']; if (!empty($pages)): ?>, <?=$this->transEsc('p.')?> <?=$this->escapeHtml($pages) ?><? endif; ?>
               </td>
           </tr>
       <? endif; ?>
-- 
GitLab