]> git.koha-community.org Git - koha.git/commit
Bug 35646: Allow use of publication date fields in serial numbering pattern
authorNick Clemens <nick@bywatersolutions.com>
Fri, 22 Dec 2023 18:20:09 +0000 (18:20 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 29 Apr 2024 07:35:44 +0000 (09:35 +0200)
commit15424f9b2f0b938aa507f45df1120ba8ab9e3b01
treea7b3000f6b556c5a862cde2e0de25d0fd7489729
parent36d96180aea6e71d24da116343cd37bd723e808f
Bug 35646: Allow use of publication date fields in serial numbering pattern

This patch extends the numbering pattern field to accept subsititutions for:
{Year} {Day} {DayName} {Month} {MonthName}

These fields are based on the publication date for the serial issue.

To test:
0 - Apply patch
1 - Setup a enw numbering pattern
    Serials->Manage numbering patterns + New numbering pattern
2 - In the numbering formula enter: {X} {Y} {Z} {Year} {Month} {Day} {MonthName} {DayName}
3 - Populate X/Y/Z in the table as you wish, these should be unaffected by patch
4 - Set a Frequency /  First issue plublication date / Subscription length
5 - Click 'Test pattern'
6 - Confirm the dates in the Number match the publication date values
7 - Try with different frequencies to confirm they match
8 - Save the pattern
9 - Create a new subscription and use the new pattern
10 - Confirm it works as expected

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
C4/Serials.pm
serials/showpredictionpattern.pl