KPAC - fix getit_results with short titles
authorBen Shum <bshum@biblio.org>
Wed, 21 Nov 2012 19:17:59 +0000 (14:17 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 27 Nov 2012 19:27:43 +0000 (14:27 -0500)
commitf2637d02138436d0fd38ee2b2a619435a8fc9c9b
treedc356a59e7b37fb44ce5cdba0b76fd8ab993d487
parent419194ddf821ab675dccbb91f9e887daa1934a4c
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