The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 357ebd20 authored by Claas Kazzer's avatar Claas Kazzer Committed by André Lahmann
Browse files

refs #7044:

* fix for holdings- and other tabs still referenced as IDs
* added fallback status for unavailable items
parent c911bba1
No related merge requests found
......@@ -52,7 +52,7 @@
}
// Holdings
// Insert line break before Vormerken buttons
#holdings-tab {
.holdings-tab {
line-height: 1.75rem;
td {
vertical-align: top;
......
......@@ -75,7 +75,7 @@
<span class="label success"><?=$this->transEsc("Available")?><link property="availability" href="http://schema.org/InStock" /></span>
<? else: ?>
<? /* Begin Unavailable Items (Recalls) */ ?>
<span class="label alert"><?=$this->transEsc($row['status'])?><link property="availability" href="http://schema.org/OutOfStock" /></span>
<span class="label alert"><?=empty($row['status'])?$this->transEsc("Unavailable"):$this->transEsc($row['status'])?><link property="availability" href="http://schema.org/OutOfStock" /></span>
<? endif; ?>
</td>
<td>
......@@ -113,7 +113,7 @@
<? endif; ?>
<? else: ?>
<? /* Begin Unavailable Items (Recalls) */ ?>
<span class="label alert"><?=$this->transEsc($row['status'])?><link property="availability" href="http://schema.org/OutOfStock" /></span>
<span class="label alert"><?=empty($row['status'])?$this->transEsc("Unavailable"):$this->transEsc($row['status'])?><link property="availability" href="http://schema.org/OutOfStock" /></span>
<? if (isset($row['returnDate']) && $row['returnDate']): ?>&ndash; <span class="small"><?=$this->escapeHtml($row['returnDate'])?></span><? endif; ?>
<? if (isset($row['duedate']) && $row['duedate']): ?>
&ndash; <span class="small"><?=$this->transEsc("Due")?>: <?=$this->escapeHtml($row['duedate'])?></span>
......
......@@ -81,7 +81,7 @@
<div class="tabs-content" id="record-tabs">
<? if (!$this->ajaxTabs || !isset($activeTabObj) || !$activeTabObj->supportsAjax()): ?>
<div class="content active" id="<?=$this->activeTab?>-tab">
<div class="content active <?=$this->activeTab?>-tab">
<?=isset($activeTabObj) ? $this->record($this->driver)->getTab($activeTabObj) : ''?>
</div>
<? endif; ?>
......
......@@ -81,7 +81,7 @@ $this->layout()->title = $this->driver->getShortTitle();
<div class="tabs-content" id="record-tabs">
<? if (!$this->ajaxTabs || !isset($activeTabObj) || !$activeTabObj->supportsAjax()): ?>
<div class="content active" id="<?=$this->activeTab?>-tab">
<div class="content active <?=$this->activeTab?>-tab">
<?=isset($activeTabObj) ? $this->record($this->driver)->getTab($activeTabObj) : ''?>
</div>
<? 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