Bugzilla – Attachment 165095 Details for
Bug 35646
Allow using the publication date parts for serial numbering
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35646: (follow-up) Correct firstaquidate type
Bug-35646-follow-up-Correct-firstaquidate-type.patch (text/plain), 2.21 KB, created by
Marcel de Rooy
on 2024-04-18 13:22:19 UTC
(
hide
)
Description:
Bug 35646: (follow-up) Correct firstaquidate type
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-04-18 13:22:19 UTC
Size:
2.21 KB
patch
obsolete
>From 92c41caecdf2383ba898a2e026cd7425f8a2d13b Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 18 Apr 2024 13:10:16 +0000 >Subject: [PATCH] Bug 35646: (follow-up) Correct firstaquidate type >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Serials.pm | 2 +- > t/db_dependent/Serials.t | 5 ++--- > 2 files changed, 3 insertions(+), 4 deletions(-) > >diff --git a/C4/Serials.pm b/C4/Serials.pm >index 6211779d43..dccfa6c155 100644 >--- a/C4/Serials.pm >+++ b/C4/Serials.pm >@@ -956,7 +956,7 @@ sub GetSeq { > $newlastvalue3 = _numeration($newlastvalue3, $pattern->{numbering3}, $locale) if ($pattern->{numbering3}); # reset counter if needed. > $calculated =~ s/\{Z\}/$newlastvalue3/g; > >- my $dt = dt_from_string( $subscription->{firstaquidate} ); >+ my $dt = dt_from_string( $subscription->{firstacquidate} ); > $calculated =~ s/\{Month\}/$dt->month/eg; > $calculated =~ s/\{MonthName\}/$dt->month_name/eg; > $calculated =~ s/\{Year\}/$dt->year/eg; >diff --git a/t/db_dependent/Serials.t b/t/db_dependent/Serials.t >index 8f91362696..1b748883bb 100755 >--- a/t/db_dependent/Serials.t >+++ b/t/db_dependent/Serials.t >@@ -560,7 +560,7 @@ subtest "test numbering pattern with dates in GetSeq GetNextSeq" => sub { > skip_serialseq => 0, > irregularity => '', > locale => 'C', # locale set to 'C' to ensure we'll have english strings >- firstaquidate => '1970-11-01', >+ firstacquidate => '1970-11-01', > }; > $pattern = { > numberingmethod => '{Year} {Day} {DayName} {Month} {MonthName}', >@@ -568,7 +568,7 @@ subtest "test numbering pattern with dates in GetSeq GetNextSeq" => sub { > > my $numbering = GetSeq( $subscription, $pattern ); > is( $numbering, '1970 1 Sunday 11 November', 'GetSeq correctly calculates numbering from first aqui date' ); >- $subscription->{firstaquidate} = '2024-02-29'; >+ $subscription->{firstacquidate} = '2024-02-29'; > > $numbering = GetSeq( $subscription, $pattern ); > is( >@@ -588,7 +588,6 @@ subtest "test numbering pattern with dates in GetSeq GetNextSeq" => sub { > > }; > >- > subtest "_numeration" => sub { > > plan tests => 6; >-- >2.30.2
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 35646
:
160275
|
160276
|
160277
|
160297
|
160298
|
165088
|
165089
|
165090
|
165093
|
165094
| 165095