From 8c594593d39b9671cd9ab15f3a05e65314672c74 Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Tue, 3 Oct 2017 16:42:43 -0400 Subject: [PATCH] LP#1714566 - enable hold notes to display on dialogs Also display all notes in the hold shelf dialog and other dialogs so that staff is aware of any public notes that will print. Signed-off by: Cesar Velez Signed-off-by: Mike Rylander --- Open-ILS/src/templates/staff/circ/share/t_hold_shelf_dialog.tt2 | 2 +- Open-ILS/src/templates/staff/circ/share/t_transit_dialog.tt2 | 6 ++++++ .../src/templates/staff/share/print_templates/t_hold_shelf_slip.tt2 | 6 +++--- Open-ILS/web/js/ui/default/staff/circ/services/circ.js | 6 ++---- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/share/t_hold_shelf_dialog.tt2 b/Open-ILS/src/templates/staff/circ/share/t_hold_shelf_dialog.tt2 index c7b3d4a5c9..aa112ed11f 100644 --- a/Open-ILS/src/templates/staff/circ/share/t_hold_shelf_dialog.tt2 +++ b/Open-ILS/src/templates/staff/circ/share/t_hold_shelf_dialog.tt2 @@ -55,7 +55,7 @@
[% l('Request Notes:') %] -
  • {{n.title}}: {{n.body}}
+
  • {{n.title}}: {{n.body}}  [Patron-visible]
[% l('Slip Date:') %] diff --git a/Open-ILS/src/templates/staff/circ/share/t_transit_dialog.tt2 b/Open-ILS/src/templates/staff/circ/share/t_transit_dialog.tt2 index 771bb179cd..3d920c95e5 100644 --- a/Open-ILS/src/templates/staff/circ/share/t_transit_dialog.tt2 +++ b/Open-ILS/src/templates/staff/circ/share/t_transit_dialog.tt2 @@ -60,6 +60,12 @@ [% l('Request Date:') %] {{hold.request_time | date:$root.egDateFormat}}
+
+ [% l('Request Notes:') %] +
    +
  • {{n.title}} - {{n.body}} [Patron-visible]
  • +
+
diff --git a/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_slip.tt2 b/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_slip.tt2 index 315c155ac4..ea9503d5a4 100644 --- a/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_slip.tt2 +++ b/Open-ILS/src/templates/staff/share/print_templates/t_hold_shelf_slip.tt2 @@ -13,7 +13,7 @@ Template for printing hold request slips. Fields include: * hold.phone_notify * hold.sms_notify * hold.email_notify -* holdslip_notes (array of slip-printable notes) +* hold_notes (array of slip-printable notes) -->
@@ -45,9 +45,9 @@ Template for printing hold request slips. Fields include:
[% l('Notify by phone: [_1]', '{{hold.phone_notify}}') %]
[% l('Notify by text: [_1]', '{{hold.sms_notify}}') %]
[% l('Notify by email: [_1]', '{{patron.email}}') %]
-
+
    Notes: -
  • {{note}}
  • +
  • {{note.title}} - {{note.body}}

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 06166dfb76..bb544d0459 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 @@ -1506,11 +1506,9 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, print_context.hold = egCore.idl.toHash(evt.payload.hold); var notes = print_context.hold.notes; if(notes.length > 0){ - print_context.holdslip_notes = []; + print_context.hold_notes = []; angular.forEach(notes, function(n){ - if (n.slip){ - print_context.holdslip_notes.push(n); - } + print_context.hold_notes.push(n); }); } print_context.patron = egCore.idl.toHash(data.patron); -- 2.11.0