Koha/admin
Jonathan Druart 46040fcf86
Bug 17355: Add the ability to remove authorised value categories
This new patch set is adding a new DB field is_system to distinguish
internal categories.

The list of internal categories is in the patch "DB changes - set
is_system for categories" and can be discussed/extended.

Test plan:
0.
- Apply patch
- updatedabase
1.
- Create a new AV category
- Create an authorised value
- List the AVs for this category
- Remove all the AVs for this category
=> You see 2 buttons "Add a new authorised value" and "Delete category
'XXX'"
- Click the delete button
=> You get a popup
- Accept
=> The category is deleted

2.
- List the AV for Asort1 (internal category)
/cgi-bin/koha/admin/authorised_values.pl?searchfield=Asort1
- Delete the AVs for this category (if there is any)
=> You do not see the "Delete category" button

3.
- Create a new AV category 'foo'
- Create an authorised value
- Hit /admin/authorised_values.pl?op=delete_category&categor_name=foo
=> You get an error message (expected because the category cannot be
deleted if it has AV linked)
=> message text:
=> An error occurred when deleting this authorized value category. Check the logs.

4.
- Hit /admin/authorised_values.pl?op=delete_category&categor_name=Asort1
=> You get an error message (expected because the category Asort1 cannot
be deleted, it's an internal category.
=> message text:
=> An error occurred when deleting this authorized value category. Check the logs.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-05-04 07:57:21 +01:00
..
searchengine/elasticsearch Bug 23137: Move cache flushing to the method 2020-04-29 17:02:15 +01:00
add_user_search.pl
additional-fields.pl Bug 15774: (QA follow-up) Fix use statemenets 2019-03-07 20:37:06 +00:00
admin-home.pl Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00
adveditorshortcuts.pl Bug 21411: Address QA concerns 2019-05-10 18:59:39 +00:00
aqbudgetperiods.pl
aqbudgets.pl Bug 22786: Prevent fund creation for locked budgets 2019-09-06 13:17:47 +01:00
aqcontract.pl
aqplan.pl
audio_alerts.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
auth_subfields_structure.pl
auth_tag_structure.pl
authorised_values.pl Bug 17355: Add the ability to remove authorised value categories 2020-05-04 07:57:21 +01:00
authtypes.pl
biblio_framework.pl
branch_transfer_limits.pl
branches.pl
cash_registers.pl Bug 24481: Correct permission name in admin/cash_registers.pl 2020-01-23 08:48:43 +00:00
categories.pl
check_budget_parent.pl
check_parent_total.pl
checkmarc.pl
cities.pl
classsources.pl
clone-rules.pl Bug 18936: (follow-up) Add cloning of circulation rules back to Koha 2020-02-04 09:56:29 +00:00
columns_settings.pl
columns_settings.yml Bug 24768: Add 'Return claims' to column configuration for checkouts tables 2020-04-17 13:51:13 +01:00
credit_types.pl Bug 17702: Add UI to manage account credit types 2020-02-20 14:46:33 +00:00
currency.pl
debit_types.pl Bug 23354: (follow-up) Make display of debit types configurable 2020-01-13 14:05:14 +00:00
desks.pl Bug 13881: (QA follow-up) Check for manage_libraries permission 2020-03-25 09:19:34 +00:00
didyoumean.pl Bug 20399: Remove "did you mean" for the staff interface 2020-03-26 11:55:37 +00:00
edi_accounts.pl Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00
edi_ean_accounts.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
import_export_framework.pl Bug 23398: Disable the XML import/export format for biblio framework 2019-11-08 12:51:16 +00:00
item_circulation_alerts.pl
items_search_field.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
items_search_fields.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
itemtypes.pl Bug 21443: Add ability to exclude holidays when calculating rentals fees by time period 2020-03-24 11:09:02 +00:00
koha2marclinks.pl
library_groups.pl Bug 21674: Prevent to insert twice the same library in a group 2020-01-30 15:36:25 +00:00
localization.pl
marc_subfields_structure.pl Bug 8643: Add important constraint to marc subfields 2020-02-11 14:33:29 +00:00
marctagstructure.pl Bug 17232: Make sure all fields are copies when creating a new framework from another 2020-04-27 11:44:32 +01:00
matching-rules.pl
oai_set_mappings.pl Bug 21520: More complex OAI sets mappings 2020-01-15 13:49:19 +00:00
oai_sets.pl
overdrive.pl
patron-attr-types.pl Bug 20443: Fix add/edit for checkboxes 2020-03-23 13:49:23 +00:00
preferences.pl Bug 25120: Make accounting the default tab when opening the pref editor 2020-04-15 12:27:07 +01:00
problem-reports.pl Bug 4461: Fix status and borrowernumber fields in problem_reports and more 2020-04-06 11:18:59 +01:00
share_content.pl Bug 23075: Do not 'Send' if the url is not correct 2019-11-06 17:05:18 +00:00
smart-rules.pl Bug 21746: Remove NO_LIBRARY_SET 2020-03-02 10:20:42 +00:00
sms_providers.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
sru_modmapping.pl
systempreferences.pl
transport-cost-matrix.pl
usage_statistics.pl
z3950servers.pl Bug 11297: Add support for custom PQF attributes for Z39.50 server searches. 2020-02-19 16:07:59 +00:00