Skip to content

Commit 464354f

Browse files
committed
Merge branch 'dev' into getThis
2 parents 46d8045 + cc907a5 commit 464354f

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

themes/bootstrap5/templates/record/hold.phtml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
$enumchronRaw = $this->gatheredDetails['requestedItem']['enumchron'] ?? '';
1111
$enumchron = $enumchronRaw !== '' ? " ($enumchronRaw)" : '';
12+
$defaultRequestGroupLocationText = null;
1213
?>
1314
<?=$this->component('page-title', ['title' => $this->translate('request_place_text'), 'headTitle' => $this->translate('request_place_text') . ': ' . $this->driver->getBreadcrumb()]);?>
1415
<?php if ($this->helpTextHtml): ?>
@@ -68,6 +69,9 @@
6869
>
6970
<?=$this->transEsc('request_group_' . $group['name'], null, $group['name'])?>
7071
</option>
72+
<?php if ($group['id'] === $this->defaultRequestGroup) {
73+
$defaultRequestGroupLocationText = $group['selectLocationText'] ?? 'select_pickup_location';
74+
} ?>
7175
<?php endforeach; ?>
7276
</select>
7377
</div>
@@ -88,9 +92,6 @@
8892
// default:
8993
$selected = $this->homeLibrary ?? false;
9094
}
91-
$selectPickupLocationText =
92-
array_filter($requestGroups, fn ($group) => $group['id'] == $defaultRequestGroup)[0]['selectLocationText']
93-
?? 'select_pickup_location';
9495
?>
9596
<?php if ($this->requestGroupNeeded): ?>
9697
<div class="form-group hold-pickup-location">
@@ -104,7 +105,7 @@
104105
<select id="pickUpLocation" name="gatheredDetails[pickUpLocation]" data-default="<?=$this->escapeHtmlAttr($selected)?>" class="form-select">
105106
<?php if ($selected === false): ?>
106107
<option value="" selected="selected">
107-
<?=$this->transEsc($selectPickupLocationText)?>
108+
<?=$this->transEsc($defaultRequestGroupLocationText ?? 'select_pickup_location')?>
108109
</option>
109110
<?php endif; ?>
110111
</select>
@@ -115,7 +116,7 @@
115116
<select id="pickUpLocation" name="gatheredDetails[pickUpLocation]" class="form-select">
116117
<?php if ($selected === false && count($this->pickup) > 1): ?>
117118
<option value="" selected="selected">
118-
<?=$this->transEsc($selectPickupLocationText)?>
119+
<?=$this->transEsc('select_pickup_location')?>
119120
</option>
120121
<?php endif; ?>
121122
<?php foreach ($this->pickup as $lib): ?>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<?php
2+
$this->headTitle($this->translate('Page not found.'));
3+
?>
14
<h1><?=$this->transEsc('An error has occurred')?></h1>
25
<h2><?=$this->transEsc($this->message)?></h2>
36
<?php if (isset($this->reason) && $this->reason): ?><b><?=$this->transEsc('Message')?>:</b> <?=$this->transEsc($this->reason)?><?php endif; ?>

0 commit comments

Comments
 (0)