[open-ils-commits] r9052 - trunk/Open-ILS/xul/staff_client/server/cat

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Mar 16 05:28:56 EDT 2008


Author: phasefx
Date: 2008-03-16 04:55:04 -0400 (Sun, 16 Mar 2008)
New Revision: 9052

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
Log:
dedup Show All in Catalog

Modified: trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js	2008-03-16 08:51:04 UTC (rev 9051)
+++ trunk/Open-ILS/xul/staff_client/server/cat/record_buckets.js	2008-03-16 08:55:04 UTC (rev 9052)
@@ -677,8 +677,10 @@
 										return JSON2js(o).docid; // docid
 									}
 								);
+                                var seen = {};
 								for (var i = 0; i < docids.length; i++) {
 									var doc_id = docids[i];
+                                    if (seen[doc_id]) continue; seen[doc_id] = true;
 									var opac_url = xulG.url_prefix( urls.opac_rdetail ) + '?r=' + doc_id;
 									var content_params = { 
 										'session' : ses(),



More information about the open-ils-commits mailing list