]> git.koha-community.org Git - koha.git/commit
Bug 9947 - Creating item for received serial prefills enumchron subfield
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Thu, 28 Mar 2013 14:52:13 +0000 (15:52 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 14 Apr 2013 06:35:23 +0000 (18:35 +1200)
commitb716f1286118f01eb781864a30a3ceff92047d86
tree4bb5f5184a659918c60429c6dfc7da72b97fcab8
parente51cfb77e0fe07a77fdb313d1fd5afeb96d447c6
Bug 9947 - Creating item for received serial prefills enumchron subfield

In serial receiving :
When creating an item for an issue, a javascript prefilles the $h subfield with issue number.
This is for MARC21, in UNIMARC serial number is on $v.

This patch replaces hard-coded value with the subfield mapped with "items.enumchron".

Test plan :
- Set "Koha to MARC mapping" of "items.enumchron" on a subfield other than $h, ie $z
- Go to a serial subscription detail with "Serial receipt creates an item record"
- Click on "Receive"
- On an issue, click on "Click to add item"
=> Check that issue number is copied into selected subfield, ie $z
You may test that with no mapping of "items.enumchron" there is no javascript error

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Nice catch! Works as advertised.
All tests pass after fixing tabulation characters in serials-edit.tt.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt