LP#1274999: Adjust TT syntax to match project style user/miker/lp1274999_next_link
authorMike Rylander <mrylander@gmail.com>
Wed, 22 Feb 2017 21:37:35 +0000 (16:37 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 22 Feb 2017 21:37:35 +0000 (16:37 -0500)
commit699e54f96d62b78233d19d46a71f994660e275e4
tree98c03ea0503dd165b5e80e77012e6a5dad13c06e
parente66f9b2e5a0f6af95b9d39401f9afb51c06ef4a1
LP#1274999: Adjust TT syntax to match project style

Using a "$" sigil on a variable is confusing because that normally means
something special in TT, that the value of the variable, rather than the
variable name, should be used when accessing an array or hash by index or
key.

Instead, we can use the "last" vmethod provided for lists to directly
access the last element of the array, and then consult the size of that
list with "count".

Also removed is the sigil on the total_copies variable.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/opac/parts/record/copy_table.tt2