Koha/koha-tmpl/intranet-tmpl/prog/en/modules
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
..
acqui Bug 8821: make receive shipment page hide inactive funds like new order form 2013-09-16 16:26:12 +00:00
admin Bug 10513: display a warning/message when returning a chosen item type 2013-09-16 17:45:31 +00:00
authorities Bug 5262: make authority plugin copy indicators to bib record 2013-08-14 17:17:22 +00:00
basket Bug 10592: fix display of favicon 2013-07-22 14:00:23 +00:00
batch Bug 7760: Add ids and classes to every staff page to help with customizaton (batch, error) 2012-03-22 18:12:24 +01:00
catalogue Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
cataloguing Bug 10841: Make edit/delete item context links in cataloguing translatable 2013-09-16 16:35:02 +00:00
circ Bug 10513: display a warning/message when returning a chosen item type 2013-09-16 17:45:31 +00:00
course_reserves Bug 10634 - Use datatables for course details items table 2013-09-04 14:19:03 +00:00
errors Bug 2780 - Capitalize strings consistently (Error pages) 2012-04-10 10:03:32 +02:00
help Bug 10678 - Update addbooks help page 2013-09-08 22:31:29 +00:00
installer Bug 2774 - Path to theme is hard-coded in many places 2013-06-07 09:04:15 -07:00
labels Bug 9618: (follow-up) include link to jQuery only if needed 2013-09-16 16:05:51 +00:00
members Bug 9943: activate "Pay selected" button only when at least one fine is selected 2013-09-08 07:10:42 +00:00
offline_circ Bug 10288 - Fix a tiny typo on "Pending offline circulation actions" 2013-05-20 12:23:32 -07:00
patroncards Bug 9924 - Simplify and rename patron card creator error message include 2013-09-08 19:19:23 +00:00
plugins Bug 7804 - Add Koha Plugin System - QA Followup 2 2013-03-20 14:50:19 -04:00
reports Bug 10718: fix items with no checkouts report 2013-09-08 20:04:43 +00:00
reserve Bug 10247: show warning if hold blocked due to maxreserves syspre 2013-08-12 15:02:57 +00:00
reviews Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
rotating_collections Bug 2780 - Capitalize strings consistently (reserve, review, rotating collections) 2012-04-10 10:04:13 +02:00
serials Bug 10570: Show nonpublic note on check expiration page 2013-09-16 16:22:31 +00:00
services Bug 10475 - Item form in acquisition not hiding subfields properly 2013-07-12 20:40:15 +00:00
sms Bug 2780 - Capitalize strings consistently - various 2012-04-10 10:04:16 +02:00
suggestion Bug 4907: make 'Organize by' filter in suggestions reflect selected option 2013-07-08 15:15:16 +00:00
tags Bug 2774 - Path to theme is hard-coded in many places 2013-05-20 11:11:04 -07:00
test Bug 2774 - Path to theme is hard-coded in many places 2013-05-20 11:11:04 -07:00
tools Bug 10170: expose more managed staged MARC strings to translation 2013-07-16 15:45:20 +00:00
virtualshelves Bug 9757: Remove duplicated action buttons. 2013-06-26 09:04:37 -07:00
z3950 Bug 9265 - Switch to HTML5 doctype in OPAC and staff client 2013-01-31 11:47:04 -05:00
about.tt Bug 7143: history.txt and about page updates 2013-09-07 20:47:22 +00:00
auth.tt Bug 10080 - Change system pref IndependantBranches to IndependentBranches 2013-05-22 07:58:23 -07:00
intranet-main.tt Bug 7875: Change the pending suggestion link in home page so that it directs to pending suggestions 2013-03-20 08:40:43 -04:00