Bugzilla – Attachment 96051 Details for
Bug 24172
Locale is ignored when saving season name in the database
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24172: Allow translation of seasons in details.tt and opac-details.tt
Bug-24172-Allow-translation-of-seasons-in-detailst.patch (text/plain), 5.93 KB, created by
Blou
on 2019-12-05 19:44:03 UTC
(
hide
)
Description:
Bug 24172: Allow translation of seasons in details.tt and opac-details.tt
Filename:
MIME Type:
Creator:
Blou
Created:
2019-12-05 19:44:03 UTC
Size:
5.93 KB
patch
obsolete
>From ad66f22f3379e3f7600b8d4f789bd3d4585688f5 Mon Sep 17 00:00:00 2001 >From: Blou <blou@inlibro.com> >Date: Thu, 5 Dec 2019 14:43:49 -0500 >Subject: [PATCH] Bug 24172: Allow translation of seasons in details.tt and > opac-details.tt > >--- > .../prog/en/modules/catalogue/detail.tt | 22 ++++++++++++++++++- > .../bootstrap/en/modules/opac-detail.tt | 22 ++++++++++++++++++- > 2 files changed, 42 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index daa9c20bee..f8a86527d8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -550,7 +550,27 @@ > </tr> > [% FOREACH latestserial IN subscription.latestserials %] > <tr> >- <td>[% latestserial.serialseq | html %]</td> >+ <td> >+ [% IF ( matches = latestserial.serialseq.match('(.*)Spring(.*)') ) %] >+ [% matches.0 | html %]Spring[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Summer(.*)') ) %] >+ [% matches.0 | html %]Summer[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Fall(.*)') ) %] >+ [% matches.0 | html %]Fall[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Winter(.*)') ) %] >+ [% matches.0 | html %]Winter[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Spr(.*)') ) %] >+ [% matches.0 | html %]Spr[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Sum(.*)') ) %] >+ [% matches.0 | html %]Sum[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Fal(.*)') ) %] >+ [% matches.0 | html %]Fal[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Win(.*)') ) %] >+ [% matches.0 | html %]Win[% matches.1 | html %] >+ [% ELSE %] >+ [% latestserial.serialseq | html %] >+ [% END %] >+ </td> > <td><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td> > <td><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td> > <td> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >index 9ab7a1017e..169d0e1750 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -864,7 +864,27 @@ > <tbody> > [% FOREACH latestserial IN subscription.latestserials %] > <tr> >- <td class="serialseq">[% latestserial.serialseq | html %]</td> >+ <td class="serialseq"> >+ [% IF ( matches = latestserial.serialseq.match('(.*)Spring(.*)') ) %] >+ [% matches.0 | html %]Spring[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Summer(.*)') ) %] >+ [% matches.0 | html %]Summer[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Fall(.*)') ) %] >+ [% matches.0 | html %]Fall[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Winter(.*)') ) %] >+ [% matches.0 | html %]Winter[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Spr(.*)') ) %] >+ [% matches.0 | html %]Spr[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Sum(.*)') ) %] >+ [% matches.0 | html %]Sum[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Fal(.*)') ) %] >+ [% matches.0 | html %]Fal[% matches.1 | html %] >+ [% ELSIF ( matches = latestserial.serialseq.match('(.*)Win(.*)') ) %] >+ [% matches.0 | html %]Win[% matches.1 | html %] >+ [% ELSE %] >+ [% latestserial.serialseq | html %] >+ [% END %] >+ </td> > <td class="publisheddate"><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td> > <td class="planneddate"><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td> > <td class="serial_status"> >-- >2.17.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 24172
:
95996
|
95998
|
96051
|
100331
|
100332
|
100888
|
139803
|
139804
|
139805
|
139806
|
139807
|
139808
|
139809
|
148921
|
151330
|
158671
|
170319
|
171104
|
172223
|
172230
|
174095
|
175493
|
175494
|
175495
|
177395
|
177396
|
177397
|
177398