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 Etheridge <jason@esilibrary.com>
Thu, 18 May 2017 16:17:44 +0000 (12:17 -0400)
commit04ba0cb4b666ecca4fa53c08ea42ed7a9e2b7771
tree0e3eb800b651bc0f027c3fb2d308c28909bfd4da
parent997e45aa27126442f1e3441a8b4d4e734a1fe365
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>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/templates/opac/parts/record/copy_table.tt2