Bug 9873 - Quiet errors in the log from XSLT.pm
authorOwen Leonard <oleonard@myacpl.org>
Wed, 20 Mar 2013 15:01:30 +0000 (11:01 -0400)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sun, 31 Mar 2013 00:37:14 +0000 (20:37 -0400)
commitbf4337fa3855021b0040a101adc048b89af18dad
tree1fbcbefa5ab6fc0201c868799d220fdf7c391bae
parent33d55a918915c3d7fe2bee679d708c8b887d59cf
Bug 9873 - Quiet errors in the log from XSLT.pm

If XSLTResultsDisplay is enabled and items in your search results lack a
shelving location or a ccode errors will appear in the log complaining
of "uninitialized value in hash element." This patch adds a check on
these values to quiet the errors.

To test, find or create a record with items which have no shelving
location and/or no collection code. Perform a search the results for
which will include your record. Check for errors in the log.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Cleans up logs for result list quite a bit.
Passes all tests and QA script.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/XSLT.pm