[% USE raw %] [% USE Asset %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% IF op == 'add_source' %] [% IF class_source %] Modify classification source [% ELSE %] Add classification source [% END %] › [% ELSIF op == 'add_sort_rule' %] [% IF sort_rule %] Modify filing rule [% ELSE %] Add filing rule [% END %] › [% ELSIF op == 'add_split_rule' %] [% IF split_rule %] Modify splitting rule [% ELSE %] Add splitting rule [% END %] › [% END %] Classification sources › Administration › Koha [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'prefs-admin-search.inc' %]
[% FOR m IN messages %]
[% SWITCH m.code %] [% CASE 'error_on_update_source' %] An error occurred when updating this classification source. [% CASE 'success_on_update_source' %] Classification source updated successfully. [% CASE 'error_on_insert_source' %] An error occurred when adding this classification source. Perhaps the code already exists? [% CASE 'success_on_insert_source' %] Classification source added successfully. [% CASE 'error_on_delete_source' %] An error occurred when deleting this classification source. [% CASE 'success_on_delete_source' %] Classification source deleted successfully. [% CASE 'error_on_update_sort_rule' %] An error occurred when updating this filing rule. [% CASE 'success_on_update_sort_rule' %] Filing rule updated successfully. [% CASE 'error_on_insert_sort_rule' %] An error occurred when adding this filing rule. Perhaps the code already exists? [% CASE 'success_on_insert_sort_rule' %] Filing rule added successfully. [% CASE 'error_on_delete_sort_rule' %] An error occurred when deleting this filing rule. Perhaps it is used by at least one classification source? [% CASE 'success_on_delete_sort_rule' %] Filing rule deleted successfully. [% CASE 'error_on_update_split_rule' %] An error occurred when updating this splitting rule. [% CASE 'success_on_update_split_rule' %] Splitting rule updated successfully. [% CASE 'error_on_insert_split_rule' %] An error occurred when adding this splitting rule. Perhaps the code already exists? [% CASE 'success_on_insert_split_rule' %] Splitting rule added successfully. [% CASE 'error_on_delete_split_rule' %] An error occurred when deleting this splitting rule. Perhaps it is used by at least one classification source? [% CASE 'success_on_delete_split_rule' %] Splitting rule deleted successfully. [% CASE %] [% m.code | html %] [% END %]
[% END %] [% IF op == 'add_source' %] [% IF class_source %]

Modify classification source

[% ELSE %]

Add classification source

[% END %]
  1. [% IF class_source %] Classification source code: [% class_source.cn_source | html %] [% ELSE %] Required [% END %]
  2. Required
  3. [% IF ( class_source.used ) %][% ELSE %] [% END %]
  4. Required
  5. Required
Cancel
[% END %] [% IF op == 'add_sort_rule' %] [% IF sort_rule %]

Modify filing rule

[% ELSE %]

Add filing rule

[% END %]
  1. [% IF sort_rule %] Filing rule code: [% sort_rule.class_sort_rule | html %] [% ELSE %] Required [% END %]
  2. Required
  3. Required
Cancel
[% END %] [% IF op == 'add_split_rule' %] [% IF split_rule %]

Modify splitting rule

[% ELSE %]

Add splitting rule

[% END %]
  1. [% IF split_rule %] Splitting rule code: [% split_rule.class_split_rule | html %] [% ELSE %] Required [% END %]
  2. Required
  3. Required
  4. [% IF split_rule AND split_rule.regexs.size %] [% FOR re IN split_rule.regexs %] [% END %] [% ELSE %] [% END %]
    New Required
Cancel
[% END %] [% IF op == 'list' %]

Classification sources

[% FOREACH class_source IN class_sources %] [% END %]
Code Description In use Filing rule Splitting rule Actions
[% class_source.cn_source | html %] [% class_source.description |html | html %] [% IF ( class_source.used ) %]Yes[% ELSE %]No[% END %] [% class_source.class_sort_rule | html %] [% class_source.class_split_rule | html %] Edit Delete

Classification filing rules

[% FOREACH rule IN sort_rules %] [% END %]
Code Description Sorting routine Actions
[% rule.class_sort_rule | html %] [% rule.description |html | html %] [% rule.sort_routine | html %] Edit Delete

Classification splitting rules

[% FOREACH rule IN split_rules %] [% END %]
Code Description Splitting routine Actions
[% rule.class_split_rule | html %] [% rule.description | html %] [% rule.split_routine | html %] Edit Delete
[% END %]
[% MACRO jsinclude BLOCK %] [% Asset.js("js/admin-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]