partial details apge
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 25 Aug 2005 18:50:08 +0000 (18:50 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 25 Aug 2005 18:50:08 +0000 (18:50 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1738 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/opac/opac.js
Evergreen/staff_client/chrome/content/evergreen/util/error.js
Evergreen/staff_client/chrome/content/evergreen/util/spawn_win.js

index 193d3d8..bc09f28 100644 (file)
@@ -86,7 +86,7 @@ function opac_make_details_page(p, id, node) {
        sdump('D_OPAC',arg_dump(arguments));
        dump("Node HREF attribute is: " + node.getAttribute("href") + "\n and doc id is " + id +'\n');
        var f = function(ev) {
-               spawn_copy_browser(
+               spawn_record_details(
                        p.w.app_shell, 'new_tab', 'main_tabbox', {
                                'find_this_id' : id
                        }
index 47c473a..d7377da 100644 (file)
@@ -184,7 +184,15 @@ function handle_error(E,annoy) {
        } else {
                s += '\n\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n';
                s += 'This is a bug that we will fix later.\n\n';
-               s += mw.js2JSON(E).substr(0,1024) + '\n\n';
+               try {
+                       s += mw.js2JSON(E).substr(0,1024) + '\n\n';
+               } catch(E2) {
+                       try {
+                               s += E.substr(0,1024) + '\n\n';
+                       } catch(E3) {
+                               s += E + '\n\n';
+                       }
+               }
                if (snd_really_bad) snd_really_bad();
        }
        sdump('D_ERROR',s);
index a98cf7b..ebdd1c3 100644 (file)
@@ -98,6 +98,11 @@ function spawn_checkin(d,placement,place,passthru_params,clone) {
        return spawn_interface(d,placement,place,chrome,getString('checkin_interface_label'),passthru_params,clone);
 }
 
+function spawn_record_details(d,placement,place,passthru_params,clone) {
+       var chrome = 'chrome://evergreen/content/cat/details.xul';
+       return spawn_interface(d,placement,place,chrome,'DETAILS',passthru_params,clone);
+}
+
 function spawn_hold_capture(d,placement,place,passthru_params,clone) {
        var chrome = 'chrome://evergreen/content/circ/hold_capture.xul';
        return spawn_interface(d,placement,place,chrome,getString('hold_capture_interface_label'),passthru_params,clone);