Bug 7311: Only run analytics code if analytics are enabled
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 2 Dec 2011 14:24:42 +0000 (15:24 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 27 Dec 2011 17:20:17 +0000 (18:20 +0100)
commit97caccbd0fea3245e3f1c701de7ba2a4e46726d8
tree992c4ac13704f8dc398844a89dc9558e5dfc5a6f
parent6408547cc0d396c8b9d29e1f7617637d9c12a9a6
Bug 7311: Only run analytics code if analytics are enabled

With the addition of the code from Bug 5528 (easy analytic record workflows),
UNIMARC 461$0 and MARC21/NORMARC 773$0 have special meanings. When you import
a record that uses those subfields for different data, you will get an error
in /cataloguing/additem.pl. A check should be added to be sure that
EasyAnalyticalRecords is enabled before trying to handle the 461$0/773$0 as
bib numbers for analytics.

Thanks to Frère Sébastien Marie for spotting this issue.

Signed-off-by: Frère Sébastien Marie <semarie-koha@latrappe.fr>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
cataloguing/additem.pl