Lines 47-58
my ($template, $loggedinuser, $cookie)
Link Here
|
47 |
|
47 |
|
48 |
my $type=$input->param('type'); |
48 |
my $type=$input->param('type'); |
49 |
|
49 |
|
50 |
my $branch; |
50 |
my $branch = $input->param('branch'); |
51 |
if ( C4::Context->preference('DefaultToLoggedInLibraryCircRules') ) { |
51 |
unless ( $branch ) { |
52 |
$branch = $input->param('branch') || GetBranchesCount() == 1 ? undef : C4::Branch::mybranch(); |
52 |
if ( C4::Context->preference('DefaultToLoggedInLibraryCircRules') ) { |
53 |
} |
53 |
$branch = GetBranchesCount() == 1 ? undef : C4::Branch::mybranch(); |
54 |
else { |
54 |
} |
55 |
$branch = $input->param('branch') || ( C4::Branch::onlymine() ? ( C4::Branch::mybranch() || '*' ) : '*' ); |
55 |
else { |
|
|
56 |
$branch = C4::Branch::onlymine() ? ( C4::Branch::mybranch() || '*' ) : '*'; |
57 |
} |
56 |
} |
58 |
} |
57 |
$branch = '*' if $branch eq 'NO_LIBRARY_SET'; |
59 |
$branch = '*' if $branch eq 'NO_LIBRARY_SET'; |
58 |
|
60 |
|
59 |
- |
|
|