LP1274999: Next Link Appears at "End" of Copy List user/jboyer/lp1274999_next_link
authorJason Boyer <jboyer@library.in.gov>
Tue, 21 Feb 2017 21:31:31 +0000 (16:31 -0500)
committerJason Boyer <jboyer@library.in.gov>
Mon, 27 Feb 2017 20:30:16 +0000 (15:30 -0500)
commitf722938e6acfdf347f50e8c5889ad2fc915738dc
tree7970bf8e921d32b43a9aac496cce9e44a3039937
parent4f2117f2016dc5542e9c5b45069c653d65f243c1
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