From f1f284849a3ee98895867bf7f5bc4c86575b9d8a Mon Sep 17 00:00:00 2001 From: dbs Date: Fri, 21 Jan 2011 22:04:00 +0000 Subject: [PATCH] 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 --- Open-ILS/web/opac/skin/default/xml/result/result_table.xml | 3 +++ 1 file changed, 3 insertions(+) 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 a0a502da0..77b35f5f6 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; } -- 2.11.0