LP#1441714 Remove 'NO COPIES' in Staff Client user/ldw/LP1441714_No_Copies_Message
authorLiam Whalen <liam.whalen@bc.libraries.coop>
Wed, 17 Jul 2013 00:23:57 +0000 (17:23 -0700)
committerLiam Whalen <liam.whalen@bc.libraries.coop>
Wed, 8 Apr 2015 17:50:08 +0000 (10:50 -0700)
commita4422f759a81e938e49fd59b2e8c6af999347725
treef55cdfe5938f9d209f2e00702addc2b27fd82857
parent962902632bcd6bbbca30813d289e439a15f068eb
LP#1441714 Remove 'NO COPIES' in Staff Client

When a record has only OPAC invisible items attached to it, the TPAC
displays a 'NO COPIES' message in the staff client.

This fix skips the check for opac visible items when the staff client is
being used.  This can result in incomplete information being displayed in
the summary of the available items because opac invisible items are
often incomplete and do not have shelving locations or libraries
assigned to them.

This fix checks for ctx.is_staff in a number of lines. This results in
holdings being excluded only if the copy is not visible and the
ctx.is_staff variable is not set.

Signed-off-by: Liam Whalen <liam.whalen@bc.libraries.coop>
Open-ILS/src/templates/opac/parts/misc_util.tt2