]> git.koha-community.org Git - koha.git/commit
Bug 27842: Update serial.biblionumber when a subscription is linked with another...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 3 Mar 2021 11:21:33 +0000 (12:21 +0100)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 24 May 2021 18:58:46 +0000 (18:58 +0000)
commit8d3fc1a6fa4a5bebddcc91ebf28f41a5f923d14b
tree73baff3817b5d38963f350d1916213dacf2bec13
parent598e4c5d7a70f26d55180a8ea2f209cea1c9972f
Bug 27842: Update serial.biblionumber when a subscription is linked with another record

It seems that a librarian can edit the biblionumber for a given subscription, however, when receiving serials the biblionumber is pulled from the existing serials, so all new received issues are received on the old biblionumber.

This is problematic in light of bug 21901 - you can change the biblionumber, the serials still point to the old biblionumber - and deleting the biblio deletes the serials. Additionally, the update will delete serials where this was the case

Test plan:
1 - Create a new subscription
2 - Receive an issue
3 - Edit the subscription and change the biblionumber
4 - Receive another issue
5 - SELECT biblionumber FROM serial
=> the biblionumber link must have been updated

Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 7e6f30e60eabcf3a18690fbe5eff3ec901d6f067)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 9f16f42953b106ed5fc249b2e41365d2bd5732f9)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
C4/Serials.pm