Skip to content
Snippets Groups Projects
Commit 60d63f71 authored by Demian Katz's avatar Demian Katz
Browse files

Improved WorldCat holdings error tolerance.

parent 8867b6c3
No related merge requests found
<? $holdings = $this->tab->getHoldings(); if ($holdings && count($holdings) > 0): ?>
<h3><?=$this->transEsc('Holdings at Other Libraries')?></h3>
<table class="table table-striped">
<? foreach ($holdings as $holding): ?>
<tr>
<th colspan="2">
<? if (isset($holding->electronicAddress->text) && !empty($holding->electronicAddress->text)): ?>
<a href="<?=$this->escapeHtmlAttr($holding->electronicAddress->text)?>"><?=$this->escapeHtml($holding->physicalLocation)?></a>
<? else: ?>
<?=$this->escapeHtml($holding->physicalLocation)?>
<? $holdings = $this->tab->getHoldings(); ?>
<? if (isset($holdings->diagnostic->message)): ?>
<p><?=$this->escapeHtml($holdings->diagnostic->message)?></p>
<? elseif ($holdings && count($holdings) > 0): ?>
<h3><?=$this->transEsc('Holdings at Other Libraries')?></h3>
<table class="table table-striped">
<? foreach ($holdings as $holding): ?>
<tr>
<th colspan="2">
<? if (isset($holding->electronicAddress->text) && !empty($holding->electronicAddress->text)): ?>
<a href="<?=$this->escapeHtmlAttr($holding->electronicAddress->text)?>"><?=$this->escapeHtml($holding->physicalLocation)?></a>
<? else: ?>
<?=$this->escapeHtml($holding->physicalLocation)?>
<? endif; ?>
</th>
</tr>
<? if (!empty($holding->physicalAddress->text)): ?>
<tr>
<th><?=$this->transEsc('Address')?>: </th>
<td><?=$this->escapeHtml($holding->physicalAddress->text)?></td>
</tr>
<? endif; ?>
</th>
</tr>
<tr>
<th><?=$this->transEsc('Address')?>: </th>
<td><?=$this->escapeHtml($holding->physicalAddress->text)?></td>
</tr>
<tr>
<th><?=$this->transEsc('Copies')?>: </th>
<td><?=$this->escapeHtml($holding->holdingSimple->copiesSummary->copiesCount)?></td>
</tr>
<? endforeach; ?>
</table>
<? if (isset($holding->holdingSimple->copiesSummary->copiesCount)): ?>
<tr>
<th><?=$this->transEsc('Copies')?>: </th>
<td><?=$this->escapeHtml($holding->holdingSimple->copiesSummary->copiesCount)?></td>
</tr>
<? endif; ?>
<? endforeach; ?>
</table>
<? endif; ?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment