diff --git a/themes/finc/templates/RecordDriver/SolrDefault/core.phtml b/themes/finc/templates/RecordDriver/SolrDefault/core.phtml index fc1d8a57388a59ee0ca9921c040c0d1eca747e1e..47ecd1da50a9139843752cd24138af39e249918f 100644 --- a/themes/finc/templates/RecordDriver/SolrDefault/core.phtml +++ b/themes/finc/templates/RecordDriver/SolrDefault/core.phtml @@ -267,6 +267,7 @@ if($loggedin = $this->auth()->isLoggedIn()) { <? $additionals = $this->driver->getAdditionals(); if (!empty($additionals) && is_array($additionals)): ?> <? foreach($additionals as $additional) :?> + <? if (isset($additional['identifier'])): ?> <tr> <th><?=$this->escapeHtml($additional['identifier'])?>: </th> <td> @@ -275,6 +276,7 @@ if($loggedin = $this->auth()->isLoggedIn()) { <? if(isset($additional['id'])): ?></a><? endif; ?> </td> </tr> + <? endif; ?> <? endforeach; ?> <? endif; ?> diff --git a/themes/finc/templates/RecordDriver/SolrMarc/core.phtml b/themes/finc/templates/RecordDriver/SolrMarc/core.phtml index a84c88e31c945b1881a4d12a5b41b47e07144fc5..4e26e7861378cb71f513db3b465e133b6c182967 100644 --- a/themes/finc/templates/RecordDriver/SolrMarc/core.phtml +++ b/themes/finc/templates/RecordDriver/SolrMarc/core.phtml @@ -274,6 +274,7 @@ if($loggedin = $this->auth()->isLoggedIn()) { <? $additionals = $this->driver->getAdditionals(); if (!empty($additionals) && is_array($additionals)): ?> <? foreach($additionals as $additional) :?> + <? if (isset($additional['identifier'])): ?> <tr> <th><?=$this->escapeHtml($additional['identifier'])?>: </th> <td> @@ -282,6 +283,7 @@ if($loggedin = $this->auth()->isLoggedIn()) { <? if(isset($additional['id'])): ?></a><? endif; ?> </td> </tr> + <? endif; ?> <? endforeach; ?> <? endif; ?> diff --git a/themes/finc/templates/RecordTab/additional.phtml b/themes/finc/templates/RecordTab/additional.phtml deleted file mode 100644 index 62dfe37bbbe5d30504de5f286a31b5e49166df58..0000000000000000000000000000000000000000 --- a/themes/finc/templates/RecordTab/additional.phtml +++ /dev/null @@ -1,33 +0,0 @@ -<!-- recordtab - additional.phtml --> -<? -// Set page title. -$this->headTitle($this->translate('Additionals') . ': ' . $this->driver->getBreadcrumb()); - -// Grab clean ISBN for convenience: -?> -<table class="table table-striped" summary="<?=$this->transEsc('Description')?>"> - <? $additionals = $this->driver->getAdditionals(); if (!empty($additionals) && is_array($additionals)): ?> - <? $contentDisplayed = true; ?> - <? foreach($additionals as $additional) :?> - <tr> - <th><?=$this->escapeHtml($additional['identifier'])?>: </th> - <td> - <? if(isset($additional['id'])): ?> - <a href="<?=$this->url('record')?><?=$this->escapeHtml($additional['id'])?>"> - <? endif; ?> - <?=$this->escapeHtml($additional['text'])?> - <? if(isset($additional['id'])): ?> - </a> - <? endif; ?> - </td> - </tr> - <? endforeach; ?> - <? else: ?> - <tr><td><?=$this->transEsc('Additional Items unavailable')?></td></tr> - <? endif; ?> - - <? if (!isset($contentDisplayed) || !$contentDisplayed): // Avoid errors if there were no rows above ?> - <tr><td><?=$this->transEsc('Additional Items unavailable')?></td></tr> - <? endif; ?> -</table> -<!-- recordtab - additional.phtml - END --> \ No newline at end of file