From dcb4348b9c9f981d891d699709ff4155b87cdc1c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 8 Feb 2021 14:10:19 +0000 Subject: [PATCH] Bug 27598: (QA follow-up) Add category description and installer data This follow-up makes two additions: - The UPLOAD category is added to auth_val_cat.sql for new installations. - A description of the category is added to the authorized values template. Signed-off-by: Katrin Fischer --- installer/data/mysql/mandatory/auth_val_cat.sql | 4 ++++ koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt | 2 ++ 2 files changed, 6 insertions(+) diff --git a/installer/data/mysql/mandatory/auth_val_cat.sql b/installer/data/mysql/mandatory/auth_val_cat.sql index bd8f81d761..e3bbef04df 100644 --- a/installer/data/mysql/mandatory/auth_val_cat.sql +++ b/installer/data/mysql/mandatory/auth_val_cat.sql @@ -66,3 +66,7 @@ INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES -- For Claims returned INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES ('RETURN_CLAIM_RESOLUTION'); + +-- For file uploads +INSERT IGNORE INTO authorised_value_categories( category_name, is_system ) VALUES + ('UPLOAD', 1); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt index c87bbf7aba..3edb239e9c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -428,6 +428,8 @@

A list of additional custom status values for suggestions that can be used in addition to the default values.

[% CASE 'TERM' %]

Terms to be used in Course Reserves module. Enter terms that will show in the drop down menu when setting up a Course reserve. (For example: Spring, Summer, Winter, Fall).

+ [% CASE 'UPLOAD' %] +

Categories to be assigned to file uploads. Without a category an upload is considered temporary and may be removed during automated cleanup.

[% CASE 'WITHDRAWN' %]

Description of a withdrawn item (appears when adding or editing an item)

[% CASE 'YES_NO' %] -- 2.11.0