LP1274999: Next Link Appears at "End" of Copy List
authorJason Boyer <jboyer@library.in.gov>
Tue, 21 Feb 2017 21:31:31 +0000 (16:31 -0500)
committerJason Boyer <jboyer@library.in.gov>
Wed, 22 Feb 2017 13:25:22 +0000 (08:25 -0500)
commite66f9b2e5a0f6af95b9d39401f9afb51c06ef4a1
tree718d4ac20a5586b28c30a7b5a75e8fb48173e39b
parent1a9b8120518584740dd6236ed04d6f0758b5fd36
LP1274999: Next Link Appears at "End" of Copy List

The total number of copies wasn't checked against the
copy_limit and copy_offset, so anytime that the
number of copies per page mod copy_limit == 0 the
Next link would appear, even if there were only
copy_limit copies total. Now the offset and limit are
compared to the total number of copies available at
the current depth to determine if the Next link
should appear.

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Open-ILS/src/templates/opac/parts/record/copy_table.tt2