gather_print_notices.pl and page breaks
Dear Community, I have a couple customers who use gather_print_notices.pl to - gather up messages for patrons without email - format the messages as HTML - send them to the library email to be printed and snail-mailed This works OK, except the messages are printed as running text, without a page break between them. Has anyone figured out a solution to this? I have tried to start the contents of the messages with something like this: <p style="display: block; page-break-before: always;">...</p> but that does not seem to work. Anyone got a working solution? Best regards, Magnus Enger Libriotech
We got a running patch (moved from version to version) about exactly that. Not sure I can attach it here (does this list filters attachments?) but I can put it in a bugzilla if you want. Unless it's a bad usage of bugzilla? I certainly do not entertain the idea of rebasing it 10 times to get it through... Philippe Blouin, Responsable du développement informatique Tél. : (888) 604-2627 philippe.blouin@inLibro.com <mailto:philippe.blouin@inLibro.com> inLibro | pour esprit libre | www.inLibro.com <http://www.inLibro.com> On 09/14/2016 08:08 AM, Magnus Enger wrote:
Dear Community,
I have a couple customers who use gather_print_notices.pl to - gather up messages for patrons without email - format the messages as HTML - send them to the library email to be printed and snail-mailed
This works OK, except the messages are printed as running text, without a page break between them. Has anyone figured out a solution to this?
I have tried to start the contents of the messages with something like this:
<p style="display: block; page-break-before: always;">...</p>
but that does not seem to work. Anyone got a working solution?
Best regards, Magnus Enger Libriotech _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
On 14 September 2016 at 14:22, Philippe Blouin <philippe.blouin@inlibro.com> wrote:
We got a running patch (moved from version to version) about exactly that. Not sure I can attach it here (does this list filters attachments?) but I can put it in a bugzilla if you want. Unless it's a bad usage of bugzilla? I certainly do not entertain the idea of rebasing it 10 times to get it through...
Sounds interesting! I think attachments will be removed by the list software, so Bugzilla sounds like a good option. I'll try and sign off if you do attach a patch. Best regards, Maguns
Ok. I'll find the time today. Philippe Blouin, Responsable du développement informatique Tél. : (888) 604-2627 philippe.blouin@inLibro.com <mailto:philippe.blouin@inLibro.com> inLibro | pour esprit libre | www.inLibro.com <http://www.inLibro.com> On 09/14/2016 08:24 AM, Magnus Enger wrote:
On 14 September 2016 at 14:22, Philippe Blouin <philippe.blouin@inlibro.com> wrote:
We got a running patch (moved from version to version) about exactly that. Not sure I can attach it here (does this list filters attachments?) but I can put it in a bugzilla if you want. Unless it's a bad usage of bugzilla? I certainly do not entertain the idea of rebasing it 10 times to get it through... Sounds interesting! I think attachments will be removed by the list software, so Bugzilla sounds like a good option. I'll try and sign off if you do attach a patch.
Best regards, Maguns _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
I've fixed it using NoticeCSS. I used this to format notices to print on individual pages with an address block that would show through the window of a #9 envelope... I'm going to do a full write-up on how to configure setting up NoticeCSS, what divs to add to the notices, etc. Watch the blog post at Bywatersolutions.com :-) Here's the CSS: pre { font-family: "Arial Black", Gadget, sans-serif; } pre { font-size: 10pt; } .message { top::0px; left: 0px; border: 0px; padding: 0px; margin: 0px; } div.address { position: relative; border 0px; padding 0px; margin 0px; top: 1.25in; left: 0.5in; width: 4.5in; height: 1.125in; } div.content { position: relative; top: 1.375in; left: 0.0in; } @media screen { .page-break { display: block; page-break-before: always; } } @media print { .page-break { display: block; page-break-before: always; } } On Wed, Sep 14, 2016 at 8:32 AM, Philippe Blouin < philippe.blouin@inlibro.com> wrote:
Ok. I'll find the time today.
Philippe Blouin, Responsable du développement informatique
Tél. : (888) 604-2627 philippe.blouin@inLibro.com <mailto:philippe.blouin@inLibro.com>
inLibro | pour esprit libre | www.inLibro.com <http://www.inLibro.com> On 09/14/2016 08:24 AM, Magnus Enger wrote:
On 14 September 2016 at 14:22, Philippe Blouin <philippe.blouin@inlibro.com> wrote:
We got a running patch (moved from version to version) about exactly that. Not sure I can attach it here (does this list filters attachments?) but I can put it in a bugzilla if you want. Unless it's a bad usage of bugzilla? I certainly do not entertain the idea of rebasing it 10 times to get it through...
Sounds interesting! I think attachments will be removed by the list software, so Bugzilla sounds like a good option. I'll try and sign off if you do attach a patch.
Best regards, Maguns _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
YAY! El mié., 14 sept. 2016 a las 10:15, Barton Chittenden (< barton@bywatersolutions.com>) escribió:
I've fixed it using NoticeCSS.
I used this to format notices to print on individual pages with an address block that would show through the window of a #9 envelope... I'm going to do a full write-up on how to configure setting up NoticeCSS, what divs to add to the notices, etc. Watch the blog post at Bywatersolutions.com :-)
Here's the CSS:
pre { font-family: "Arial Black", Gadget, sans-serif; } pre { font-size: 10pt; }
.message { top::0px; left: 0px; border: 0px; padding: 0px; margin: 0px; }
div.address { position: relative; border 0px; padding 0px; margin 0px; top: 1.25in; left: 0.5in; width: 4.5in; height: 1.125in; }
div.content { position: relative; top: 1.375in; left: 0.0in; }
@media screen { .page-break { display: block; page-break-before: always; } } @media print { .page-break { display: block; page-break-before: always; } }
On Wed, Sep 14, 2016 at 8:32 AM, Philippe Blouin < philippe.blouin@inlibro.com> wrote:
Ok. I'll find the time today.
Philippe Blouin, Responsable du développement informatique
Tél. : (888) 604-2627 philippe.blouin@inLibro.com <mailto:philippe.blouin@inLibro.com>
inLibro | pour esprit libre | www.inLibro.com <http://www.inLibro.com> On 09/14/2016 08:24 AM, Magnus Enger wrote:
On 14 September 2016 at 14:22, Philippe Blouin <philippe.blouin@inlibro.com> wrote:
We got a running patch (moved from version to version) about exactly that. Not sure I can attach it here (does this list filters attachments?) but I can put it in a bugzilla if you want. Unless it's a bad usage of bugzilla? I certainly do not entertain the idea of rebasing it 10 times to get it through...
Sounds interesting! I think attachments will be removed by the list software, so Bugzilla sounds like a good option. I'll try and sign off if you do attach a patch.
Best regards, Maguns _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
_______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
participants (4)
-
Barton Chittenden -
Magnus Enger -
Philippe Blouin -
Tomas Cohen Arazi