Bug 9947

Summary: Creating item for received serial prefills enumchron subfield
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: SerialsAssignee: Fridolin Somers <fridolin.somers>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P5 - low CC: chris, colin.campbell
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Proposed patch
Bug 9947 - Creating item for received serial prefills enumchron subfield
[PASSED QA] Bug 9947 - Creating item for received serial prefills enumchron subfield
[PASSED QA] Bug 9947 - Creating item for received serial prefills enumchron subfield

Description Fridolin Somers 2013-03-28 14:50:23 UTC
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.
Hard-coded value must be changed with the subfield mapped with "items.enumchron".
Comment 1 Fridolin Somers 2013-03-28 15:00:04 UTC Comment hidden (obsolete)
Comment 2 Chris Cormack 2013-03-31 05:32:05 UTC Comment hidden (obsolete)
Comment 3 Katrin Fischer 2013-03-31 11:36:46 UTC Comment hidden (obsolete)
Comment 4 Katrin Fischer 2013-03-31 11:37:34 UTC
Created attachment 17085 [details] [review]
[PASSED QA] 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.
Comment 5 Jared Camins-Esakov 2013-04-02 12:59:03 UTC
This patch has been pushed to master.
Comment 6 Chris Cormack 2013-04-14 06:37:25 UTC
Pushed to 3.8.x and 3.10.x will be in 3.8.12 and 3.10.5