From: dbs Date: Fri, 21 Jan 2011 22:04:00 +0000 (+0000) Subject: Protect against volumes with many copies attached X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f1f284849a3ee98895867bf7f5bc4c86575b9d8a;p=evergreen%2Fpines.git Protect against volumes with many copies attached Bill Erickson has good data for testing these cases. git-svn-id: svn://svn.open-ils.org/ILS/trunk@19255 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/xml/result/result_table.xml b/Open-ILS/web/opac/skin/default/xml/result/result_table.xml index a0a502da0a..77b35f5f66 100644 --- a/Open-ILS/web/opac/skin/default/xml/result/result_table.xml +++ b/Open-ILS/web/opac/skin/default/xml/result/result_table.xml @@ -150,6 +150,9 @@ return output.innerHTML; } dojo.query('copy', vol).forEach(function (cp) { + if (item_cnt >= max_items) { + return; + } if (cp.getAttribute('deleted') == 't') { return; }