dedup Show All in Catalog
[Evergreen.git] / Open-ILS / xul / staff_client / server / cat / record_buckets.js
index cc8c5bd..a448e3f 100644 (file)
@@ -677,8 +677,10 @@ cat.record_buckets.prototype = {
                                                                                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(),