Don't miss the authoritative call on barcodes for spine_labels.js
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 28 Jul 2009 07:43:38 +0000 (07:43 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 28 Jul 2009 07:43:38 +0000 (07:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/trunk@598 6d9bc8c9-1ec2-4278-b937-99fde70a366f

xul/server/cat/spine_labels.js

index df9a333..7cca1e8 100644 (file)
@@ -3,7 +3,7 @@
                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                                if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
                                JSAN.errorLevel = "die"; // none, warn, or die
-                               JSAN.addRepository('/xul/rel_trunk/server/');
+                               JSAN.addRepository('/xul/server/');
                                JSAN.use('util.error'); g.error = new util.error();
                                g.error.sdump('D_TRACE','my_init() for spine_labels.xul');
 
@@ -31,7 +31,7 @@
                                g.volumes = {};
 
                                for (var i = 0; i < g.barcodes.length; i++) {
-                                       var copy = g.network.simple_request( 'FM_ACP_RETRIEVE_VIA_BARCODE', [ g.barcodes[i] ] );
+                                       var copy = g.network.simple_request( 'FM_ACP_RETRIEVE_VIA_BARCODE.authoritative', [ g.barcodes[i] ] );
                                        if (typeof copy.ilsevent != 'undefined') throw(copy);
                                        if (!g.volumes[ copy.call_number() ]) {
                                                var volume = g.network.simple_request( 'FM_ACN_RETRIEVE.authoritative', [ copy.call_number() ] );
@@ -55,7 +55,7 @@
 
                        } catch(E) {
                                try {
-                                       g.error.standard_unexpected_error_alert('/xul/rel_trunk/server/cat/spine_labels.xul',E);
+                                       g.error.standard_unexpected_error_alert('/xul/server/cat/spine_labels.xul',E);
                                } catch(F) {
                                        alert('FIXME: ' + js2JSON(E));
                                }
                                        var lw = Number($('lw').value) || 8; var ll = Number($('ll').value) || 9; /* spine label width and length */
                                        var plw = Number($('plw').value) || 28; var pll = Number($('pll').value) || 9; /* pocket label width and length */
                                        var html = "<html><head>";
-                    html += "<link type='text/css' rel='stylesheet' href='/xul/rel_trunk/server/skin/print.css'></link>"
+                    html += "<link type='text/css' rel='stylesheet' href='/xul/server/skin/print.css'></link>"
                     html += "<link type='text/css' rel='stylesheet' href='data:text/css,pre{font-size:" + pt + "pt;}'></link>";
                     html += "<title>Spine Labels</title></head><body>\n";
                                        var nl = document.getElementsByAttribute('name','template');