}
-# Set the template language for the correct limit type
-my $limit_phrase = 'Collection Code';
+# Set the template language for the correct limit type using $limitType
my $limitType = C4::Context->preference("BranchTransferLimitsType") || "ccode";
-if ( $limitType eq 'itemtype' ) {
- $limit_phrase = 'Item Type';
-}
my @codes;
my @branchcodes;
branchcode_loop => \@branchcode_loop,
branchcode => $branchcode,
branchname => $branchname,
- limit_phrase => $limit_phrase,
+ limitType => $limitType,
);
output_html_with_http_headers $input, $cookie, $template->output;
</form>
<p class="help">Check the boxes for the libraries you accept to checkin items from.</p>
-<fieldset>For <strong>all</strong> [% limit_phrase %]s: <a id="CheckAll" href="#">Check all</a> | <a id="UncheckAll" href="#">Uncheck all</a></fieldset>
+<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>
<div id="transferlimit_tabs" class="toptabs">