Bug 8307: Set a value for subfields when receiving
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 18 May 2012 11:42:36 +0000 (13:42 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 31 Oct 2013 23:36:59 +0000 (23:36 +0000)
commit4b36244c7398c3af9a83293b848b71bbce5cc499
treef037378813e1af216703ecb9eb1b8abbff711e67
parent6398126f8899b57380fbc32d23662ba0e9c48f43
Bug 8307: Set a value for subfields when receiving

If items are created when ordering, this patch allows to add a value for
some items subfields.

Test plan:
Define status for items.notforloan (mapping 995$o in unimarc), for
example 4:On order, 5:On treatment

Set the Syspref AcqCreateItem on "ordering".

ACQ framework : set default value = 4 for 995$o (in unimarc)

Syspref AcqItemSetSubfieldsWhenReceived : set "o=5|b='foo bar'"

When ordering the item, default status will be 4 ; when receiving the
item, status will be changed from 4 to 5. The subfield b have to contain
'foo bar'

Signed-off-by: Frederic Durand <frederic.durand@unilim.fr>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
acqui/finishreceive.pl
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref