[Koha-patches] [PATCH] Bug 4951 - Print page doesn't close after print

Liz Rea lrea at nekls.org
Wed Apr 27 20:23:27 CEST 2011


I just noted my mistake on this, i'll send a proper replacement. 

LR
On Apr 27, 2011, at 11:38 AM, Liz Rea wrote:

> ---
> .../prog/en/modules/members/moremember-print.tt    |   14 ++++++++++++++
> 1 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt
> index 0452614..4a41e41 100644
> --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt
> +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt
> @@ -1,4 +1,18 @@
> [% INCLUDE 'doc-head-open.inc' %]
> +<title>Print Full Page Receipt for [% cardnumber %]</title>
> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> +<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% themelang %]/includes/favicon.ico[% END %]" type="image/x-icon" />
> + <link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />
> +
> +<script language="javascript">
> +    function printThenClose() {
> +        window.print();
> +        window.close();
> +    }
> +</script>
> +</head>
> +<body onload="printThenClose();">
> +
> <title>Summary for [% firstname %] [% surname %] ([% cardnumber %])</title>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% themelang %]/includes/favicon.ico[% END %]" type="image/x-icon" />
> -- 
> 1.5.6.5
> 



More information about the Koha-patches mailing list