@@ -, +, @@
---
.../en/includes/locales/subscriptions.inc | 14 +++++++++++++
.../prog/en/modules/catalogue/detail.tt | 11 +++++++---
.../prog/en/modules/serials/claims.tt | 3 ++-
.../prog/en/modules/serials/routing.tt | 6 ++++--
.../en/modules/serials/serials-collection.tt | 21 ++-----------------
.../en/modules/serials/subscription-detail.tt | 3 ++-
6 files changed, 32 insertions(+), 26 deletions(-)
create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/locales/subscriptions.inc
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/locales/subscriptions.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/locales/subscriptions.inc
@@ -0,0 +1,14 @@
+[% USE I18N %]
+[%~ BLOCK numbering_patterns_i18n ~%]
+
+ [%~ SET spring = I18N.t('Spring') ~%]
+ [%~ SET summer = I18N.t('Summer') ~%]
+ [%~ SET autumn = I18N.t('Autumn') ~%]
+ [%~ SET winter = I18N.t('Winter') ~%]
+ [%~ SET spr = I18N.t('Spr') ~%]
+ [%~ SET sum = I18N.t('Sum') ~%]
+ [%~ SET fal = I18N.t('Fal') ~%]
+ [%~ SET win = I18N.t('Win') ~%]
+
+ [%~ pattern.replace('Spr', spr).replace('Sum', sum).replace('Fal', fal).replace('Win', win).replace('Spring', spring).replace('Summer', summer).replace('Autumn', autumn).replace('Winter', winter) | html ~%]
+[%~ END ~%]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -9,6 +9,7 @@
[% USE Price %]
[% USE TablesSettings %]
[% PROCESS 'i18n.inc' %]
+[% PROCESS 'locales/subscriptions.inc' %]
[% IF Koha.Preference('AmazonAssocTag') %]
[% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
@@ -403,12 +404,16 @@ Note that permanent location is a code, and location may be an authval.
[% item.enumchron | html %]
[% IF ( item.serialseq && item.enumchron!=item.serialseq ) %]
--
- [% item.serialseq | html %]
+
+ [% PROCESS numbering_patterns_i18n pattern => item.serialseq %]
+
[% END %]
[% ELSIF item.enumchron %]
[% item.enumchron | html %]
[% ELSIF item.serialseq %]
- [% item.serialseq | html %]
+
+ [% PROCESS numbering_patterns_i18n pattern => item.serialseq %]
+
[% END %]
[% IF ( item.publisheddate ) %]
([% item.publisheddate | $KohaDates %])
@@ -713,7 +718,7 @@ Note that permanent location is a code, and location may be an authval.
[% FOREACH latestserial IN subscription.latestserials %]
- [% latestserial.serialseq | html %] |
+ [% PROCESS numbering_patterns_i18n pattern => latestserial.serialseq %] |
[% latestserial.planneddate | $KohaDates %] |
[% latestserial.publisheddate | $KohaDates %] |
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt
@@ -6,6 +6,7 @@
[% INCLUDE 'doc-head-open.inc' %]
[% IF ( supplierid ) -%] Claims for [% suppliername | html %] [% END %] › Claims › Serials › Koha
[% INCLUDE 'doc-head-close.inc' %]
+[% PROCESS 'locales/subscriptions.inc' %]
@@ -156,7 +157,7 @@
[% missingissue.title | html %]
|
[% missingissue.issn | html %] |
- [% missingissue.serialseq | html %] |
+ [% PROCESS numbering_patterns_i18n pattern => missingissue.serialseq %] |
[% IF ( missingissue.status1 ) %]Expected[% END %]
[% IF ( missingissue.status3 ) %]Late[% END %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing.tt
@@ -7,6 +7,7 @@
[% INCLUDE 'header.inc' %]
[% INCLUDE 'serials-search.inc' %]
+[% PROCESS 'locales/subscriptions.inc' %]
|
- [% IF ( matches = serial.serialseq.match('(.*)Spring(.*)') ) %]
- [% matches.0 | html %]Spring[% matches.1 | html %]
- [% ELSIF ( matches = serial.serialseq.match('(.*)Summer(.*)') ) %]
- [% matches.0 | html %]Summer[% matches.1 | html %]
- [% ELSIF ( matches = serial.serialseq.match('(.*)Fall(.*)') ) %]
- [% matches.0 | html %]Fall[% matches.1 | html %]
- [% ELSIF ( matches = serial.serialseq.match('(.*)Winter(.*)') ) %]
- [% matches.0 | html %]Winter[% matches.1 | html %]
- [% ELSIF ( matches = prediction.number.match('(.*)Spr(.*)') ) %]
- [% matches.0 | html %]Spr[% matches.1 | html %]
- [% ELSIF ( matches = prediction.number.match('(.*)Sum(.*)') ) %]
- [% matches.0 | html %]Sum[% matches.1 | html %]
- [% ELSIF ( matches = prediction.number.match('(.*)Fal(.*)') ) %]
- [% matches.0 | html %]Fal[% matches.1 | html %]
- [% ELSIF ( matches = prediction.number.match('(.*)Win(.*)') ) %]
- [% matches.0 | html %]Win[% matches.1 | html %]
- [% ELSE %]
- [% serial.serialseq | html %]
- [% END %]
+ [% PROCESS numbering_patterns_i18n pattern => serial.serialseq %]
|
[% IF ( serial.status1 ) %]Expected[% END %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-detail.tt
@@ -10,6 +10,7 @@
[% INCLUDE 'doc-head-open.inc' %]
Details for subscription #[% subscriptionid | html %] › Serials › Koha
[% INCLUDE 'doc-head-close.inc' %]
+[% PROCESS 'locales/subscriptions.inc' %]
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") | $raw %]
@@ -327,7 +328,7 @@
[% FOREACH serialslis IN serialslist %]
|
- [% serialslis.serialseq | html %]
+ [% PROCESS numbering_patterns_i18n pattern => serialslis.serialseq %]
|
[% IF serialslis.planneddate %]
--
|