View | Details | Raw Unified | Return to bug 11504
Collapse All | Expand All

(-)a/admin/branch_transfer_limits.pl (-6 / +2 lines)
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;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt (-2 / +1 lines)
Lines 70-76 Link Here
70
    </form>
70
    </form>
71
71
72
<p class="help">Check the boxes for the libraries you accept to checkin items from.</p>
72
<p class="help">Check the boxes for the libraries you accept to checkin items from.</p>
73
<fieldset>For <strong>all</strong> [% limit_phrase %]s: <a id="CheckAll" href="#">Check all</a> | <a id="UncheckAll" href="#">Uncheck all</a></fieldset>
73
<fieldset>For <strong>all</strong> [% IF ( limitType == 'ccode' ) %]collection codes[% ELSE %]item types[% END %]: <a id="CheckAll" href="#">Check all</a> | <a id="UncheckAll" href="#">Uncheck all</a></fieldset>
74
74
75
75
76
  <div id="transferlimit_tabs" class="toptabs">
76
  <div id="transferlimit_tabs" class="toptabs">
77
- 

Return to bug 11504