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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (-3 / +2 lines)
Lines 236-243 Link Here
236
        [% END %]
236
        [% END %]
237
237
238
        var coded_values = {
238
        var coded_values = {
239
            library: new Map(all_libraries.map( l => [l.branchname, l.branchcode] )),
239
            library: new Map(all_libraries.map( l => [l.branchname, "^" + l.branchcode + "$"] )),
240
            item_type: new Map(all_item_types.map( i => [i.translated_description, i.itemtype] )),
240
            item_type: new Map(all_item_types.map( i => [i.translated_description, "^" + i.itemtype + "$"] )),
241
            collection_code: new Map([% To.json(AuthorisedValues.GetDescriptionsByKohaField({ kohafield => 'items.ccode' })) | $raw %].map( av => [av.lib, av.authorised_value])),
241
            collection_code: new Map([% To.json(AuthorisedValues.GetDescriptionsByKohaField({ kohafield => 'items.ccode' })) | $raw %].map( av => [av.lib, av.authorised_value])),
242
            location: new Map([% To.json(AuthorisedValues.GetDescriptionsByKohaField({ kohafield => 'items.location' })) | $raw %].map( av => [av.lib, av.authorised_value])),
242
            location: new Map([% To.json(AuthorisedValues.GetDescriptionsByKohaField({ kohafield => 'items.location' })) | $raw %].map( av => [av.lib, av.authorised_value])),
243
        };
243
        };
244
- 

Return to bug 41341