Lines 64-75
for my $thisbranch (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{b
Link Here
|
64 |
} |
64 |
} |
65 |
|
65 |
|
66 |
|
66 |
|
67 |
# Set the template language for the correct limit type |
67 |
# Set the template language for the correct limit type using $limitType |
68 |
my $limit_phrase = 'Collection Code'; |
|
|
69 |
my $limitType = C4::Context->preference("BranchTransferLimitsType") || "ccode"; |
68 |
my $limitType = C4::Context->preference("BranchTransferLimitsType") || "ccode"; |
70 |
if ( $limitType eq 'itemtype' ) { |
|
|
71 |
$limit_phrase = 'Item Type'; |
72 |
} |
73 |
|
69 |
|
74 |
my @codes; |
70 |
my @codes; |
75 |
my @branchcodes; |
71 |
my @branchcodes; |
Lines 143-149
$template->param(
Link Here
|
143 |
branchcode_loop => \@branchcode_loop, |
139 |
branchcode_loop => \@branchcode_loop, |
144 |
branchcode => $branchcode, |
140 |
branchcode => $branchcode, |
145 |
branchname => $branchname, |
141 |
branchname => $branchname, |
146 |
limit_phrase => $limit_phrase, |
142 |
limitType => $limitType, |
147 |
); |
143 |
); |
148 |
|
144 |
|
149 |
output_html_with_http_headers $input, $cookie, $template->output; |
145 |
output_html_with_http_headers $input, $cookie, $template->output; |