From 0992ca5da93a329e915b2e0584186d259197ec1d Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 7 Aug 2015 00:33:54 +0200 Subject: [PATCH] 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 Signed-off-by: Jonathan Druart --- cataloguing/value_builder/stocknumberam123.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/cataloguing/value_builder/stocknumberam123.pl b/cataloguing/value_builder/stocknumberam123.pl index 1f5ed54..6290be6 100755 --- a/cataloguing/value_builder/stocknumberam123.pl +++ b/cataloguing/value_builder/stocknumberam123.pl @@ -22,6 +22,7 @@ use warnings; use C4::Auth; use CGI qw ( -utf8 ); use C4::Context; +use C4::Output; =head1 DESCRIPTION -- 2.1.0