Skip to content

Commit 743573d

Browse files
rominaildemiankatz
andauthored
Update themes/bootstrap5/templates/record/get-this/holding-display.phtml
Co-authored-by: Demian Katz <demian.katz@villanova.edu>
1 parent 80d6976 commit 743573d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

themes/bootstrap5/templates/record/get-this/holding-display.phtml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
<?php
22
$item['item_id'] ??= null;
33
$location = $this->getThis->getLocation($item['item_id']);
4-
$copyNumber = $this->getThis->getCopyNumber($item['item_id']);
4+
$copyNumber = $this->getThis->getCopyNumber($item['item_id']) ?? '';
55
$callNumberData = $this->getThis->getCallNumber($item['item_id']);
6-
if (!empty($location) && (!empty($callNumberData) || !empty($copyNumber))) {
6+
if (!empty($location) && ($callNumberData || '' !== $copyNumber)) {
77
$location .= ': ';
88
}
9-
if (!empty($copyNumber)) {
9+
if ('' !== $copyNumber) {
1010
$copyNumber = $this->transEscAttr('copy_number', ['%%number%%' => $copyNumber]) . ' ';
11-
} else {
12-
$copyNumber = '';
1311
}
14-
if (!empty($callNumberData)) {
12+
if ($callNumberData) {
1513
$rawCallNumber = $callNumberData['text'] ?? '';
1614
$callNumber = ($callNumberData['translate'] ?? false) ? $this->translate($rawCallNumber) : $this->escapeHtml($rawCallNumber);
1715
$callNumber = '(' . $callNumber . ')';

0 commit comments

Comments
 (0)