Bug 14660: Fix stocknumberam123.pl cataloguing plugin
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Thu, 6 Aug 2015 22:33:54 +0000 (00:33 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 23 Aug 2015 06:13:49 +0000 (18:13 +1200)
commitd478dc915915a74000bd053b87e25a1700b06030
tree75e77a1ec01c32f4033cb98c27b662c90e0beaf0
parent8538cc03f1cffb5b5eeabb06bf6c82e579f5528f
Bug 14660: Fix stocknumberam123.pl cataloguing plugin

The cataloguing plugin stocknumberam123.pl is broken and no
longer generating numbers - this patch fixes it.

To test:
 - Link a subfield to the plugin - usually it's 952$i or the UNIMARC
   equivalent in your MARC frameworks
 - Create a new item, set the inventory number to: A 0000000002
 - Start to catalog another item, enter A into inventory and
 - Enter A as stocknumber and activate the plugin by clicking on
   ... at the end of the field
 - The number will not get added - Firebug shows an error:
   Undefined subroutine CGI::output_html_with_http_headers
 - Apply patch
 - Verify numbers are now generated and no errors are shown

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit 85d27f6d9f310002f65dbc17b9c22e9976032cf8)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
cataloguing/value_builder/stocknumberam123.pl