- [% IF ( action_modify ) %]Modify authorized value[% END %] - [% IF ( action_add_value ) %]New authorized value[% END %] - [% IF ( action_add_category ) %]New category[% END %] -
+ [% IF op == 'add_form' %] ++ [% IF ( action_modify ) %]Modify authorized value[% END %] + [% IF ( action_add_value ) %]New authorized value[% END %] + [% IF ( action_add_category ) %]New category[% END %] +
- [% IF ( action_modify ) %] NOTE: If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.
[% END %]
-
-
-[% END %]
-
-[% IF op == 'list' %]
-
-
-
-[% IF ( searchfield ) %]
- Authorized values for category [% category.category_name | html %]
- [% PROCESS category_descriptions code_category = category.category_name %] -[% ELSE %] -Authorized values
-[% END %] - -[% IF ( searchfield ) %] -
- NOTE: If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.
-
-[% END %]
-
-[% FOR m IN messages %]
-
- [% SWITCH m.code %]
- [% CASE 'error_on_update' %]
- An error occurred when updating this authorized value. Perhaps the value already exists.
- [% CASE 'error_on_insert' %]
- An error occurred when inserting this authorized value. Perhaps the value or the category already exists.
- [% CASE 'error_on_insert_cat' %]
- An error occurred when inserting this authorized value category. Perhaps the category name already exists.
- [% CASE 'error_on_delete' %]
- An error occurred when deleting this authorized value. Check the logs.
- [% CASE 'error_on_delete_category' %]
- An error occurred when deleting this authorized value category. Check the logs.
- [% CASE 'success_on_update' %]
- Authorized value updated successfully.
- [% CASE 'success_on_insert' %]
- Authorized value added successfully.
- [% CASE 'success_on_insert_cat' %]
- Authorized value category added successfully.
- [% CASE 'success_on_delete' %]
- Authorized value deleted successfully.
- [% CASE 'success_on_delete_category' %]
- Authorized value category deleted successfully.
- [% CASE 'cat_already_exists' %]
- This authorized value category already exists.
- [% CASE 'invalid_category_name' %]
- The authorized value category 'branches', 'itemtypes' and 'cn_source' are used internally by Koha and are not valid.
- [% CASE %]
- [% m.code | html %]
- [% END %]
-
-[% END %]
-
-[% IF ( searchfield ) %]
-
-
- [% IF loop %]
+ [% IF op == 'list' %]
+
- Authorized value | -Description | -Description (OPAC) | -Icon | -Library limitations | -Actions | -
---|---|---|---|---|---|
[% loo.authorised_value | html %] | -[% loo.lib | html %] | -[% loo.lib_opac | html %] | -[% IF ( loo.imageurl ) %][% ELSE %] [% END %] | -
- [% IF loo.branches.size > 0 %]
- [% branches_str = "" %]
- [% FOREACH branch IN loo.branches %]
- [%- IF loop.first -%]
- [% branches_str = branch.branchname _ " (" _ branch.branchcode _ ")" %]
+ [% IF ( searchfield ) %]
+ Authorized values for category [% category.category_name | html %]+ [% PROCESS category_descriptions code_category = category.category_name %] [% ELSE %] - [% branches_str = branches_str _ "\n" _ branch.branchname _ " (" _ branch.branchcode _ ")" %] +Authorized values[% END %] - [% END %] - - [% IF loo.branches.size > 1 %] - [% loo.branches.size | html %] library limitations - [% ELSE %] - [% loo.branches.size | html %] library limitation + + [% IF ( searchfield ) %] +
+ NOTE: If you change an authorized value code, existing records using it won't be updated. Changes to value descriptions will show immediately.
+
[% END %]
- [% ELSE %]
- No limitation
- [% END %]
- |
- Edit - Delete | -
+ [% SWITCH m.code %]
+ [% CASE 'error_on_update' %]
+ An error occurred when updating this authorized value. Perhaps the value already exists.
+ [% CASE 'error_on_insert' %]
+ An error occurred when inserting this authorized value. Perhaps the value or the category already exists.
+ [% CASE 'error_on_insert_cat' %]
+ An error occurred when inserting this authorized value category. Perhaps the category name already exists.
+ [% CASE 'error_on_delete' %]
+ An error occurred when deleting this authorized value. Check the logs.
+ [% CASE 'error_on_delete_category' %]
+ An error occurred when deleting this authorized value category. Check the logs.
+ [% CASE 'success_on_update' %]
+ Authorized value updated successfully.
+ [% CASE 'success_on_insert' %]
+ Authorized value added successfully.
+ [% CASE 'success_on_insert_cat' %]
+ Authorized value category added successfully.
+ [% CASE 'success_on_delete' %]
+ Authorized value deleted successfully.
+ [% CASE 'success_on_delete_category' %]
+ Authorized value category deleted successfully.
+ [% CASE 'cat_already_exists' %]
+ This authorized value category already exists.
+ [% CASE 'invalid_category_name' %]
+ The authorized value category 'branches', 'itemtypes' and 'cn_source' are used internally by Koha and are not valid.
+ [% CASE %]
+ [% m.code | html %]
+ [% END %]
+
+ [% END %]
- Category | -Description | -- |
---|---|---|
[% c | html %] | -- [% PROCESS category_descriptions code_category = c %] - | -- Add - | -
+ + +
+Authorized value | +Description | +Description (OPAC) | +Icon | +Library limitations | +Actions | +
---|---|---|---|---|---|
[% loo.authorised_value | html %] | +[% loo.lib | html %] | +[% loo.lib_opac | html %] | ++ [% IF ( loo.imageurl ) %][% ELSE %] [% END %] | ++ [% IF loo.branches.size > 0 %] + [% branches_str = "" %] + [% FOREACH branch IN loo.branches %] + [%- IF loop.first -%] + [% branches_str = branch.branchname _ " (" _ branch.branchcode _ ")" %] + [% ELSE %] + [% branches_str = branches_str _ "\n" _ branch.branchname _ " (" _ branch.branchcode _ ")" %] + [% END %] + [% END %] + + [% IF loo.branches.size > 1 %] + [% loo.branches.size | html %] library limitations + [% ELSE %] + [% loo.branches.size | html %] library limitation + [% END %] + [% ELSE %] + No limitation + [% END %] + | +Edit + Delete | +
Category | +Description | ++ |
---|---|---|
[% c | html %] | ++ [% PROCESS category_descriptions code_category = c %] + | ++ Add + | +