Koha-clms/installer/data/mysql
Magnus Enger 9dca7096c8 Bug 10513: display a warning/message when returning a chosen item type
This patch adds a new column to item types. Text in this column is
displayed as a warning when an item of the given type is checked in.
The type of message can also be chosen, affecting how the message is
displayed.

Use case: Items that are on inter-library loan can have a separate
item type, and when items of this type are checked in a message
saying something like "ILL! Remember to return it to the owning
library!" can be displayed.

To test:
- Apply the patch
- Go to Home > Administration > Item types administration
- Check that there is a new column, called "Check in message"
- Edit an item type and add a check in message
- Check that the check in message you added is displayed in the table
- Check in an item with an item type that has a check in message
- Check that the message is displayed
- Repeat the steps above, but select "Alert" instead of the default
  "Message" as the "Check in message type". Check that the message
  is displayed in a yellow alert box, not a blue message box.
- Check in an item with an item type that does *not* have a check
  in message, and make sure no false messages are displayed
- Create a new item type from scratch and check that it works
  the way it is supposed to
- Run the tests in t/ItemType.t, which are updated by this patch

This patch also removes backticks around column names in the
itemtypes table in installer/data/mysql/kohastructure.sql

UPDATE 2013-07-22
- Rebased on current master (no changes)
- Added "AFTER summary" to the SQL statement in updatedatabase.pl
- Added another placeholder on line 170 of admin/itemtypes.pl
Thanks Katrin!

UPDATE 2013-07-29
- Make this message independent of all other messages - thanks Owen!
- Make it possible to choose the type of message ("alert" or
  "message")

Sponsored-by: Kultur i Halland - Regionbibliotek
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Fixed some tabs to make the QA script happy.
All old and new tests pass.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-09-16 17:45:31 +00:00
..
atomicupdate Bug 7475: Update configuration 2012-09-19 17:15:25 +02:00
de-DE Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
en Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
es-ES Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
fr-FR Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
it-IT Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
nb-NO Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
pl-PL Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
ru-RU Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
uk-UA Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
backfill_statistics.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
kohastructure.sql Bug 10513: display a warning/message when returning a chosen item type 2013-09-16 17:45:31 +00:00
labels_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
patroncards_upgrade.pl Bug 2505 - Add commented use warnings where missing in the installer/ directory 2010-04-21 20:26:28 +12:00
sample_only_param_tables.sql
…
sysprefs.sql Bug 10320: (follow-up) tidy up new system preferences 2013-09-08 07:04:49 +00:00
update22to30.pl Bug 8289 Upgrading from 2.2 does not work anymore 2012-06-25 16:15:42 +02:00
updatedatabase.pl Bug 10513: display a warning/message when returning a chosen item type 2013-09-16 17:45:31 +00:00