Koha/installer/data/mysql/en/mandatory
Jonathan Druart a79eb3f30a Bug 17216: Add new table authorised_value_categories and populate it
This patch set adds a new table authorised_value_categories to store
authori(s|z)ed value categories into a separate table.
The problematic is explained on bug 15799 comment 4:
We need FK to the AV categories but some may not have authorized values
yet.

What does this patch set:
- Add a new authorised_value_categories table
- Populate it with known categories
- Update FK items_search_fields.authorised_values_category
- Create a new FK marc_subfield_structure.authorised_value (FIXME should
  be authorised_value_categories instead)

They are some problems this patch set do not take into account:
- The .sql installer files won't insert correctly (will have to be
  updated when this patch set will be ready to be pushed)
- All the categories (even the ones without authorized values defined)
  are listed when you edit frameworks (marc_subfield_structure.pl)
- There is no way to delete a category (TODO). But to do so it would be
  good to have a authorised_value_categories.is_internal field to mark
  some categories as "cannot be deleted".

Test plan:
0/ Execute the DB entry to create and populate the new table and set the FK
1/ Create a new AV category from the admin module (admin/authorised_values.pl)
2/ Add/edit subfield linked to a AV category
(admin/marc_subfield_structure.pl)
3/ You won't be allowed to add AV for branches, itemtypes or cn_source.
They are used internally.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer  <katrin.fischer@bsz-bw.de>

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
2016-10-11 07:30:30 +00:00
..
auth_values.sql Bug 17216: Add new table authorised_value_categories and populate it 2016-10-11 07:30:30 +00:00
auth_values.txt wr76595 (bug 4157): Control barcode display with a borrower attribute 2011-04-05 14:54:50 +12:00
class_sources.sql Fix FSF address in directory installer/ 2010-03-16 20:17:50 -04:00
class_sources.txt
message_transport_types.sql Bug 12298: The "feed" MTT does not seem to be used and can be removed 2014-11-25 17:14:50 -03:00
message_transport_types.txt Bug 11731 - Fixed typo in message_transport_types.txt file. 2014-03-11 14:20:32 +00:00
sample_frequencies.sql Bug 11261: make sample serial frequencies mandatory during installation 2013-12-13 18:34:05 +00:00
sample_frequencies.txt Bug 11261: make sample serial frequencies mandatory during installation 2013-12-13 18:34:05 +00:00
sample_notices.sql Bug 8753 - Add forgot password link to OPAC 2016-01-27 06:40:53 +00:00
sample_notices.txt Bug 9023: Update installer text files 2012-11-20 08:05:04 -05:00
sample_notices_message_attributes.sql Bug 7022: Move sample_notices* sql files from optional to mandatory 2011-10-18 15:57:57 +13:00
sample_notices_message_attributes.txt Bug 9023: Update installer text files 2012-11-20 08:05:04 -05:00
sample_notices_message_transports.sql Bug 7022: Move sample_notices* sql files from optional to mandatory 2011-10-18 15:57:57 +13:00
sample_notices_message_transports.txt Bug 9023: Update installer text files 2012-11-20 08:05:04 -05:00
sample_numberpatterns.sql Bug 11260: Follow up - normalizing frequencies in English sample file a bit 2014-01-08 00:53:56 +00:00
sample_numberpatterns.txt Bug 11261: make sample serial numbering patterns mandatory during installation 2013-12-13 18:33:57 +00:00