]> git.koha-community.org Git - koha.git/commit
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)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Mon, 16 Jan 2012 20:47:29 +0000 (15:47 -0500)
commitc7047cadd9615bc73770bf360a642c5cc387b1d1
tree439f3ac21ec30af7a2068c43ccb468368dd65bb0
parentdf6f4d0c348b41882fdca8a5037870934c80f664
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>
(cherry picked from commit 97caccbd0fea3245e3f1c701de7ba2a4e46726d8)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
cataloguing/additem.pl