From 4cf8c4ad16f4879608f473da1d5f76970957c9e0 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 Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart (cherry picked from commit a9df4daab1f780f14fed1fba9f4afad8c4c73d30) Signed-off-by: Fridolin Somers (cherry picked from commit 600825943915f34fdffb58b4a4efb5f7ad45a2cc) Signed-off-by: Andrew Fuerste-Henry --- .../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 673acbecca..d11ce6eb91 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.39.5