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

(-)a/admin/marc-overlay-rules.pl (-4 / +9 lines)
Lines 132-142 elsif ($op eq 'doedit' || $op eq 'add') { Link Here
132
    }
132
    }
133
}
133
}
134
134
135
my $categorycodes = Koha::Patron::Categories->search_with_library_limits({}, {order_by => ['description']});
135
my $categories = {
136
    map { $_->categorycode => $_->description }
137
      Koha::Patron::Categories->search_with_library_limits( {},
138
        { order_by => ['description'] } )->as_list
139
};
140
136
$template->param(
141
$template->param(
137
    rules         => $rules,
142
    rules      => $rules,
138
    categorycodes => $categorycodes,
143
    categories => $categories,
139
    messages      => $errors
144
    messages   => $errors
140
);
145
);
141
146
142
output_html_with_http_headers $input, $cookie, $template->output;
147
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt (-7 / +4 lines)
Lines 1-4 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% USE To %]
3
[% USE Categories %]
2
[% USE Asset %]
4
[% USE Asset %]
3
[% SET footerjs = 1 %]
5
[% SET footerjs = 1 %]
4
[% USE Koha %]
6
[% USE Koha %]
Lines 454-464 Link Here
454
          }
456
          }
455
        });
457
        });
456
458
457
        var $category = {};
459
        var categories = [% To.json( categories ) | $raw %];
458
459
        [% FOR categorycode IN categorycodes %]
460
            $category["[% categorycode.categorycode %]"] = "[% categorycode.description | html %]";
461
        [% END %]
462
460
463
        var module_filter_options = {
461
        var module_filter_options = {
464
        source: {
462
        source: {
Lines 471-477 Link Here
471
            import_lexile: _("import_lexile.pl")
469
            import_lexile: _("import_lexile.pl")
472
        },
470
        },
473
471
474
        categorycode: $category
472
            categorycode: categories,
475
        };
473
        };
476
474
477
        //Kind of hack: Replace filter value with label when one exist
475
        //Kind of hack: Replace filter value with label when one exist
478
- 

Return to bug 33335