Lines 140-150
if (($#biblionumbers < 0) && (! $query->param('place_reserve'))) {
Link Here
|
140 |
my $branch = $query->param('branch') || $patron->branchcode || C4::Context->userenv->{branch} || '' ; |
140 |
my $branch = $query->param('branch') || $patron->branchcode || C4::Context->userenv->{branch} || '' ; |
141 |
$template->param( branch => $branch ); |
141 |
$template->param( branch => $branch ); |
142 |
|
142 |
|
143 |
# Is the person allowed to choose their branch |
|
|
144 |
my $OPACChooseBranch = (C4::Context->preference("OPACAllowUserToChooseBranch")) ? 1 : 0; |
145 |
|
146 |
$template->param( choose_branch => $OPACChooseBranch); |
147 |
|
148 |
# |
143 |
# |
149 |
# |
144 |
# |
150 |
# Build hashes of the requested biblio(item)s and items. |
145 |
# Build hashes of the requested biblio(item)s and items. |
Lines 240-246
if ( $query->param('place_reserve') ) {
Link Here
|
240 |
my $canreserve = 0; |
235 |
my $canreserve = 0; |
241 |
|
236 |
|
242 |
my $singleBranchMode = Koha::Libraries->search->count == 1; |
237 |
my $singleBranchMode = Koha::Libraries->search->count == 1; |
243 |
if ( $singleBranchMode || !$OPACChooseBranch ) |
238 |
if ( $singleBranchMode || ! C4::Context->preference("OPACAllowUserToChooseBranch") ) |
244 |
{ # single branch mode or disabled user choosing |
239 |
{ # single branch mode or disabled user choosing |
245 |
$branch = $patron->branchcode; |
240 |
$branch = $patron->branchcode; |
246 |
} |
241 |
} |
247 |
- |
|
|