Bugzilla – Attachment 178748 Details for
Bug 33260
Show message queue on staff interface and make notices printable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33260: (follow-up) Add correct page title to print
Bug-33260-follow-up-Add-correct-page-title-to-prin.patch (text/plain), 4.99 KB, created by
Martin Renvoize (ashimema)
on 2025-02-26 16:41:26 UTC
(
hide
)
Description:
Bug 33260: (follow-up) Add correct page title to print
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-02-26 16:41:26 UTC
Size:
4.99 KB
patch
obsolete
>From a91523d5cc9ec1b015bae4048053d14280afa359 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 3 Oct 2024 13:13:35 +0100 >Subject: [PATCH] Bug 33260: (follow-up) Add correct page title to print > >--- > .../prog/en/modules/circ/printslip.tt | 82 ++++++++++--------- > 1 file changed, 42 insertions(+), 40 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >index ed19ae61825..347a77ec5f0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/printslip.tt >@@ -7,39 +7,43 @@ > [% UNLESS slips && slips.size %] > [% SET slips = [{content => slip, is_html => !plain, style => style, id => id }] %] > [% END %] >-<title >- >[% FILTER collapse %] >- [% IF ( caller == 'hold-transfer' ) %] >- [% t("Hold transfer print receipt") | html %] >- › [% t("Circulation") | html %] › >- [% ELSIF ( caller == 'transfer' ) %] >- [% t("Transfers print receipt") | html %] >- › [% t("Circulation") | html %] › >- [% ELSIF ( caller == 'members' ) %] >- [% tx("Print receipt for {borrowernumber}", { borrowernumber = borrowernumber }) | html %] >- › [% t("Patrons") | html %] › >- [% ELSIF ( caller == 'recall' ) %] >- [% t("Recall print receipt") | html %] >- › [% t("Circulation") | html %] › >- [% ELSIF ( title ) %] >- [%# FIXME title is never defined %] >- [% title | html %] >- › [% t("Patrons") | html %] › >- [% END %] >- [% t("Koha") | html %] >- [% END %]</title >-> >+<title>[% FILTER collapse %] >+[% IF ( caller == 'hold-transfer' ) %] >+ [% t("Hold transfer print receipt") | html %] › >+ [% t("Circulation") | html %] › >+[% ELSIF ( caller == 'transfer' ) %] >+ [% t("Transfers print receipt") | html %] › >+ [% t("Circulation") | html %] › >+[% ELSIF ( caller == 'members' ) %] >+ [% tx("Print receipt for {borrowernumber}", { borrowernumber = borrowernumber }) | html %] › >+ [% t("Patrons") | html %] › >+[% ELSIF ( caller == 'recall' ) %] >+ [% t("Recall print receipt") | html %] › >+ [% t("Circulation") | html %] › >+[% ELSIF ( caller == 'notice_mgmt' ) %] >+ [% UNLESS slips && slips.size > 1 %] >+ [% t("Print notice") | html %] › >+ [% ELSE %] >+ [% t("Print notices") | html %] › >+ [% END %] >+ [% t("Tools") | html %] &rsqaquo; >+[% ELSIF ( title ) %][%# FIXME title is never defined %] >+ [% title | html %] › >+ [% t("Patrons") | html %] › >+[% END %] >+ [% t("Koha") | html %] >+[% END %]</title> > [% INCLUDE 'doc-head-close.inc' %] > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon | url %][% ELSE %][% interface | html %]/[% theme | html %]/img/favicon.ico[% END %]" type="image/x-icon" /> > > [% Asset.css("css/print.css") | $raw %] > [% IF ( Koha.Preference('PrintSlipStylesheet') ) %] >- <link rel="stylesheet" type="text/css" href="[% Koha.Preference('PrintSlipStylesheet') | $raw %]" /> >+<link rel="stylesheet" type="text/css" href="[% Koha.Preference('PrintSlipStylesheet') | $raw %]" /> > [% END %] > [% FOR slip IN slips %] > [% IF slip.style %] >- <!-- prettier-ignore-start --> >+ <!-- prettier-ignore-start --> > <style>[% slip.style.replace('([^\{\}]+?)\s*\{', '#slip_' _ slip.id _ ' $1 {') | $raw %]</style> > <!-- prettier-ignore-end --> > [% END %] >@@ -47,27 +51,25 @@ > > </head> > <body id="circ_printslip" class="circ"> >-<div id="receipt"> >+ <div id="receipt"> > [% FOR slip IN slips %] > <div id="slip_[% slip.id | html %]"> >- [% UNLESS slip.is_html %] >- <pre> >+ [% UNLESS slip.is_html %] >+ <pre> > [% IF ( slip.content ) %][% slip.content | html %][% ELSE %]No slip template found[% END %] >- </pre >- > >- [% ELSE %] >- [% IF ( slip.content ) %][% slip.content | $raw %][% ELSE %]No slip template found[% END %] >- [% END %] >+ </pre> >+ [% ELSE %] >+ [% IF ( slip.content ) %][% slip.content | $raw %][% ELSE %]No slip template found[% END %] >+ [% END %] > </div> >- [% IF slips.size > 1 && !loop.last %] >- <div class="pagebreak"></div> >+ [% IF slips.size > 1 && !loop.last%] >+ <div class="pagebreak"></div> > [% END %] > [% END %] >-</div> >-<!-- /#receipt --> >+ </div> <!-- /#receipt --> > >-[% MACRO jsinclude BLOCK %] >- [% INCLUDE 'slip-print.inc' #printThenClose %] >-[% END %] >+ [% MACRO jsinclude BLOCK %] >+ [% INCLUDE 'slip-print.inc' #printThenClose %] >+ [% END %] > >-[% INCLUDE 'intranet-bottom.inc' %] >+[% INCLUDE 'intranet-bottom.inc' %] >\ No newline at end of file >-- >2.48.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33260
:
148437
|
148438
|
148439
|
148440
|
148943
|
149009
|
149413
|
149581
|
149593
|
149594
|
149595
|
149596
|
149597
|
149598
|
150346
|
150347
|
154927
|
154928
|
157383
|
157384
|
157385
|
157386
|
158852
|
158853
|
158854
|
158855
|
162570
|
162571
|
162572
|
162573
|
162574
|
162624
|
162625
|
162677
|
162678
|
162679
|
162680
|
162681
|
164783
|
164784
|
164785
|
164786
|
164787
|
165238
|
165239
|
165717
|
165939
|
165946
|
165947
|
165948
|
165949
|
165950
|
165951
|
166020
|
166178
|
166335
|
166336
|
166337
|
166338
|
166339
|
166340
|
166341
|
166342
|
166343
|
166344
|
166345
|
166362
|
166363
|
166364
|
166365
|
166366
|
166367
|
166368
|
166369
|
166370
|
166371
|
166372
|
166373
|
167909
|
167910
|
167911
|
167912
|
167913
|
167914
|
167915
|
167916
|
167917
|
167918
|
167919
|
167920
|
172247
|
172248
|
172303
|
172307
|
172308
|
172309
|
172310
|
172311
|
172312
|
172313
|
172314
|
172315
|
172316
|
172317
|
172318
|
172319
|
172320
|
172321
|
172322
|
172342
|
172343
|
172344
|
172345
|
172346
|
172347
|
172348
|
172349
|
172350
|
172351
|
172352
|
172353
|
172354
|
172355
|
172356
|
172357
|
172358
|
172359
|
172379
|
175501
|
175502
|
175503
|
175504
|
175505
|
175506
|
175507
|
175508
|
175509
|
175510
|
175511
|
175512
|
175513
|
175514
|
175515
|
175516
|
175517
|
175518
|
175519
|
175520
|
175521
|
175522
|
175523
|
175524
|
175525
|
175530
|
175537
|
175538
|
175539
|
175540
|
175541
|
175542
|
175543
|
175544
|
175545
|
175546
|
175547
|
175548
|
175549
|
175550
|
175551
|
175552
|
175553
|
175554
|
175555
|
175556
|
175557
|
175558
|
175559
|
175560
|
175561
|
175562
|
175563
|
175730
|
175731
|
175732
|
175733
|
175734
|
175735
|
175736
|
175737
|
175738
|
175739
|
175740
|
175741
|
175742
|
175743
|
175744
|
175745
|
175746
|
175747
|
175748
|
175749
|
175750
|
175751
|
175752
|
175753
|
175754
|
175755
|
175756
|
178733
|
178734
|
178735
|
178736
|
178737
|
178738
|
178739
|
178740
|
178741
|
178742
|
178743
|
178744
|
178745
|
178746
|
178747
| 178748 |
178749
|
178750
|
178751
|
178752
|
178753
|
178754
|
178755
|
178756
|
178757
|
178758
|
178759