LP#1549505: remove caching of badge definitions in TPAC
authorGalen Charlton <gmc@esilibrary.com>
Fri, 25 Mar 2016 01:22:25 +0000 (21:22 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 25 Mar 2016 01:22:25 +0000 (21:22 -0400)
commit4b5f544b8a244939aa853377da8ccf0b42d61496
treee1d5ab02fffedb149b2b8f6cc6061b6d33b4d459
parent9031c92e336ceecc2f552ba9d3ce652ec2f17c35
LP#1549505: remove caching of badge definitions in TPAC

The speed difference turned out to be minimal (0.004 seconds)
per render of record summary page; this way, adding a new
badge won't require an Apache reload to see the new
badge's name consistently.

As a good side-effect, the badge name can now be
exposed to the I18N system.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
Open-ILS/src/templates/opac/parts/record/summary.tt2