Bug 11351 - Add support for SIP2 media types
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 6 Dec 2013 18:35:49 +0000 (13:35 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 28 Apr 2014 17:54:42 +0000 (17:54 +0000)
commitfd3ab5e21af4010dd1c153bf09b19471171919cc
treebb0814aaf3969264fd431b14ad4daf795bff8234
parentf402bcc540b613ab30b22c6fd8337782a241aa74
Bug 11351 - Add support for SIP2 media types

Koha's SIP2 server implementation does not currently support the SIP2
protocol field "media type" ( CK ).

This patch implements the SIP2 media type by allowing an arbitrary
mapping of itemtypes to SIP2 media types.

Test Plan:
1) Apply this patch
2) Run updatedatabase
3) Edit an itemtype, select a SIP media type, and save the changes
4) Make a SIP2 Item Information Request
5) Verify that the CK field of the Item Information Response contains
   the correct media type code.

Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
12 files changed:
C4/SIP/ILS/Item.pm
Koha/Schema/Result/Itemtype.pm
Koha/Template/Plugin/AuthorisedValues.pm
admin/itemtypes.pl
installer/data/mysql/de-DE/optional/auth_val.sql
installer/data/mysql/en/optional/auth_val.sql
installer/data/mysql/es-ES/optional/auth_val.sql
installer/data/mysql/kohastructure.sql
installer/data/mysql/nb-NO/2-Valgfritt/auth_val.sql
installer/data/mysql/pl-PL/optional/auth_val.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt