Koha-clms/serials
Emmi Takkinen 02515ebcc7
Bug 43239: Preserve item item type if previousitemtype column is undefined
It is possible to create serial item with wrong itemtype if syspreference
makePreviousSerialAvailable is enabled and field "item type for older issues"
isn't filled when creating a subscription for biblio record. This happens
when multiple items are created. In installations where itemtypes differ
between items and biblios, this causes data inconsistencies and leads to
errors in biblios Holdings table.

This patch changes behaviour of serials-edit.pl so that if
makePreviousSerialAvailable is enabled and subscriptions previousitemtype
column is NULL, previous serial items itype column is preserved. It also
adds a hint text to subscription form about this change.

To test:
1. Enable systempreference makePreviousSerialAvailable.
2. Create new biblio record.
3. Create a new subscription for biblio record you made, select option
"Create an item record", select different item type from "Item type"
selection than biblio record has but leave selection "item type for older
issues" empty.
4. Receive a serial item for subscription. Check from biblio records
Holdings table that its item type matches item type selected in step 3.
5. Now receive 3 serial items. After creating them check Holdings table again.
=> Note that first item created now has same item type as biblio record.
6. Apply this patch, restart services.
7. Create new subscription, fill needed fields as in step 3.
=> Note that there is a new hint text after field "item type for older issues".
8. Repeat steps 4. and 5.
=> Note that now all items have same item type.

Sponsored-by: Koha-Suomi Oy
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-08-12 15:49:49 +00:00
..
acqui-search-result.pl Bug 42078: Allow vendor ID searches on serial subscription vendor search page 2026-06-19 15:39:13 +00:00
acqui-search.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
checkexpiration.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
claims.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
create-numberpattern.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
lateissues-export.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
reorder_members.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
routing-preview.pl Bug 41846: Fix nl2br to happen after html escaping 2026-05-05 13:41:59 -06:00
routing.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
serials-collection.pl Bug 38009: Add a generate next button in serials receive page 2026-05-08 16:05:46 -06:00
serials-edit.pl Bug 43239: Preserve item item type if previousitemtype column is undefined 2026-08-12 15:49:49 +00:00
serials-home.pl Bug 40201: Add addidtional fields to subscription search on serials home 2026-07-29 15:49:44 +00:00
serials-search.pl Bug 42844: Fix broken subscription search when using additional fields as seach criteria 2026-06-15 15:59:31 +00:00
showpredictionpattern.pl Bug 37796: (follow-up) Correct call in showpredictionpattern.pl 2025-12-17 13:24:24 -07:00
subscription-add.pl Bug 38061: Add a checkbox to determine whether collection table issues should be pre-selected 2026-01-22 10:02:19 -07:00
subscription-batchedit.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-bib-search.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-detail.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-frequencies.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-frequency.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-history.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-numberpattern.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-numberpatterns.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
subscription-renew.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
viewalerts.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00