Bug 6926 : overdue_notices don't send itemcount to notification
authorPaul Poulain <paul.poulain@biblibre.com>
Tue, 27 Sep 2011 13:13:01 +0000 (15:13 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Sat, 3 Dec 2011 06:49:39 +0000 (07:49 +0100)
In advanced_notices.pl you can return the number of due items using <<count>>
flag.
If you use this flag in overdue_notices, it does not work, no number is
displayed.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
misc/cronjobs/overdue_notices.pl

index 5646efc..5347f69 100755 (executable)
@@ -504,7 +504,8 @@ END_SQL
                         items           => \@items,
                         substitute      => {    # this appears to be a hack to overcome incomplete features in this code.
                                             bib             => $branch_details->{'branchname'}, # maybe 'bib' is a typo for 'lib<rary>'?
-                                            'items.content' => $titles
+                                            'items.content' => $titles,
+                                            'count'         => $itemcount,
                                            }
                     }
                 );