]> git.koha-community.org Git - koha.git/commit
Bug 27598: Add UPLOAD as a built-in system authorized value category
authorOwen Leonard <oleonard@myacpl.org>
Tue, 2 Feb 2021 16:42:03 +0000 (16:42 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 15 Feb 2021 10:59:31 +0000 (11:59 +0100)
commit289fe72614c43eb18aa911c8e6f54879db15918e
treeeac9da9107a7e346ad448a36ccc0b3b12c94c540
parent30d92f92481c6ab6871f1b92df9600793ded98a1
Bug 27598: Add UPLOAD as a built-in system authorized value category

This patch updates the database so that it includes an "UPLOAD"
authorized value category with the "is_system" flag set to 1.

The upload tool template is updated to add a link to the authorized
value category from the hint which appears if no authorized values exist
in the UPLOAD category.

To test, apply the patch and run the database update.

- If you have manually added an UPLOAD category it should now be
  classified as a system category.
- If you did not have an UPLOAD category it should have been created for
  you.
- With no authorized values in the UPLOAD category, go to Tools ->
  Upload.
  - Logged in as a user with permission to manage authorized values you
    should see a note, "No upload categories are defined..." It should
    contain a link directly to the UPLOAD category of authorized values.
  - Logged in as a user without authorized value permission you should
    see a similar note without the link.
- Add an authorized value in the UPLOAD category and confirm that the
  note disappears.

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/atomicupdate/bug_27598_add_default_upload_authorised_value_category.perl [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt