Bug 13032 - Command line switch to add page breaks to overdue_notices.pl sent to the library
Summary: Command line switch to add page breaks to overdue_notices.pl sent to the library
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-06 13:49 UTC by Barton Chittenden
Modified: 2020-01-06 11:40 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.