KPAC - fix getit_results with short titles user/mrpeters-isl/kpac-fix-getit-with-short-titles-signoff
authorBen Shum <bshum@biblio.org>
Wed, 21 Nov 2012 19:17:59 +0000 (14:17 -0500)
committerMichael Peters <mrpeters@library.in.gov>
Tue, 27 Nov 2012 17:59:04 +0000 (12:59 -0500)
commit8596e08e77f870ccccd642c8b43d7f85982cf295
tree0a1b24bf9aae3ddf6be4eedeb3a11aaed9185f85
parent3fa06edb61052dd6058a1b1779bb0b256e3c6c8a
KPAC - fix getit_results with short titles

When using the "Get it" options to either add an item to a list or place an
item on hold, one would get an internal server error whenever attemping this
on a bib record with a short title.

Turns out that the substr function that shortens the length of long titles
breaks when the title is 18 characters or less.

Add an IF check around the substr function to avoid this error.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Open-ILS/src/templates/kpac/getit_results.tt2