Bugzilla – Attachment 92019 Details for
Bug 11529
Add subtitle, medium and part fields to biblio table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11529: Prevent too many spaces/break lines in the title tag
Bug-11529-Prevent-too-many-spacesbreak-lines-in-th.patch (text/plain), 2.33 KB, created by
Jonathan Druart
on 2019-08-05 17:14:37 UTC
(
hide
)
Description:
Bug 11529: Prevent too many spaces/break lines in the title tag
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-08-05 17:14:37 UTC
Size:
2.33 KB
patch
obsolete
>From c6fa6db9fee6cbf8a30ffca13b4a3626e4ede748 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 5 Aug 2019 12:12:02 -0500 >Subject: [PATCH] Bug 11529: Prevent too many spaces/break lines in the title > tag > >Caught by t/db_dependent/www/batch.t > >Before this patch: >""" ><title>Koha › Catalog › > > Details for > Bleak House / > ></title> >""" > >After this patch: >""" ><title>Koha › Catalog › > > Details for Bleak House / > ></title> >""" >--- > .../prog/en/includes/biblio-title-head.inc | 40 +++++++++++----------- > 1 file changed, 20 insertions(+), 20 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-title-head.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-title-head.inc >index d7a692aab8..d00be03687 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-title-head.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/biblio-title-head.inc >@@ -1,21 +1,21 @@ >-[% IF ( biblio.title ) %] >- [% biblio.title | html %] >-[% ELSE %] >+[%~ IF ( biblio.title ) ~%] >+ [%~ biblio.title | html ~%] >+[%~ ELSE ~%] > No title >-[% END %] >-[% biblio.medium | html %] >-[% FOREACH subtitle IN biblio.subtitle.split(' \| ') %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] >- [% subtitle | html %] >-[% END %] >-[% part_numbers = biblio.part_number.split(' \\| ') %] >-[% part_names = biblio.part_name.split(' \\| ') %] >-[% i = 0 %] >-[% WHILE ( part_numbers.$i.defined || part_names.$i.defined ) %] >- [% IF ( part_numbers.$i.defined ) %] >- [% part_numbers.$i | html %] >- [% END %] >- [% IF ( part_names.$i.defined ) %] >- [% part_names.$i | html %] >- [% END %] >- [% i = i + 1 %] >-[% END %] >+[%~ END ~%] >+[%~ biblio.medium | html ~%] >+[%~ FOREACH subtitle IN biblio.subtitle.split(' \| ') ~%][%~ IF Koha.Preference('marcflavour')=='UNIMARC' ~%],[%~ END ~%] >+ [%~ subtitle | html ~%] >+[%~ END ~%] >+[%~ part_numbers = biblio.part_number.split(' \\| ') ~%] >+[%~ part_names = biblio.part_name.split(' \\| ') ~%] >+[%~ i = 0 ~%] >+[%~ WHILE ( part_numbers.$i.defined || part_names.$i.defined ) ~%] >+ [%~ IF ( part_numbers.$i.defined ) ~%] >+ [%~ part_numbers.$i | html ~%] >+ [%~ END ~%] >+ [%~ IF ( part_names.$i.defined ) ~%] >+ [%~ part_names.$i | html ~%] >+ [%~ END ~%] >+ [%~ i = i + 1 ~%] >+[%~ END ~%] >-- >2.11.0
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 11529
:
81930
|
81931
|
82024
|
82025
|
82026
|
82027
|
82028
|
82029
|
82088
|
82089
|
82090
|
82428
|
82429
|
82430
|
82431
|
82538
|
82539
|
82540
|
82541
|
82542
|
83103
|
83104
|
83105
|
83106
|
83107
|
83108
|
83961
|
83962
|
83963
|
83964
|
83965
|
83966
|
85587
|
85588
|
85589
|
85590
|
85591
|
85592
|
86677
|
86678
|
86679
|
86680
|
86681
|
86682
|
87248
|
87249
|
87250
|
87251
|
87252
|
87253
|
87256
|
87257
|
87258
|
87259
|
87260
|
87261
|
87911
|
87912
|
87913
|
87914
|
87915
|
87916
|
87917
|
87918
|
87919
|
88247
|
88248
|
88249
|
88250
|
88251
|
88252
|
88253
|
88254
|
88255
|
88256
|
88406
|
88407
|
88408
|
88409
|
88410
|
88411
|
88412
|
88413
|
88414
|
88415
|
88416
|
88433
|
88434
|
88435
|
88436
|
88437
|
88438
|
88439
|
88440
|
88441
|
88442
|
88443
|
88762
|
88763
|
88764
|
88765
|
88766
|
88767
|
88768
|
88769
|
88770
|
88771
|
88772
|
88851
|
88852
|
88853
|
88854
|
88855
|
88856
|
88857
|
88858
|
88859
|
88860
|
88861
|
88862
|
89096
|
89097
|
89098
|
89099
|
89100
|
89101
|
89102
|
89103
|
89104
|
89105
|
89106
|
89107
|
89234
|
89235
|
89236
|
89237
|
89238
|
89239
|
89240
|
89241
|
89242
|
89243
|
89244
|
89245
|
89246
|
91680
|
91681
|
91682
|
91683
|
91684
|
91685
|
91686
|
91687
|
91688
|
91689
|
91690
|
91691
|
91692
|
91824
|
91825
|
91826
|
91827
|
91828
|
91829
|
91830
|
91831
|
91832
|
91833
|
91834
|
91835
|
91836
|
91837
|
92016
| 92019 |
92020
|
105667
|
105672