From 035bab04c39fc676c1c30bd16bfa4622fecfb3c6 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 --- 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 90ae8250bb..4e98cd2a49 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 @@ -51,7 +51,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 c04a6064ff..87f251e779 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 @@ -56,6 +56,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 50aa191aa1..6609224dbd 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 @@ -12,7 +12,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) -->
@@ -42,9 +42,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 6d0383df86..12be8d5d97 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 @@ -1493,11 +1493,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