1 function OpenILS_init(params) {
2 sdump( 'D_TRACE', arg_dump( arguments, { '0':'js2JSON( map_object( arg, function (i,o) { if (i=="d"||i=="w") return [i,o.toString()]; else return [i,o]; }))' }));
7 case 'Auth' : auth_init(params); break;
8 case 'AppShell' : app_shell_init(params); break;
9 case 'ClamShell' : clam_shell_init(params); break;
10 case 'Opac' : opac_init(params); break;
13 register_document(params.d);
14 register_window(params.w);
16 } catch(E) { dump(js2JSON(E)+'\n'); }
20 function OpenILS_exit(params) {
21 sdump( 'D_TRACE', arg_dump( arguments, { '0':'js2JSON( map_object( arg, function (i,o) { if (i=="d"||i=="w") return [i,o.toString()]; else return [i,o]; }))' }));
26 case 'Auth' : auth_exit(params); break;
27 case 'AppShell' : app_shell_exit(params); break;
28 case 'ClamShell' : clam_shell_exit(params); break;
29 case 'Opac' : opac_exit(params); break;
32 unregister_document(params.d);
33 unregister_window(params.w);
35 } catch(E) { dump(js2JSON(E)+'\n'); }
37 sdump('D_TRACE','Exiting OpenILS_exit\n');