allow bookbag (rlist) display to work with just one record id
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 5 Jun 2009 18:31:33 +0000 (18:31 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 5 Jun 2009 18:31:33 +0000 (18:31 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13333 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/rresult.js

index 8bc5609..6252e54 100644 (file)
@@ -200,7 +200,14 @@ function rresultCollectISSNIds() {
 
 function rresultHandleList() {
        var ids = new CGI().param(PARAM_RLIST);
-       if(ids) _rresultHandleIds(ids, ids.length);
+    var count;
+    if(!dojo.isArray(ids)) {
+        count = 1;
+        ids = [ids];
+    } else {
+        count = ids.length;
+    }
+       if(ids) _rresultHandleIds(ids, count);
 }
 
 var rresultTries = 0;