fix the fix for Dan's Record 0 of 1 pet peeve :) server/cat/opac.js is actually...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 5 Mar 2009 07:25:34 +0000 (07:25 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 5 Mar 2009 07:25:34 +0000 (07:25 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12416 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/cat/opac.js
Open-ILS/xul/staff_client/server/cat/opac.js

index af48c41..0ccf048 100644 (file)
@@ -169,7 +169,7 @@ function set_opac() {
 
                                win.attachEvt("rdetail", "nextPrevDrawn",
                                        function(rIndex,rCount){
-                                               $('record_pos').setAttribute('value', document.getElementById('offlineStrings').getFormattedString('cat.record.counter', [(1+rIndex), rCount]));
+                                               $('record_pos').setAttribute('value', document.getElementById('offlineStrings').getFormattedString('cat.record.counter', [(1+rIndex), rCount ? rCount : 1]));
                                                if (win.rdetailNext) {
                                                        g.f_record_next = function() { 
                                                                g.view_override = g.view; 
index 088e0bc..4ca79f3 100644 (file)
@@ -169,7 +169,7 @@ function set_opac() {
 
                                win.attachEvt("rdetail", "nextPrevDrawn",
                                        function(rIndex,rCount){
-                                               $('record_pos').setAttribute('value', document.getElementById('offlineStrings').getFormattedString('cat.record.counter', [(1+rIndex), rCount : rCount : 1]));
+                                               $('record_pos').setAttribute('value', document.getElementById('offlineStrings').getFormattedString('cat.record.counter', [(1+rIndex), rCount ? rCount : 1]));
                                                if (win.rdetailNext) {
                                                        g.f_record_next = function() { 
                                                                g.view_override = g.view;