Bug 12178: Update serial status to "claimed" when exporting to CSV
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 28 Apr 2015 15:00:44 +0000 (17:00 +0200)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 17 Aug 2016 09:33:26 +0000 (11:33 +0200)
commit158ce1735301394e7ad7306f6b62ca54dfde8237
tree96c8bead6c26d4dbaa494a18e2ad620e5846c04f
parentccc236b30628d41872b3a9c6495b850e5fb65a48
Bug 12178: Update serial status to "claimed" when exporting to CSV

On the same way as late issues, the serial status should be updated to
'claimed' when the issues as exported as csv.

QA note: The updateClaim and UpdateClaimdateIssues subroutine did almost the
same thing, I kick the second on off to centralize the code.

Test plan:
1/ Export some late issues as CSV (serials/claims.pl).
2/ Refresh the page (the export does not do it) and confirm that the
status, the claim date and the claim count have been updated.
3/ Select some others issues, select a notice and send the notification.
Confirm that the behavior is the same.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit b416ac16b5c67d902444041882c31a99e0525fa0)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit d4b8efca308423c9abfc3a55b22df51f46396435)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/Serials.pm
serials/claims.pl
t/db_dependent/Serials.t
t/db_dependent/Serials/Claims.t