Bug 14660: Fix stocknumberAV.pl cataloguing plugin
commit5f227b42c183f961e83f537a9f84f13e32f4424e
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Thu, 6 Aug 2015 22:20:09 +0000 (7 00:20 +0200)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Thu, 20 Aug 2015 16:40:56 +0000 (20 13:40 -0300)
tree09197af8000e1ee9fefab8a501d9b5ba4f77f30e
parent3ec8b27185f0c8600bc931c5284a5d73d0a42aac
Bug 14660: Fix stocknumberAV.pl cataloguing plugin

The cataloguing plugin stocknumberAV.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
- Set up a new authorised value INVENTORY, the code is an uppercase
  prefix - "B"
- The Descriptions is your starting number - 1
- The OPAC description remains empty
- Catalalog an item
- Enter B 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>
cataloguing/value_builder/stocknumberAV.pl