dedup Show All in Catalog
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 16 Mar 2008 08:55:04 +0000 (08:55 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 16 Mar 2008 08:55:04 +0000 (08:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@9052 dcc99617-32d9-48b4-a31d-7c20da2025e4

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
                                                                        }
                                                                );
                                                                                return JSON2js(o).docid; // docid
                                                                        }
                                                                );
+                                var seen = {};
                                                                for (var i = 0; i < docids.length; i++) {
                                                                        var doc_id = docids[i];
                                                                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(),
                                                                        var opac_url = xulG.url_prefix( urls.opac_rdetail ) + '?r=' + doc_id;
                                                                        var content_params = { 
                                                                                'session' : ses(),