]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1753005: Avoid copy alert error for call numbers with no copies
authorMike Rylander <mrylander@gmail.com>
Wed, 25 Apr 2018 16:32:15 +0000 (12:32 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 25 May 2018 15:08:46 +0000 (11:08 -0400)
commit78edd208f6bf061e803b65722321a4d2358049ae
treea8d8781e06c68af57e38fd07f8069260ce550f4d
parentdabc5a7c31c825767fea1e4302a5de833c6cbb8b
LP#1753005: Avoid copy alert error for call numbers with no copies

When displaying the Holdings View tab for a bib in the web staff client,
if a volume record has no copies, a Javascript error gets thrown.

Item-less volumes still end up in svc.copies at this point, so at the
moment it is necessary to check whether copy_alerts actually exists.
Some renaming might also be in order to clarify that svc.copies doesn't
necessarily contain /only/ fleshed acp records.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/web/js/ui/default/staff/cat/services/holdings.js