From 95e7cbee4f07a0ebb351419b49e2ba20a474cef5 Mon Sep 17 00:00:00 2001 From: ava li Date: Wed, 20 Jan 2021 22:37:36 +0000 Subject: [PATCH] Bug 27398: Made values in number patterns subscription length translatable TEST PLAN: Check that the subscription length options when editing or adding a numbering pattern in the serials module are translatable. check that the hard coded values are gone. Signed-off-by: Katrin Fischer --- .../prog/en/modules/serials/subscription-numberpatterns.tt | 6 +++--- serials/subscription-numberpatterns.pl | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt index d4cb9f0f4d..c361fc08e6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt @@ -179,9 +179,9 @@
  • diff --git a/serials/subscription-numberpatterns.pl b/serials/subscription-numberpatterns.pl index 99969b1256..a84c304ac8 100755 --- a/serials/subscription-numberpatterns.pl +++ b/serials/subscription-numberpatterns.pl @@ -102,9 +102,6 @@ if($op && ($op eq 'new' || $op eq 'modify')) { } } my @frequencies = GetSubscriptionFrequencies(); - my @subtypes; - push @subtypes, { value => $_ } for (qw/ issues weeks months /); - my $languages = [ map { { language => $_->{iso639_2_code}, @@ -115,7 +112,6 @@ if($op && ($op eq 'new' || $op eq 'modify')) { $template->param( $op => 1, frequencies_loop => \@frequencies, - subtypes_loop => \@subtypes, locales => $languages, ); output_html_with_http_headers $input, $cookie, $template->output; -- 2.11.0