[open-ils-commits] r17208 - trunk/Open-ILS/xul/staff_client/server/cat (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Aug 13 04:17:50 EDT 2010


Author: phasefx
Date: 2010-08-13 04:17:45 -0400 (Fri, 13 Aug 2010)
New Revision: 17208

Modified:
   trunk/Open-ILS/xul/staff_client/server/cat/util.js
Log:
add standing penalty prompt to Mark Item Missing Pieces workflow


Modified: trunk/Open-ILS/xul/staff_client/server/cat/util.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/util.js	2010-08-13 08:17:36 UTC (rev 17207)
+++ trunk/Open-ILS/xul/staff_client/server/cat/util.js	2010-08-13 08:17:45 UTC (rev 17208)
@@ -776,6 +776,24 @@
                                 { 'copy_id' : copies[i].id() }
                             );
                             // TODO: patron notes/messages
+                            var my_xulG = win.open(
+                                urls.XUL_NEW_STANDING_PENALTY,
+                                'new_standing_penalty',
+                                'chrome,resizable,modal',
+                                {}
+                            );
+                            if (my_xulG.id) {
+                                var penalty = new ausp();
+                                penalty.usr( robj.payload.circ.usr() );
+                                penalty.isnew( 1 );
+                                penalty.standing_penalty( my_xulG.id );
+                                penalty.org_unit( ses('ws_ou') );
+                                penalty.note( my_xulG.note );
+                                network.simple_request(
+                                    'FM_AUSP_APPLY',
+                                    [ ses(), penalty ]
+                                );
+                            }
                             // TODO: Invoke 3rd party app with letter to patron
                         } else if (robj.ilsevent == 1500 /* ACTION_CIRCULATION_NOT_FOUND */) {
                             alert( $("catStrings").getFormattedString('staff.cat.util.mark_item_missing_pieces.circ_not_found',[ copies[i].barcode() ]) );



More information about the open-ils-commits mailing list