Bug 13032

Summary: Command line switch to add page breaks to overdue_notices.pl sent to the library
Product: Koha Reporter: Barton Chittenden <barton>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: katrin.fischer
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Barton Chittenden 2014-10-06 13:49:48 UTC
When overdue_notices.pl is run using the '-n' option, form feed characters are inserted between notices. This is currently the only way of inserting page breaks between notices.

I've had several partners request that page breaks be added for the email sent to the library containing all notices for patrons who do not have email. This could be added via a command line switch -- perhaps '--page-break'.

The behavior of this switch should be aware of whether the notices are html formatted or not -- if they are, page breaks must be added via CSS/html, if they are not, they should be inserted as form-feeds.
Comment 1 Barton Chittenden 2014-10-06 13:57:51 UTC
HTML page breaks can be added as follows:

CSS:

@media all {
	.page-break	{ display: none; }
}

@media print {
	.page-break	{ display: block; page-break-before: always; }
}

HTML:

<div class="page-break"></div>
Comment 2 Katrin Fischer 2016-08-13 13:38:46 UTC
I think maybe we don't need a switch for that - it sounds interesting in general.