From: Bill Erickson Date: Mon, 23 Jun 2014 17:23:19 +0000 (-0400) Subject: hold / translit dialogs / printing repairs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6ab21ceae310ac0194df22ab2c9b90a4b00f844a;p=working%2FEvergreen.git hold / translit dialogs / printing repairs Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/staff/admin/workstation/t_print_templates.tt2 b/Open-ILS/src/templates/staff/admin/workstation/t_print_templates.tt2 index 88ee0188ce..b0856db6d6 100644 --- a/Open-ILS/src/templates/staff/admin/workstation/t_print_templates.tt2 +++ b/Open-ILS/src/templates/staff/admin/workstation/t_print_templates.tt2 @@ -16,6 +16,8 @@ + + diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js index 1dcc683688..3306f35362 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js @@ -303,7 +303,8 @@ function($scope , $q , egCore) { // print preview scope data // TODO: consider moving the template-specific bits directly // into the templates or storing template- specific script files - // alongside the templates + // alongside the templates. + // NOTE: A lot of this data can be shared across templates. var seed_user = { first_given_name : 'Slow', second_given_name : 'Joe', @@ -376,7 +377,7 @@ function($scope , $q , egCore) { payment_type : 'cash_payment', payment_note : 'Here is a payment note', note : { - create_date : '2024-12-25T12:01:03', + create_date : new Date().toISOString(), title : 'Test Note Title', usr : seed_user, value : 'This patron is super nice!' @@ -393,7 +394,14 @@ function($scope , $q , egCore) { title : seed_record.title, author : seed_record.author, patron : egCore.idl.toHash(egCore.auth.user()), - address : seed_addr + address : seed_addr, + hold : { + behind_desk : 'f', + phone_notify : '111-222-3333', + sms_notify : '111-222-3333', + email_notify : 'user@example.org', + request_time : new Date().toISOString() + } } $scope.preview_scope.payments = [ @@ -406,7 +414,7 @@ function($scope , $q , egCore) { $scope.preview_scope.payments[1].xact.copy_barcode = seed_copy.barcode; // today, staff, current_location, etc. - egCore.print.fleshPrintScope($scope); + egCore.print.fleshPrintScope($scope.preview_scope); $scope.template_changed = function() { $scope.print.load_failed = false; diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js index 1c88249b6c..5c8ea16a21 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js @@ -598,6 +598,7 @@ function($modal , $q , egCore , egAlertDialog , egConfirmDialog) { }], resolve : { + // transit destination org unit address destAddr : function() { if (!evt.org || tmpl.match(/hold_shelf/)) return $q.when(); diff --git a/Open-ILS/web/js/ui/default/staff/services/print.js b/Open-ILS/web/js/ui/default/staff/services/print.js index 6fd313d64e..7c0ef05406 100644 --- a/Open-ILS/web/js/ui/default/staff/services/print.js +++ b/Open-ILS/web/js/ui/default/staff/services/print.js @@ -45,7 +45,7 @@ function($q , $window , $timeout , $http , egHatch , egAuth , egIDL , egOrg) { // add commonly used attributes to the print scope service.fleshPrintScope = function(scope) { if (!scope) scope = {}; - scope.today = new Date(); + scope.today = new Date().toISOString(); scope.staff = egIDL.toHash(egAuth.user()); scope.current_location = egIDL.toHash(egOrg.get(egAuth.user().ws_ou()));