Lines 499-514
Link Here
|
499 |
categories.unshift({ categorycode: '*', description: '*'}); |
499 |
categories.unshift({ categorycode: '*', description: '*'}); |
500 |
categories = categories.reduce( ( a,c ) => ( { ...a, [c.categorycode]: c.description } ), {} ); |
500 |
categories = categories.reduce( ( a,c ) => ( { ...a, [c.categorycode]: c.description } ), {} ); |
501 |
|
501 |
|
502 |
var module_filter_options = { |
502 |
var module_filter_options = { |
503 |
source: { |
503 |
source: { |
504 |
'*': '*', |
504 |
'*': '*', |
505 |
batchmod: _("Batch record modification"), |
505 |
[% FOREACH record_source IN record_sources %] |
506 |
intranet: _("Staff interface MARC editor"), |
506 |
[% SWITCH record_source %] |
507 |
batchimport: _("Staged MARC import"), |
507 |
[% CASE 'batchmod' %]'[% record_source %]': _("Batch record modification"), |
508 |
z3950: _("Z39.50"), |
508 |
[% CASE 'intranet' %]'[% record_source %]':_("Staff interface MARC editor"), |
509 |
bulkmarcimport: _("bulkmarcimport.pl"), |
509 |
[% CASE 'batchimport' %]'[% record_source %]': _("Staged MARC import"), |
510 |
import_lexile: _("import_lexile.pl") |
510 |
[% CASE 'z3950' %]'[% record_source %]': _("Z39.50"), |
511 |
}, |
511 |
[% CASE 'bulkmarkimport' %]'[% record_source %]': _("bulkmarcimport.pl"), |
|
|
512 |
[% CASE 'import_lexile' %]'[% record_source %]': _("import_lexile.pl"), |
513 |
[% CASE %] '[% record_source %]' : '[% record_source | html %]', |
514 |
[% END %] |
515 |
[% END %] |
516 |
}, |
512 |
|
517 |
|
513 |
categorycode: categories, |
518 |
categorycode: categories, |
514 |
}; |
519 |
}; |
515 |
- |
|
|