'data' : print_data,
'context' : data.print_list_templates[ template ].context,
};
+
+ /* PINES-specific long-overdue transit_slip handling.
+ * This forces the long-overdue message into all
+ * transit slips for long-overdue items, regardless
+ * of any local modifications.
+ * ------------------------------------------------*/
+ if (template == 'transit_slip' &&
+ check.payload.transit &&
+ check.payload.transit.copy_status() == 16) {
+ // 16 == long-overdue
+
+ // remove the trailing <br/>\r\n
+ parms.header = parms.header.substring(
+ 0, parms.header.length - 7);
+
+ // add the LO language and recover <br>, etc.
+ parms.header +=
+ 'This item is in status Longoverdue, ' +
+ 'additional staff action may be required.' +
+ '<br/>\r\n<br/>\r\n';
+ }
+ /* ------------------------------------------------*/
+
if ($('printer_prompt')) {
if (! $('printer_prompt').checked) { parms.no_prompt = true; }
}