7146 (Update timestamps when deleting a biblio)
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 3 Nov 2011 12:41:24 +0000 (13:41 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Sat, 5 Nov 2011 04:50:02 +0000 (05:50 +0100)
commit7ee0565f5ce75fac16de2dc06c170bc06a171e56
treeaaee7bba3a7fa6c1461320a1ca7c705cda61d748
parent0038b0df15a838468bf7c23a389c260075dfd1c4
7146 (Update timestamps when deleting a biblio)

Currently, when you delete an item, the timestamp column in deleteditems is
updated with current time. (This comes from an [unintentional] additional
update statement in DelItem.) It makes deletion time visible.
In the past, the marcxml was updated too at that moment, resulting in an
updated timestamp in biblioitems too. The timestamp in biblio was not touched.

If you delete a biblio however, the timestamps in deletedbiblio and
deletedbiblioitems do not reflect time of deletion. They still show the time of
last update before the record was deleted. This last update can be extracted
from MARC field 005 too.

This behavior is not consistent nor logical. I would suggest to add a statement
in DelBiblio to force updating the timestamp in deletedbiblio(items) too. It
makes the time of deletion visible in the record too. The time of deletion of a
biblio can be very useful for e.g. synchronizing purposes.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Biblio.pm
C4/Items.pm