Bugzilla – Attachment 139804 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), 6.25 KB, created by
Blou
on 2022-08-25 19:51:24 UTC
(
hide
)
Description:
Bug 24172: Allow translation of seasons in details.tt and opac-details.tt
Filename:
MIME Type:
Creator:
Blou
Created:
2022-08-25 19:51:24 UTC
Size:
6.25 KB
patch
obsolete
>From d97ea7702d4cd57231c0affeb71f4697e4e5000a 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 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../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 0cb672c037..ebf64fe3ce 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -750,7 +750,27 @@ Note that permanent location is a code, and location may be an authval. > </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 data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td> > <td data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</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 8dd430bc62..774fde100b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -770,7 +770,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" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td> > <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td> > <td class="serial_status"> >-- >2.25.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