Bugzilla – Attachment 100332 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.06 KB, created by
Martin Renvoize (ashimema)
on 2020-03-09 10:08:40 UTC
(
hide
)
Description:
Bug 24172: Allow translation of seasons in details.tt and opac-details.tt
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-03-09 10:08:40 UTC
Size:
6.06 KB
patch
obsolete
>From a41e131b6f96c0300507ee6679586a43d78e10c4 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 3fb4b8263d..8b2b101b89 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -581,7 +581,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><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 40421dfe5f..f3512e9ac9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -788,7 +788,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.20.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