From: Cesar Velez Date: Tue, 3 Oct 2017 20:42:43 +0000 (-0400) Subject: LP#1714566 - enable hold notes to display on dialogs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fcesardv%2Flp1714566_make_hold_request_notes_visible;p=working%2FEvergreen.git 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 --- 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);