LP#1499537 Fixed kpac.xml caching problem
authorLiam Whalen <liam.whalen@bc.libraries.coop>
Thu, 24 Sep 2015 22:00:17 +0000 (15:00 -0700)
committerLiam Whalen <liam.whalen@bc.libraries.coop>
Thu, 24 Sep 2015 22:14:22 +0000 (15:14 -0700)
commitbc43002be5e6a77b4262d7fe0fc5e0504efefdcb
tree1e129abbf54237cfdebaa475ec5a4aa90c74851e
parent8d3544ef37b42aaf4c71d38f0c8cbf6d4d1ca53e
LP#1499537 Fixed kpac.xml caching problem

The EGKPacLoader.pm file caches the kpac.xml file in a global variable.
However, we are using multiple kpac.xml files, which means sometimes the
incorrect kpac.xml file is cached. This causes a problem becuase the
owner attribute of the of the layout element specifies which OU to load
the grid of images for.  When using separate kpac.xml files there is
only one layout element per file, and if the inccorect kpac.xml file is
loaded for an OU, then no layout will be generated resulting in the
missing images.

Signed-off-by: Liam Whalen <liam.whalen@bc.libraries.coop>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm