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

(-)a/catalogue/detail.pl (-2 / +1 lines)
Lines 60-66 use Koha::Reviews; Link Here
60
use Koha::SearchEngine::Search;
60
use Koha::SearchEngine::Search;
61
use Koha::SearchEngine::QueryBuilder;
61
use Koha::SearchEngine::QueryBuilder;
62
use Koha::Serial::Items;
62
use Koha::Serial::Items;
63
use Koha::Library::Group;
64
use Koha::Library::Groups;
63
use Koha::Library::Groups;
65
64
66
my $query = CGI->new();
65
my $query = CGI->new();
Lines 389-395 if ( C4::Context->preference('SeparateHoldingsByGroup') ) { Link Here
389
388
390
    $template->param(
389
    $template->param(
391
        lib_groups                 => \@lib_groups,
390
        lib_groups                 => \@lib_groups,
392
        branchcodes                => \%branchcode_hash,
391
        branchcode_hash            => \%branchcode_hash,
393
        holdings_count_hash        => \%holdings_count,
392
        holdings_count_hash        => \%holdings_count,
394
        total_group_holdings_count => $total_group_holdings_count,
393
        total_group_holdings_count => $total_group_holdings_count,
395
        other_holdings_count       => $other_holdings_count,
394
        other_holdings_count       => $other_holdings_count,
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (-10 / +1 lines)
Lines 297-311 Link Here
297
            otherholdings: "[% PROCESS 'build_table' tab="otherholdings" | collapse | $tojson %]",
297
            otherholdings: "[% PROCESS 'build_table' tab="otherholdings" | collapse | $tojson %]",
298
        };
298
        };
299
299
300
        const branchcodes = {
300
        const branchcodes = [% To.json(branchcode_hash) | $raw %];
301
          [% FOREACH key IN branchcodes.keys %]
302
            "[% key | html %]": [
303
              [% FOREACH code IN branchcodes.$key %]
304
                "[% code | html %]"[% UNLESS loop.last %], [% END %]
305
              [% END %]
306
            ][% UNLESS loop.last %], [% END %]
307
          [% END %]
308
        };
309
301
310
        function build_items_table (tab_id, add_filters, dt_options, drawcallback) {
302
        function build_items_table (tab_id, add_filters, dt_options, drawcallback) {
311
303
312
- 

Return to bug 35211